Remote: A cross-browser XHR/JSON function.

I grew tired of re-scripting my remote calls, so I’ve built a global function that can handle whatever I throw at it.

Remote is a global, lightweight XHR/JSON function, designed to handle cross-browser remote scripting.

For XMLHttpRequests, it uses the native XHR object for browsers that support it. For IE versions 6 and below, it defaults to using XML Data Islands (when permitted). If all else fails, it reverts to using an ActiveXObject.

Remote supports JSON (Javascript Object Notation), as well as the JSON-RPC spec.

Remote has been successfully tested with the following browsers:

  • Internet Explorer 5.5
  • Internet Explorer 6
  • Internet Explorer 7
  • Firefox 2
  • Camino 1.1
  • Safari 1.3/2.0
  • Opera 9

I’m pleased to offer Remote for download to anyone in need of a cross-browser XHR/JSON script. I am releasing the script according to the Creative Commons Attribution-Share Alike 3.0 License. You are free to use, distribute, and modify the script (as long as you share alike).

Feel free to take a look at the Remote API. And feel free to submit any bugs or questions you might have. A cross-browser XHR/JSON function.digg:Remote: A cross-browser XHR/JSON function.


  1. zhangjihong
    May 27, 2008
    8:20 pm

    because i am doing a project about remoteing ajax data using json ,but it can not work at firework brower ,so i want to download your code,thank you!

  2. zhangjihong
    June 8, 2008
    1:26 am

    I find that i remote call ajax data using json and it still not work at firework 2.0

Post a Comment

Your email is never published nor shared. Required fields are marked *