search for: onfailure

Displaying 20 results from an estimated 78 matches for "onfailure".

2006 Feb 14
7
onFailure fails?
Hi all, I have this code: new Ajax.Request(''non_existant.file'', { onSuccess:function(){alert("yay");}, onFailure:function(){alert("boo");} }); Why does the onFailure alert never get called? It works fine if I use a real file (onSuccess gets called). Thanks, Douglas
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 onExcept...
2008 Feb 22
1
Ajax.Responders.register: onFailure not working
Hello together. I''ve tried to register an onFailure behavior for all my Ajax.Requests and .Updaters to handle a session-based timout system. On each server request via Ajax there is a check whether the user hasn''t made something for the last x minutes, and if he hasn''t, the php page throws an 403 forbidden header (via header("...
2008 May 21
6
this.initialize has no properties error in Prototype Code
...d: ''post'', parameters: params, onSuccess: function(transport) { var count = transport.responseText; $(''span'').innerHTML = count; Mediabox.open(video_url, '''', ''mediabox[480 380]''); }, onFailure: function() { alert(''I Fudged Things.''); } } ); However, when I try to execute the code I get this error "this.initialize has no properties". It appears to be related to this function call this.initialize.apply(this, arguments); at line 48 in Prot...
2019 Nov 22
1
Issue with "ExecStartPost" attribute in systemd daemon faile
Hellos, Yes, I did some tests with "OnFailure" attribute, but the result was the same: system didn't sent any mail. Daemon and script files were: * crond.service: * [Unit] Description=Command Scheduler After=auditd.service systemd-user-sessions.service time-sync.target OnFailure=crond-notify-email.service [Service] Environ...
2019 Nov 21
3
Issue with "ExecStartPost" attribute in systemd daemon faile
...ing to configure a daemon (I'm doing tests with "crond" daemon) to send me an email after daemon restart. My "crond.service" file is: # /etc/systemd/system/crond.service [Unit] Description=Command Scheduler After=auditd.service systemd-user-sessions.service time-sync.target #OnFailure=crond-notify-email@%i.service [Service] EnvironmentFile=/etc/sysconfig/crond ExecStart=/usr/sbin/crond -n $CRONDARGS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartSec=10s ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh" [Install] WantedBy=multi-user...
2006 Oct 04
0
onSuccess and onComplete Prototype callbacks
Hi everyone, The onSuccess callback gets fired when HTTP status code is 200, and onComplete gets fired AFTER onSuccess/onFailure when the browser has finished handling the request, i.e. when the DOM is ready, right? So my question is where to put code that MUST ONLY be executed if HTTP status code is 200 AND Ajax.Request was called with option ''evalScripts: true''. The code in question is attaching JS events...
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question.. I often crash my Safari when using ''Enter'' on InPlaceEditor''s for submitting. Works fine on firefox(win & Mac) - no javascript errors. Anyone else seen this behavior? (Maybe it is just my alterings of InPlaceEditor :-) Best Regards Michael Krog
2006 Jun 28
12
Ajax.Updater
Hi, someone can help me, I am ot able to find the way how to user Ajax.updaterto test if the request give some positive or negative result. I am able only to return the result inside a div. An example is appreciated. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 May 24
5
Ajax.RssReader object
...for(n=0; n<rss.items.length; n++) { alert(rss.items[n].title); } } function myErrorHandler( rss ) { alert( ''An error has occured.'' ); } new Ajax.RssReader( ''http://www.mysite.com/feed.xml'', { onSuccess: myCallbackFunction, onFailure: myErrorHandler } ); Please send me your comments and suggestions. Best, Robin _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2008 May 07
2
Inserting authenticity token into AJAX request params
Hi all. I am trying to find a way to insert an authenticity_token into the params of an Ajax request before it gets sent. I''ve got this much: Ajax.Responders.register({ onLoading: function(req){ if ((req.options.method == ''post'') && ! Object.keys(req.options.parameters).include(''authenticity_token'')){ ---->
2007 Jul 26
4
populate select box by ajax query with Prototype and IE7
Trying to populate a select box with a value passed in from another select box works great in Firefox, but using IE nothing happens, no data is getting returned back. I commented everything out and put alerts in there and the alerts work in IE but when ajax is getting used it seems to just die...Is this a bug or what am I doing wrong? --~--~---------~--~----~------------~-------~--~----~ You
2007 Sep 27
4
transportXML returns null?
...if (response != null) { alert("b=" + response.getElementById(''lastUpdate'').innerHTML); // this never works } else alert("onSuccess, responseXML is null"); }, onFailure: function(){ alert("Cannot get data from server: " + location.host) } }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send...
2020 Sep 12
3
Server entering Emergency Shell, but continues fine after pressing Enter
On 9/11/20 4:51 PM, Quinn Comendant wrote: > Does anyone know what initrd-parse-etc.service does? Or have suggestions how to troubleshoot that unit specifically? Run "systemctl daemon-reload && echo success" and verify that it reports success, and not errors. Check the output of "systemctl status initrd-cleanup" too.
2008 Mar 25
2
responseXML not working on XML file
...hat I am doing wrong. If i change the response variable and dump responseText, it shows the file, it just doesn''t recognize it as xml. function xml(url){ new Ajax.Request(url, { method: ''post'', parameters:''resultSet=simcall'', onSuccess:parseResponse, onFailure:function(xhrResponse){alert(''nope'');} }); } var parseResponse= function(xhrResponse){ var response=xhrResponse.responseXML; var paramList= response.getElementByTagName(''lastname''); alert(paramList[0].firstChild.nodeValue); } <?xml version="1.0" en...
2007 Apr 04
3
Ajax.Updater -- returning failure from a php script
If I give Ajax.Updater a first arg like{ success: ''replies'', failure: ''errors''}, how do I return an error from a php script so the message goes in ''errors'' rather than ''replies''? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2005 Oct 27
5
Problem passing event object
..., switchRequired: function(evt) { this.evt = evt; // Set the event to a property alert(this.evt); var params = $F(this.chkbox); var myAjax = new Ajax.Request(''server/checkRequired.html'', {method: ''get'', parameters: params, onSuccess: this.switchPrompt ,onFailure: this.dontCheck} }, switchPrompt: function() { alert(this.evt); // Try to pick up the this.evt var, but it comes bakc as undefined }, dontCheck: function(response) { // failure } }
2008 Jun 17
4
Formating Date Field
...form> <script> function callJs(arg1) { var url="Ajax.jsp"; new Ajax.Request(url, {asynchronous: true,method: "post",parameters: "ajaxrefno=" +arg1, onSuccess: function(request) { $(''displaydatetxt'').value =request.responseText; }, onFailure: function(request) { $(''displaydatetxt'').value =request.responseText;} }); } </script> </body> </html> ******************************** Now the Ajax.jsp <html> <body><% if(request.getParameter("ajaxrefno")!=null) { ResultSet rs=db....
2006 May 24
7
Using inline editor without requiring a URL
Hi, I was wondering if anyone has implemented the inplace editor without the need for the URL. I have tried this but run into a problem in that the ''saving...'' text in shown for ever and the label is no longer editable. Can I also confirm that my idea of the callback function is something that runs before the value is passed to the URL (if you were to use one). What might be
2006 Jan 30
5
Multiple ajax calls
This is slightly OT for which I apologise in advance, but I was wondering if anyone here has had any problems when making multiple ajax calls at the same time. I''m working on a large Intranet application which makes heavy use of ajax calls and the bugs are flying in from the testers that if they repeatedly click on a link that makes an ajax call then Internet Explorer can fall