开发者

Prototype's Ajax.Request not working in Chrome

开发者 https://www.devze.com 2022-12-25 07:57 出处:网络
I am just doing a simple Ajax.Request call using the newest version of Prototype.It works fine in Firefox, Internet Explorer, and even Safari... but not in Chrome.Here is my code...

I am just doing a simple Ajax.Request call using the newest version of Prototype. It works fine in Firefox, Internet Explorer, and even Safari... but not in Chrome. Here is my code...

alert(url); new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { alert('test'); } });

It pops up he URL alert but the test alert never comes up. Like I said开发者_JS百科 it does in every other browser. I am not getting any javascript errors and I have used Firebug. I did a console.log on each event and it gets to the onLoading stage of Ajax.Request but never onLoaded.

Very confused... ?


I just downloaded the latest version before I posted this. So it is 1.6.0.3 or whatever it is. Not sure why it would make a difference but it is CentOS, Lighttpd, PHP. It just returns some JSON.

Prototype though never fires the onLoaded event, so seems like it is stalling before it gets sent. The part that baffles me is no errors in the error log... and it works on Safari. I'd think since both are Webkit it would be the same in both.

0

精彩评论

暂无评论...
验证码 换一张
取 消