cross domain ajax - yes, it is possible

Discussion in 'JavaScript' started by dimitar christoff, Jan 12, 2010.

  1. #1
    YQL (yahoo's query language) provides an interface you can use to proxy the request and fetch / send any url on any domain.

    http://bit.ly/7TCFgn (written by me)

    i wrote this interface for mootools earlier but you can also look at the example done for jquery here:

    http://bit.ly/8GMfiP (original post on ajaxian that i converted)

    basically - using jsonp callback, you can do it in vanilla javascript too without the aid of a framework - but frameworks make it easier. hope this helps somebody
     
    dimitar christoff, Jan 12, 2010 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    first link throws an error:
    
    Proxy Error
    
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /shell/aUgSz/.
    
    Reason: Error reading from remote server
    
    Apache/2.2.3 (CentOS) Server at mootools.net Port 80
    
    Code (markup):
    it's always possible you can just create your own proxy with server-side, about 5 lines with asp.net.
     
    camjohnson95, Jan 13, 2010 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    it throws the error as the server was down
    fixed now.
     
    dimitar christoff, Jan 13, 2010 IP