include inside include file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amzul
    New Member
    • Oct 2007
    • 130

    include inside include file

    hello all
    1- is it possible to include another file in my include.js file?

    2- what shouled b the syntax? src="path";

    3- can someone explain what happend when u do <script src=""> i mean is it loadind the var/function to the meory or only when he dosent find the function in the same page it goes to the include..

    *************** *************** **************
    EDIT
    sorry i checked it now and its posible to include another file in the include file with that syntax
    sorry
    *************** *************** **************

    thanks
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    i m also curious about that ..............

    debasis

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Try:[CODE=javascript]document.write( "<script type=\"text/javascript\" src=\"includepa th.js\"><\/script>");[/CODE]

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by Amzul
        3- can someone explain what happend when u do <script src=""> i mean is it loadind the var/function to the meory or only when he dosent find the function in the same page it goes to the include..
        The advantage of using script tags is that the file can be stored in the cache and retrieved next time the page loads from the cache saving download time and bandwidth.

        Comment

        Working...