search for: readystate

Displaying 20 results from an estimated 36 matches for "readystate".

2008 Jun 26
7
Strange readyStates in prototype Ajax
...ack correctly by the server, the tree panel logs an error and the children fail to load. I''ve been tracking this for weeks now and finally stumbled upon the root cause of the problem, and it turns out to be an apparent bug in Prototype, not in Ext: In the Ajax.Request class, the respondToReadyState method, you have: respondToReadyState: function(readyState) { var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this); etc etc etc... Maybe 90% of the time, readyState here and transport.readyState are the same (as they always should be?). However, it turns out, ma...
2007 Feb 12
18
document "expando" properties broken in Konqueror
I noticed that some of my event handlers and scripts evaluated in ajax responses didn''t work in Konqueror (3.5.5). document.getElementsByClassName is not defined in these contexts. I can work around this, by saving document.getElementsByClassName in a (namespaced) global variable once and reassigning it before each use. Still, this misfeature is annoying and not restricted to this
2006 Apr 17
7
Serve static XML files how?
Hi, a Javascript in one of my Rails templates needs to load a static XML file. I tried several places to put the actual XML file, and I also tried to make the file a rails template (tried both .rhtml and .rxml) and access it via a controller action. None of these ways worked. Does the lighttpd server know how to serve XML files, or do I need to configure it first? Or, is there a good workaround?
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
...oxchange/" var parameters = "assoc=" + escape(encodeURI(s)) + "&id=" + therow; formid="assoc" + therow; makePOSTRequest(url, parameters, formid) } function makePOSTRequest(url, parameters, formid){ req3 = new XMLHttpRequest(); if (req3) { req3.onreadystatechange = alertContents(formid); req3.open(''POST'', url, true); req3.setRequestHeader("Content-type", "application/x-www-form- urlencoded"); req3.setRequestHeader("Content-length", parameters.length); req3.setRequestHeader("C...
2006 Mar 16
23
AJAX on Mobile Internet Explorer
Hi! I try to get AJAX running on a mobile Windows Mobile 5.0 based device and failed. There should be a JavaScript support but nothing happens. Have any of you experience with the rails javascripts on a this platform or are there any hints, documentation on the net? tia, -- Daniel V?lkerts Protected by Anti Pesto.
2005 Oct 18
3
Ajax.Request / XmlHttpRequest details
Does anyone know a good reference for the various statuses that XmlHttpRequest''s readyState property can have? I mean, I know what the states are, but I''m unclear on the circumstances under which each occurs... In a simple test I wrote, I''m seeing the loaded, interactive and complete states (i.e. my Ajax.Request instance calls its onLoaded, onInteractive and onC...
2007 Dec 03
3
DOMContentLoaded error on IE6
...the following error: ''null'' is null or not an object The error occurs on the following lines: document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>"); $("__onDOMContentLoaded").onreadystatechange = function() { if (this.readyState == "complete") { this.onreadystatechange = null; fireContentLoadedEvent(); } }; Is there a standard work around for this ? Thanks in advance...
2005 Oct 11
0
aborting xmlhttp requests?
...(when there are existing connections) when the next request is fired? Does the scriptaculous / prototype library take care of this or does the browser automatically take care of this? Is something like the following necessary? // check for existing requests if(xmlobj!=null&&xmlobj.readyState!=0&&xmlobj.readyState!=4){ xmlobj.abort(); } Thanks in advance, Mandy.
2005 Oct 20
1
Autocomplete - Destroying the object
Hi, I''m new to all this so if this is a daft question sorry. I''m using Ajax Autocomplete to populate a search box with likely matches. These results need to be filtered by an option from a select box that is alongside the search box. As the current Autocomplete function only takes in one id to post to the search file, i figured i could post more stuff to the Ajax.Autocompleter
2006 Sep 29
1
Error on drag n drop list after refreshing list using AJAX
...ot;<?php echo $cellListId; ?>",{dropOnEmpty:true,containment:[<?php echo $dropOnListName; ?>],constraint:false}); //this is the callback function of ajax request function processRequest() { var results, listItemString=''&nbsp;'', listItemColor; if (ajaxReq.readyState == 4) { if (ajaxReq.status == 200) { results = ajaxReq.responseText.split("="); for(var h=0; h<results.length; h+=2){ listItemColor = "Green"; lessonType = lessonType.toUpperCase(); switch(lessonType){ case ''LEC'': listItemColor = ...
2010 Sep 03
5
Shockwave problem in office 2007
...ode_typedesc PTR vartype, may not work correctly. fixme:typelib2:ctl2_encode_typedesc Unrecognized type 12. fixme:ole:ITypeInfo_fnGetMops (0x2b2ac78 1610678272) stub! fixme:ole:ITypeInfo_fnGetMops (0x29f8b90 -525) stub! fixme:typelib2:ICreateTypeInfo2_fnSetFuncDocString (0x2b37f50,0,L"property ReadyState"), stub! err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\users\\jfinlay\\Temp\\PPT11.0\\ShockwaveFlashObjects.exd" failed with error 2 fixme:typelib2:ctl2_encode_typedesc PTR vartype, may not work correctly. fixme:typelib2:ctl2_encode_typedesc PTR vartype, may not work correctly. fi...
2007 May 15
9
NS_ERROR_NOT_AVAILABLE
Exception:[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: prototype.js :: anonymous :: line 920" data: no] Hi, i read about this problem and i know, that calling nsIXMLHttpRequest.status causes it. prototype has a try-catch-block
2005 Mar 06
8
Tutorial about XMLHttpRequest+Rails
Hi All I just finished writing up a tutorial relating my experience developing a system to edit line-items ''in-line'' in my Rails application using XMLHttpRequest. I thought this might be of interest to some readers of this list... Check it out at http://hieraki.goodlad.ca/read/book/1 Thanks! Dave -- Dave Goodlad dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2023 Feb 16
1
Send admin kill request to server
...Icecast. But I have to do it with Javascript or JQuery. Therefore curl doesn't help me. I try to use Ajax for that, but something goes wrong. If I do it without Autorization, I got a return message which says 'Authentication required'. If I enable the Autorization it tells me only readyState: 0. If I will find a solution, I will post it here. Cheers Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von Fred Gleason Gesendet: Mittwoch, 15. Februar 2023 16:57 An: Icecast streaming server user discussions Betreff: Re: [Icecast] Send admin kill request to server On F...
2006 Apr 15
1
Begin with Autocompleter
...ch (e) { 12 try { 13 http_request = new ActiveXObject("Microsoft.XMLHTTP"); 14 } catch (e) {} 15 } 16 } 17 18 if (!http_request) { 19 alert(''InformaciĆ³n: No se ha podido crear la instancia del objeto XMLHTTP''); 20 return false; 21 } 22 http_request.onreadystatechange = function() { searchResult(); }; 23 http_request.open(''GET'',"search_ajax.php?q="+element, true); 24 http_request.send(null); 25 } 26 27 function searchResult() { 28 if (http_request.readyState == 4) { 29 if (http_request.status == 200) { 30 alert(http_requ...
2023 Feb 18
1
Send admin kill request to server
...Icecast. But I have to do it with Javascript or JQuery. Therefore curl doesn't help me. I try to use Ajax for that, but something goes wrong. If I do it without Autorization, I got a return message which says 'Authentication required'. If I enable the Autorization it tells me only readyState: 0. If I will find a solution, I will post it here. Cheers Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von Fred Gleason Gesendet: Mittwoch, 15. Februar 2023 16:57 An: Icecast streaming server user discussions Betreff: Re: [Icecast] Send admin kill request to server On F...
2023 Feb 24
2
Send admin kill request to server
...to do it with Javascript or JQuery. Therefore curl doesn?t > help me. > > I try to use Ajax for that, but something goes wrong. > If I do it without Autorization, I got a return message which says > 'Authentication required'. > If I enable the Autorization it tells me only readyState: 0. > > If I will find a solution, I will post it here. > > Cheers > > Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von Fred > Gleason > Gesendet: Mittwoch, 15. Februar 2023 16:57 > An: Icecast streaming server user discussions > Betreff: Re: [Icecast]...
2006 Jun 16
3
onCreate not getting triggered.
I am trying to get a loader to display during ajax requests, but the "onCreate" is not getting triggered. The onComplete does. function loadComponent(section){ values = arguments[1] pars = $H(values).toQueryString() pars = "section="+section+"&"+pars var url = ''/internal/ajax/requests.php''; var ComponentLoader = new
2023 Feb 18
1
Send admin kill request to server
...do it with Javascript or JQuery. Therefore curl doesn?t > help me. > > I try to use Ajax for that, but something goes wrong. > If I do it without Autorization, I got a return message which says > 'Authentication required'. > If I enable the Autorization it tells me only readyState: 0. > > If I will find a solution, I will post it here. > > Cheers > > Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von Fred > Gleason > Gesendet: Mittwoch, 15. Februar 2023 16:57 > An: Icecast streaming server user discussions > Betreff: Re: [Ice...
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: