Displaying 18 results from an estimated 18 matches for "onreadystatechang".
Did you mean:
onreadystatechange
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)
...cboxchange/"
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("Connec...
2007 Dec 03
3
DOMContentLoaded error on IE6
...et 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...
2006 Apr 15
1
Begin with Autocompleter
...atch (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_request.r...
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi,
I''ve never posted here before so please forgive me if I''m not
observing proper decorum, yadda yadda yadda :-)
I''ve ran into a very, very strange bug with Prototype I wanted to
share and see if anyone else has seen this. In a few of my projects
involving Ext JS, I''m using the TreePanel control, which uses AJAX to
load child nodes asynchronously. Because I
2007 Nov 20
0
Prototype error in IE for dom:loaded code
...the client, and that is when I get a JS error on
line 3989.
That seems to be the code for faking the DOMContentLoaded event for
IE. The code is:
3988: document.write("<script id=__onDOMContentLoaded defer
src=//:><\/script>");
3989: $("__onDOMContentLoaded").onreadystatechange = function() {
The error I get is that $("__onDOMContentLoaded") is null. Going into
a debugger it seems that the document.write from line 3988 did not
actually add the script. document.scripts does not contain that
script. After I click the ok on the error, it seems that at some
poi...
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.
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
2007 Dec 27
5
Rails 2.02 dropped JSON attribute tag ?
Hey there
I was scratching my head over why my application breaks when I run on
a local server but works on my remote server. It turns out that my
local server is Rails 2.0.2 and my remote server is 1.2.3 and I expect
the tag "attributes" to be passed with a json stream, before parsing.
Unfortunately, this was dropped in 2.0.2. Is there any documentation
on this? Any way to get it back?
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this
is possible, but i cant seem to find how to do this, nor any example code
for this.
I would appreciate if someone could point me to some info or just give me an
explanation.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Oct 17
0
Wine release 1.7.29
...is NULL in WebBrowser::get_RegisterAsDropTarget.
mshtml: Moved BOM enum to binding.h.
mshtml: Moved script binding callback to script.c.
mshtml: Moved READYSTATE to string conversion to separated function.
mshtml: Use IUri for script binding.
mshtml: Added support for onreadystatechange event for script elements.
mshtml: Added IHTMLScriptElement::get_readyState implementation.
mshtml: Added IHTMLElement::language property implementation.
mshtml: Use proper codepage in nsIIOService::NewURI.
jscript: Don't use builtin property for exposing ActiveXObject...
2007 Feb 15
3
Re: Incremental Updates
As an alternative to polling the client, as Ryan describes, you could
consider piggy-backing the status updates on the back of other ajax
responses. Which way you go depends entirely on the nature of your app, in
particular:
1. how frequently it generates ajax traffic anyway
2. how long the server-side process is going to take
If the server-side process takes, say, 20 seconds, polling is a
2015 Jan 09
0
Wine release 1.7.34
...ties implementation.
mshtml: Use standard list to store task queue.
mshtml: Flush pending document node tasks before firing onload event.
mshtml: Delay onreadystateevent notification if script elemenet is not added by parser.
mshtml/tests: Added script element readyState and onreadystatechange tests.
mshtml: Correctly handle NULL active element in IHTMLDocument2::get_activeElement.
mshtml: Allow '#' to be the first char of resource name in res protocol.
mshtml: Introduced new representation of range point and use that in range_to_string instead of trying to ite...
2015 Jun 26
0
Wine release 1.7.46
....
secur32: Fixed compilation on very old gnutls versions.
mshtml: Use test.winehq.org over http in img_onload tests.
wininet: Get rid of unneeded MSG_WAITALL support in NETCON_recv.
wininet: Don't use blocking_mode_t in netconn.c.
mshtml: Added IHTMLXMLHttpRequest::onreadystatechange property implementation.
wininet: Call set_socket_blocking always and only when needed.
wininet: Cache blocking state in netconn_t.
urlmon/tests: Skip https tests on platforms that don't support them.
msscript.ocx: Added stub DLL.
msscript.ocx: Added typelib....
2009 Dec 04
0
Wine release 1.1.34
...ment URI.
mshtml: Added support for frames in navigate_url.
mshtml: Always return fake scheme in nsIURI::GetScheme if use_wine_url is set.
mshtml: Added IHTMLFrameBase2::put_src implementation.
mshtml: Added IHTMLFrameBase2::get_readyState implementation.
mshtml: Added onreadystatechange event support.
mshtml: Added onreadystatechange tests.
wininet: Directly return error status from NETCON_recv.
wininet: Directly return error status from refill_buffer.
wininet: Directly return error status from NETCON_init.
wininet: Make HTTP_HttpOpenRequestW static...
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...returned document.
+
+function AsyncLoader(cb) {
+ this.callback = cb;
+ this.load = function (url,query) {
+ var xmlhttp = new_XMLHttpRequest();
+ var cbk = this.callback;
+ //var timeoutID = window.setTimeout("alert('No response after 20 secs')",20000);
+ xmlhttp.onreadystatechange = function () {
+ if (xmlhttp.readyState==4) {
+ //window.clearTimeout(timeoutID);
+ if (xmlhttp.status==200) {
+ cbk(xmlhttp.responseText);
+ } else {
+ alert("Server returned status code "+xmlhttp.status+":\n"+xmlhttp.statusText);
+ cbk(null);
+ }
+ }
+ }
+...
2009 Sep 25
0
Wine release 1.1.30
...in about protocol documents.
mshtml: Fixed tests.
jscript: Added Array.splice implementation.
jscript: Fixed null dispatch comparison.
jscript: Fixed to_primitive for null dispatch.
mshtml: Report download failure to necko.
mshtml: Added semi-stub IHTMLElement2::onreadystatechange implmementation.
mshtml: Added IHTMLInputElement::src property implementation.
mshtml: Moved option_factory to HTMLWindow object.
mshtml: Moved HTMLLocation object to HTMLWindow.
mshtml: Make COM inproc object and document node separated objects inheriting from HTMLDocument...
2009 Dec 18
0
Wine release 1.1.35
...etting VT_EMPTY event handler.
jscript: Don't pass EXPR_NEWREF flag to evaluate member expression in array_expression_eval.
jscript: Moved set_last_index call to do_regexp_match_next.
jscript: Fixed String.split for missing regexp separator.
mshtml: Added IHTMLDocument2::onreadystatechange property implementation.
wininet: Correctly handle dwContentRead for gzip encoded requests.
wininet: lpszUrlPath should be NULL for URLs in file:///... format.
wininet: Make InternetCrackUrlA tests more generic and add more tests.
wininet: Set lpszUrlPath in InternetCrackUr...