search for: onexception

Displaying 15 results from an estimated 15 matches for "onexception".

2008 Jan 04
6
Ajax.Request: onFailure vs. onException
Hello All, I''m trying to capture the exception message that my server application is providing in response to my Ajax.Request. However, I''m confused as to when onFailure is fired vs. onException. The onException handler has access to the javascript exception object and I''d understood that it was only called when the dispatch fails. Not sure what exactly that means and why an exception on the server-side sometimes triggers onFailure and sometimes onException. Can anyone clarify...
2007 Jun 09
7
AJAX Exception just started with Safari and Firefox on OS X, no problem on other machines
Hello all, I have been developing some ajax stuff all week. Just this morning the ajax calls quit working in Safari, and Firefox. I backed out to a last known working state and they still were not working, so I added some handlers to see if I could sniff out the problem. ... onException: function(transport){$ ("serversaid").innerHTML=transport.toJSONString();}, onFailure: function(){alert("12");}, onLoading: function(){alert("13");}, ... The onException never triggered on Safari, but it did in Firefox. The onLoading still triggers just fine. Here...
2008 Jan 01
2
Ajax.Updater from within an IFrame
...but same functionality): function doMyFancyUpdate() { // myUpdateID is within the parent frame var myID = top.document.getElementById(''myUpdateID''); var myURL = ''showfile.php''; new Ajax.Updater( myID, myURL, { method: ''post'', onException: function(ele, ele2) { alert("Error!\n" + ele2.message +"\n"+ ele2.fileName +"\nLine:"+ ele2.lineNumber); } } ); } In the IFrame itself I am simply calling a <script>doMyFancyUpdate();</ script>. And these are the error messages I receive: With the ale...
2008 Feb 05
2
Catching Ajax Failures (not 500s)
I am trying to catch failed Ajax requests, but I''m talking about requests that receive no response from the server (server is down), not responses that result in a 500. The latter can be handled with the onException or onFailure callback, but I am not able to handle the former. To reproduce/test: 1) Start your server 2) Create a page that does this: Ajax.PeriodicalUpdater(''foo'', ''/valid/url'', { onFailure: function(){alert(''failure'')}, onException: functio...
2007 Apr 03
2
Some cryptic error in IE
...nt(newsDoc); $(''_loadingId'').update(''''); $(''_content'').update(''''); $(''_content'').appendChild(newDocument.firstChild); }, onError: function(transport,exception){ alert("Error :"+exception); }, onException: function(transport,exception) { alert("Exception :"+exception); var err; for(var ex in exception) { err += "<br/>"+exception[ex]; } document.write(err); } }); regards, Ranjan --~--~---------~--~----~------------~-------~--~----~ You received this message be...
2007 Aug 02
3
Problems with Element.extend() on responseXML elements with IE
...ess" function of an Ajax.Request() call. The content type of the response message is "text/ xml". function interactionSuccess(request) { var root = $(request.responseXML.documentElement); ... So more or less I extend the root element of my XML response. This call triggers the onException callback. The exception is a "TypeError: Object doesn''t support this property or method" exception. I tracked it down to the following line in Element.extend(): element[property] = cache.findOrStore(value); The property in this case is "visible". This is with latest...
2010 Sep 22
0
Problem using AVA FX Trader - module js3250.dll
...=>0 nspr4.dll=>=>_MD_CURRENT_THREAD=>0 nspr4.dll=>=>PR_GetCurrentThread=>0 Fx_Client.exe=>SmartException.pas=>TForm_SmartException.ShowSimple=>291 Fx_Client.exe=>SmartException.pas=>TForm_SmartException.ShowSimple=>278 Fx_Client.exe=>Main.pas=>TForm_Main.OnException=>587 js3250.dll=>=>JS_ArenaAllocate=>0 js3250.dll=>=>JS_GetGlobalForObject=>0 js3250.dll=>=>JS_DHashTableOperate at 12=>0 js3250.dll=>=>JS_DHashTableOperate at 12=>0 nspr4.dll=>=>_PR_MD_UNLOCK=>0 js3250.dll=>=>JS_SetVersion=>0 js3250.dll=>...
2007 Nov 18
0
evalScript usage for script with src attribute
...t'', evalScripts: true, onSuccess: function(transport){ var response = transport.responseText || "no response text"; $(''content'').innerHTML = response; }, onFailure: function(){ alert(''Something went wrong...'') }, onException: function(v1, v2){ alert(''Something went wrong... '' + v2) } }); where mailing-list-users.html content is simply "<script type="text/javascript" src="http://convert.rss-to- javascript.com/?src=http%3A%2F%2Fgroups.google.com%2Fgroup %2Farchitecture-rules-u...
2006 Feb 27
0
status = 200 something wrong???
...And afterall I get status 200 from xmlHttpResponse object. Is it right? Because I called url that redirect my request to other url so shoudn''t I get 302 code? How can I identify does the AJAX call was redirect or not if I always get status code 200? I try using function onFailure or onException but Ajax object ALWAYS calling (ajax method) onSucces and when I checked status there is always 200. Can someone help me? Gregor ---------------------------------------------------- Najsłynniejszy detektyw świata powraca! Steve Martin jako inspektor Clouseau w komedii "Różowa pantera - w k...
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2006 Mar 17
2
ajax exception
...very simple and it didn''t have conflicts in other classes: inspect: function() { return ''FileBrowser''; }, So basically this debugging helper function causes the exception in the onServiceResult method after a successfull response. In my Ajax.options I have: onException : this.onServiceResult.bind(this, ''exception'') and inside onServiceResult the switch looks like this: switch(inResult){ case ''success'': ... break; case ''404'': ... break; case ''failure'': ... break; case '...
2006 Jul 26
4
How to Firebug XHR/AJAX requests
Saw a lot of recommendations for Firebug (http://www.joehewitt.com/software/firebug/) on this list. I''ve scanned its docs and tried it--many useful features. But I''m so dense that I can''t get it to spy XHR/AJAX requests and their response on FC5 running Firefox 1.5.0.4 and Firebug 0.4. Can someone tell me how to get to
2006 Jun 22
8
Ajax in IE 5.5 / Win 98
Are Ajax requests available in IE 5.5 / Win 98? Sam _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
...I get status 200 from xmlHttpResponse object. Is it > right? Because I called url that redirect my request to other url > so shoudn''t I get 302 code? How can I identify does the AJAX call > was redirect or not if I always get status code 200? I try using > function onFailure or onException but Ajax object ALWAYS calling > (ajax method) onSucces and when I checked status there is always > 200. Can someone help me? > Gregor > > ---------------------------------------------------- > Najs³ynniejszy detektyw ¶wiata powraca! Steve Martin > jako inspektor Clouseau w kom...
2007 Mar 02
12
Prototype: Ajax.Request w/asynchronous: false
All, I have the following Ajax call: new Ajax.Request(action, {asynchronous: false, method: ''post'', parameters: params_to_pass, evalScripts: true}); The action that I''m calling is using render :update to send back Javascript. When asynchronous is set to true above, then the Javascript is executed (because of evalScripts: