include and <script>

Discussion in 'ASP General' started by Tumurbaatar S., Jan 25, 2004.

  1. I added some methods to the String object like this:

    String.prototype.custom_method = function()
    {
    ....
    }

    and use them both at a server and a client side. A server script
    uses include directive and client one - <SCRIPT...SRC="...">.
    But this way requires to maintain 2 files which are almost identical.
    So to use only one file, I included server side file with <SCRIPT...
    SRC="..." RUNAT=SERVER>. In this case above prototype functions
    causes JScript error like 'the object has not this method'. The other
    functions and variables in this file have no problem. Why?
    Tumurbaatar S., Jan 25, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tuckers
    Replies:
    18
    Views:
    614
    ThosRTanner
    May 18, 2005
  2. Kceiw
    Replies:
    3
    Views:
    982
    Jim Langston
    Mar 14, 2006
  3. Andreas Bogenberger
    Replies:
    3
    Views:
    888
    Andreas Bogenberger
    Feb 22, 2008
  4. Gregory A. Beamer

    Re: Include and Include File

    Gregory A. Beamer, Jul 28, 2009, in forum: ASP .Net
    Replies:
    2
    Views:
    415
    Gregory A. Beamer
    Jul 28, 2009
  5. sloan

    Re: Include and Include File

    sloan, Jul 28, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    361
    sloan
    Jul 28, 2009
Loading...

Share This Page