Hello,

I've discovered jquery a few days ago and I'd say a big a "thank you" to the
developpers team because it's really, really useful. :handshake:

But I have a problem with the $.ajax function : I'm working under mozilla FF
with a plugin called 'developper bar' wich return me the JS errors.

This a part of my code :
$.ajaxSetup({type:"GET", url:CFG["gatewayScript"]});
        $.ajax({
                type:"GET",
                url:CFG["gatewayScript"],
                type:"GET",
                success:function(data, textStatus){
                        alert (data);
                        $("#render_box").html(' '+DIR_WS_INSTALL+data+' ');
                },
        
data:"tileBaseDim="+CFG["G_tileBaseDim"]+"&nbTotalZoom="+CFG["G_maxZoom"]+"&zoom="+selectZone_zoom+"&xorig="+topLeftTile_coords.x+"&xend="+bottomRightTile_coords.x+"&yorig="+topLeftTile_coords.y+"&yend="+bottomRightTile_coords.y+"&n="+CFG["G_server_n"]+"&v="+CFG["G_server_v"],
                dataType:'text',
                error:function(XMLHttpRequest, textStatus, errorThrown){
                        alert ("error");
                }
        });

FF tells to me that "s.url" has no properties on line #2259 (unpacked 1.2
version).
I was constrained to put the ajaxSetup function before $.ajax because there
was the same bug with S.type.

I think there's a bug because, as a test, I tryied to remove the line #2199
in the unpacked 1.2 version and then it work correctly (it's the line where
ajaxSettings and the request settings are merged).

I don't like modify the externals libraries because when there's a new
version, I must do it another time, it's bad.
So what can I do in my script to work properly?

Thanks for your help.

STC_wizzard
-- 
View this message in context: 
http://www.nabble.com/big-problem-with-%24.ajax-tf4772153s27240.html#a13651099
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to