>From what you have written it looks like you are just taking a stab in the dark - do you use ajaxCFC?
On 9/25/07, Alexander Bilbie <[EMAIL PROTECTED]> wrote: > It's just 'failure' then function etc.. > > So from your script: > > > $.AjaxCFC({ > url: "/packages/ajax/primaryInvitee > .cfc", > method: "addInvitee", > data: options, > success: function(r) { > thisCheck = "check_" + r.LOGINID; > thisLoad = "load_" + r.LOGINID; > if( r.RESULT > 0){ > > $('#'+thisLoad).attr("src","/pics/icon_tick_grey.gif"); > }else{ > > $('#'+thisCheck).css("display",""); > > $('#'+thisLoad).css("display","none"); > } > //sDumper(r); > }, > failure: function(r) { > $('#'+thisCheck).css("display",""); > $('#'+thisLoad).css("display","none"); > } > }) > > > > > On 24/09/2007, Duncan <[EMAIL PROTECTED]> wrote: > > > > I have a page that submits checkboxes as they are checked on the way > > down a form. > > > > The click hides the checkbox for a loading gif, submits the ID via > > ajax, and on its return changes the loading icon to a tick image. > > > > What I want to know is how to handle a failure of the ajax request. > > > > currently I have the following: > > > > $.AjaxCFC({ > > url: > "/packages/ajax/primaryInvitee.cfc", > > method: "addInvitee", > > data: options, > > success: function(r) { > > thisCheck = "check_" + r.LOGINID; > > thisLoad = "load_" + r.LOGINID; > > if(r.RESULT > 0){ > > > $('#'+thisLoad).attr("src","/pics/icon_tick_grey.gif"); > > }else{ > > > $('#'+thisCheck).css("display",""); > > > $('#'+thisLoad).css("display","none"); > > } > > //sDumper(r); > > } > > > > I cant find a failure equivalent to "success:". > > > > What about a timeout? How would I handle this? > > > > Thanks in advance! > > > > -- > > Duncan I Loxton > > [EMAIL PROTECTED] > > > > > > -- > Kind Regards, > Alex Bilbie > > Freelance website and graphics design > Quite Good Media Ltd > > m: 07923 272797 -- Duncan I Loxton [EMAIL PROTECTED]