HighDots Forums  

CHROME - jquery ajax error, however, if I add"alert('whatever')" in front of call it works

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss CHROME - jquery ajax error, however, if I add"alert('whatever')" in front of call it works in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RBD
 
Posts: n/a

Default CHROME - jquery ajax error, however, if I add"alert('whatever')" in front of call it works - 11-04-2009 , 01:21 PM






I am stumped. the latest Google Chrome is now throwing error (giving
aw snap page) when jquery.ajax is called. However, if I put an alert
() message just before the .ajax call or if I pause the execution of
the code using Chrome javascript console, the .ajax call works? If I
simply try to pause execution of the javascript using setTimeout()
then it does not work.

This problem only seems to occur with Google Chrome.

Any suggestions or thoughts?

-----------------------------
function fillYearsCombo() // called after participant chosen
{
var inputs = [];
inputs.push("function=year_combo_box");
inputs.push('pp' + '=' + escape($("#p_articipantname").val()));

$.ajax(
{
data :inputs.join('&'),
url :'aj/aj_register_activities.php',
timeout :2000000000, // need high
error : function()
{
console.log("Failed to update Years Combo.");
},
success : function(r) // note if pause here (using google
chrome javascript console), it works.
{
if(r == "None") // if pause here, does not work.
{
msg = "There are no activities available for this
person at this time.";
$("#naa").html(msg); // #naa => No Activities
Available
$("#naa").show('slow');
}
else
{
$("#naa").html('');
$("#naa").hide('slow');
$("#y_ear").html(r);
}
}
})
}

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.