JSON for jQuery
Update 2007-09-13:As of version 1.2, the jQuery core now supports cross-domain JSONP downloads as part of the native Ajax support. I suggest you use this support instead of the plugin.jQuery is a nifty...
View ArticleThey are different
Both functions let you download JSON data, but they use different techniques and are made for different situations.$.json() (this plugin) uses a dynamic script tag to download the JSON data. This lets...
View ArticleThanks Michael. I looked at
Thanks Michael.I looked at the jQuery sources in the mean time. To me, jQuerys $.ajax seems to be lacking a fallback mechanism in case ActiveX controls are disabled. This is where your solution — or...
View Articlejson
I added your code to my js files and put in the right order. I am new at this so I am trying to learn. When I runt he following code. I get an javascript error on my page and no output. Can you help me...
View ArticleLink to test page?
Eric, do you have a test page you could post a link to? Or else let me know what the JavaScript error was?I’ll try a test with your code, but if you have a link or error message that would give me a...
View ArticleWorking code
Eric, you were pretty close there. Here’s an updated version of your code that works:function log(){ if( window.console) console.debug.apply( console, arguments ); else...
View ArticleThank you
Wow, all I have to say is THANK YOU. I really appreciate the time you took to help me understand this. I will be working on this today after I pick through your code you gave me. Thank you for teaching...
View ArticleAll the plugin code you really need
BTW, because of Flickr’s hardcoded callback function name, the only part of the plugin that you’re really using is the load() function:function load( url ){ var script =...
View ArticleJSONP with JQuery $.ajax?
Hi,Is there a way to use the jquery $.ajax along with your plug-in and get a JSONP object?Below is the code I have, but it’s getting a “XMLHttpRequest” error because I’m trying to call a resource from...
View ArticleCross-domain restriction
Matthew, it sounds like you are running into cross-domain security. If your page is loaded from a domain other than “sub.domain.tld” then $.ajax will fail.That is the whole point of the JSONP format...
View ArticlejQuery 1.1.4 and appending script elements
Hi Michael,Excellent plugin first off. I love your closure solution for queuing the callbacks. I’ve actually used the idea of it for a recent plugin to use the Del.icio.us json feeds. I had to modify...
View ArticleJSONP now in jQuery 1.2 core
Thanks for the kind words and the heads-up, Paul.As you probably know, the jQuery 1.2 core now supports cross-domain JSONP downloads natively. So there’s probably not much need for the plugin any more....
View ArticleAutopulate select dropdown using jquery and json
HelloI need your help on this.Example: I have JSON data Country CodeBelgium 106 China 103How do I populate a HTML select dropdown box with the json dataSelect Dropdown(Belgium, China)Now when I select...
View ArticleMaybe in the core now, but...
… the core implementation have some serious limitations.I made jquery-jsonp to deal with them.
View ArticleRSS & JSON
I would also recommend lightweight syntex highlighter called “prettyprint” used on Google Code. It is lightweight and looks very clean.Regarding this post. I came across it while searching for RSS to...
View Article
More Pages to Explore .....