Hi, I'm trying to do an elementary non-postback page refresh and the
following (edited) javascript snippet defines my problem:
xhttp = new ActiveXObject("Msxml2.XMLHTTP");
xhttp.onreadystatechange = HandlerOnReadyStateChange;
xhttp.open("GET", http://jeb.tzo.com/xmlr/sample.ashx?portfolio=1,
false);
xhttp.send();
When this code is run on a browser running on the server, it works. The
OnReadyStateChange event fires. But, when it is run on a remotely situated
browser it does not work. You can see it fail here: http://www.geocities.com/jebbushell/xmlr/sample.htm
Could this be a permissions issue? Does IIS somehow know when the request
is local? I'm using XP2.
Also, do I need a book? So far, none of the web articles/tutorials has
given me a completely satisfactory outcome. Your advice could really help me.
Thanks,
Jeb. 3 1433
If you like this type of stuff, look at Ajax. It is still the same thing,
basically, but there is a framework you can add to your apps.
For things that have to go live right now, Ajax.NET is a good open source
project. http://ajax.schwarz-interactive.de/c...e/default.aspx
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"JebBushell" wrote: Hi, I'm trying to do an elementary non-postback page refresh and the following (edited) javascript snippet defines my problem:
xhttp = new ActiveXObject("Msxml2.XMLHTTP"); xhttp.onreadystatechange = HandlerOnReadyStateChange; xhttp.open("GET", http://jeb.tzo.com/xmlr/sample.ashx?portfolio=1, false); xhttp.send();
When this code is run on a browser running on the server, it works. The OnReadyStateChange event fires. But, when it is run on a remotely situated browser it does not work. You can see it fail here:
http://www.geocities.com/jebbushell/xmlr/sample.htm
Could this be a permissions issue? Does IIS somehow know when the request is local? I'm using XP2.
Also, do I need a book? So far, none of the web articles/tutorials has given me a completely satisfactory outcome. Your advice could really help me.
Thanks, Jeb.
the client needs version 2 xmlhttp installed to support onreadystatechange.
also the url in the open has to be the same site as the page hosting the
javascript. (cross site scripting security).
-- bruce (sqlwork.com)
"JebBushell" <jebbushell AT yahoo DOT com> wrote in message
news:87**********************************@microsof t.com... Hi, I'm trying to do an elementary non-postback page refresh and the following (edited) javascript snippet defines my problem:
xhttp = new ActiveXObject("Msxml2.XMLHTTP"); xhttp.onreadystatechange = HandlerOnReadyStateChange; xhttp.open("GET", http://jeb.tzo.com/xmlr/sample.ashx?portfolio=1, false); xhttp.send();
When this code is run on a browser running on the server, it works. The OnReadyStateChange event fires. But, when it is run on a remotely situated browser it does not work. You can see it fail here:
http://www.geocities.com/jebbushell/xmlr/sample.htm
Could this be a permissions issue? Does IIS somehow know when the request is local? I'm using XP2.
Also, do I need a book? So far, none of the web articles/tutorials has given me a completely satisfactory outcome. Your advice could really help me.
Thanks, Jeb.
The code works for me either on the geocities page or on my hard drive.
I just saved the html and ran it from my computer and after it counted
through the 4 readystates I got Authorized Financial Analyst filled
with "John Doe". I don't know, was that what was supposed to happen. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Benedikt Wismans |
last post by:
Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7) Gecko/20040630
Dear group,
below is a simple XML request. It works fine, the only problem is that
Mozilla dos not quit the data transfer mode...
|
by: jason.lucey |
last post by:
Hi,
I need some help figuring this out. I cannot get the xmlhttprequest
object to return responseXML or getAllResponseHeaders. responseText
works fine, but i'd rather use xPath than regular...
|
by: vikas.khengare |
last post by:
Hi Friends....
I have AJAX code which giving "Permission denied to call method
XMLHttpRequest.open" error. This error fired by FireFox 1.0 and IE 6
and with Tomacat 5.x.
This code work very...
|
by: Matt Kruse |
last post by:
According to HTTP/1.1 specs, a client should only have two connections open
to the host at a time (which can be changed by browser users, of course).
When using xmlHttpRequest connections, is...
|
by: acord |
last post by:
Hi,
Can anyone tell me how to use XMLHTTPRequest or MS ActivcXObject open a
local file?
Thanks
Sam
|
by: Peter Michaux |
last post by:
Hi,
The FAQ correctly says the following:
"Mozilla (NN6.2+, Firefox, Ice Weasle etc), Opera 7.6+, Safari1.2+, the
Windows version of IE versions 5+, and some other browsers provide the
XML...
|
by: geevaa |
last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3
XMLHttpRequest and AJAX for PHP programmers
James Kassemi
Introduction:
Although the concept isn't entirely new, XMLHttpRequest...
|
by: Wizfrog |
last post by:
Hello,
I'm working with a pretty large XML file, but I really only need to
display a few things that requires quite a few transforms. I already
limited to the transforms to the data i need to...
|
by: Roadworrier |
last post by:
Hey, does anyone know how I can pause the processing of
XMLHttpRequests so that I can have the foreground interface respond to
user clicks?
I have 40 graphs drawing to the screen after getting...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |