By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,587 Members | 1,168 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,587 IT Pros & Developers. It's quick & easy.

Ajax/Prototype: onComplete fires before response returned in Firefox

P: n/a
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is
called BEFORE the response is returned by the call. Is there a coding issue
or a work around?

var ajax = new Ajax.Request( url, {method: 'post', parameters: params,
onComplete: evalInfo });

function evalInfo( request )
{
// do stuff with request
}

Should I have a timer that checks the request state before exec the
evalInfo?

Thanks
Feb 14 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
ext237 said the following on 2/14/2007 11:30 AM:
Simple ajax call seems to have some issues in Firefox.
No, the issue is with the Prototype.js library. "AJAX" calls are just
fine in Firefox.

Try the Ruby On Rails group for Prototype.js help.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 14 '07 #2

P: n/a

>Simple ajax call seems to have some issues in Firefox.

No, the issue is with the Prototype.js library. "AJAX" calls are just fine
in Firefox.
You are absolutly right, Ajax works fine in Firefox. Perhaps I should have
said this instead:

The *following* simple ajax call using prototype.js seems to have issues in
Firefox. Does anyone else experience this issue where the "onComplete"
executes before the ajax call is complete?

var ajax = new Ajax.Request( url, {method: 'post', parameters: params,
onComplete: evalInfo });

function evalInfo( request ) {// do stuff with request}

Thanks for any help.
Feb 14 '07 #3

P: n/a
ext237 said the following on 2/14/2007 5:01 PM:
>>Simple ajax call seems to have some issues in Firefox.
No, the issue is with the Prototype.js library. "AJAX" calls are just fine
in Firefox.

You are absolutly right, Ajax works fine in Firefox. Perhaps I should have
said this instead:

The *following* simple ajax call using prototype.js seems to have issues in
Firefox. Does anyone else experience this issue where the "onComplete"
executes before the ajax call is complete?
I don't. But then again, I don't use prototype.js (I prefer something
more cross-browser).
Thanks for any help.
Did you try the suggestion I made in my previous reply with regards to
the Ruby spin off group?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 14 '07 #4

P: n/a

"Randy Webb" <Hi************@aol.comwrote in message
news:Ta********************@telcove.net...
ext237 said the following on 2/14/2007 5:01 PM:
>>>Simple ajax call seems to have some issues in Firefox.
No, the issue is with the Prototype.js library. "AJAX" calls are just
fine in Firefox.

You are absolutly right, Ajax works fine in Firefox. Perhaps I should
have said this instead:

The *following* simple ajax call using prototype.js seems to have issues
in Firefox. Does anyone else experience this issue where the
"onComplete" executes before the ajax call is complete?

I don't. But then again, I don't use prototype.js (I prefer something more
cross-browser).
>Thanks for any help.

Did you try the suggestion I made in my previous reply with regards to the
Ruby spin off group?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/
If you mean comp.lang.ruby, yes, I posted there. So far, no replies, but
I'll check back.

Thanks.
Feb 14 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.