How will i access data from remote server through javascript or jquery

Discussion in 'jQuery' started by ajay009ajay, Sep 15, 2010.

  1. #1
    HI,
    I have written an Ajax code that i want to fetch some data from remote server.My javascript is code is running on server_one and i want to fetch some record from database so respected page is one server_two.My javascript code is connecting with it by jquery ajax as " http://www.server_two.com/fetch_rec.php?id=10 ".But i am not getting any result.
    I am cheking status and this is returing value "0".
    So how will i access record from remote.Basically i am making an API that's why i need this.
    Any help will be apperciate.
    Thanks in advance
     
    ajay009ajay, Sep 15, 2010 IP
  2. GreenT

    GreenT Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    GreenT, Sep 15, 2010 IP
  3. viron86

    viron86 Active Member

    Messages:
    426
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    viron86, Sep 19, 2010 IP