External Script Files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smoke

    External Script Files

    Is there anyway to pass a value to the external file?

    example

    <script src="http://www.thesite/js/today.js?someth ing=1">
    </script>


  • Lee

    #2
    Re: External Script Files

    Smoke said:[color=blue]
    >
    >Is there anyway to pass a value to the external file?
    >
    >example
    >
    ><script src="http://www.thesite/js/today.js?someth ing=1">
    ></script>[/color]

    <script type="text/javascript">
    something=1;
    </script>
    <script src="http://www.thesite/js/today.js">
    </script>

    The "external" file doesn't do any processing externally.
    The code is loaded into the current page, and executed
    there, so any global variable in the current page is
    available to it.

    Comment

    Working...