SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict jasongr's Avatar
    Join Date
    Jul 2004
    Location
    usa
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    including a JS file from another JS file

    Hi people

    this is a simple question regarding one JS file referring another JS file.
    I have a JS file called a.js
    every page in my application is including a.js

    Now, I have a new JS file called b.js
    I have code in a.js that needs to refer to code in b.js
    I don't want to modify the entire application and to include b.js everywhere a.js is included, but a.js needs to be aware of b.js somehow.

    Is there a way to include b.js from a.js?
    I don't want to take the content of b.js and copy it into a.js

    Is there a simple solution?

    thanks

  2. #2
    SitePoint Member CybJunior's Avatar
    Join Date
    Dec 2005
    Location
    fgfg
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

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