Remote JS include

Discussion in 'JavaScript' started by awesomehosting, Oct 14, 2008.

  1. #1
    Hi all

    Need some help please

    I have a file that I would like to remotely pull into a site...

    so

    What needs to be done for:

    <script type="text/javascript" src='test/Autocompleter.js'></script>

    To work "like this" from a remote site:

    <script type="text/javascript" src='http://www.somedomain.com/test/Autocompleter.js'></script>

    Please assist...what is the correct include path....
     
    awesomehosting, Oct 14, 2008 IP
  2. ASPMachine

    ASPMachine Peon

    Messages:
    723
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is the path of the page from where the Autocompleter.js searching ?
     
    ASPMachine, Oct 16, 2008 IP
  3. awesomehosting

    awesomehosting Banned

    Messages:
    409
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #3
    it would be someotherdomin.com
     
    awesomehosting, Oct 20, 2008 IP
  4. Bind

    Bind Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just upload it to your domain and link it from there.
     
    Bind, Oct 20, 2008 IP