Hi,

I read the ajax-function about JSONP-Support and read the following:


                // Handle JSONP Parameter Callbacks
                if ( s.dataType == "jsonp" ) {
                        if ( s.type.toLowerCase() == "get" ) {
                                if ( !s.url.match(jsre) )
                                        s.url += (s.url.match(/\?/) ? "&" : 
"?") + (s.jsonp || "callback") + "=?";
                        } else if ( !s.data || !s.data.match(jsre) )
                                s.data = (s.data ? s.data + "&" : "") + 
(s.jsonp || "callback") + "=?";
                        s.dataType = "json";
                }

There are two times s.jsonp in the code which would be an alternative 
callback-parameter name. Is this interpretation correct ?

But if so, I see no source code location where it is possible to set a jsonp 
parameter which would call ajax() except you write your own jQuery-plugin ? Is 
s.jsonp for future use or is it something left over ?

Regards,
Dirk

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

Reply via email to