Results 1 to 4 of 4

Thread: Javascript documentwriting

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    7

    Question

    On a page I have, there is a menu section on the left, containing a lot of HTML. My question is, is there anyway I can possibly point to "leftmenu.js" or something? That way I won't have to update every page if I want to change the menu.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    not sure what your asking but toinclude a .js file:

    <SCRIPT language="javascript" src="../file.js">
    </SCRIPT>

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    7
    Yeah, I know how to do that.

    Just wondering if it will work by somehow using the document.write thing.

    I think JavaScript has a limit of how many characters can be between ' and ', so it might be kind of hard.

  4. #4
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    a ok, i tried it once to put a full html page in a javascipt
    variable, and it work! with asp too!but don't forget
    to put a line (\n->javascript,vbcrlf->asp)so that if you
    check your code after it wont be on one line!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width