Thread: RE: [xmljs-users] XmlHttpRequest Object
Brought to you by:
djoham,
witchhunter
From: Barry B. <Ba...@al...> - 2005-01-06 22:36:26
|
>> Since, I was running my webserver on the same computer, it was giving me the warning. your sysadmin has probably made these settings on you. I run a local coldFusion webserver to develop against and don't get this error because my browser is config'd not to do so. the sysadmin msy have locked it on you so you can't change it=20 (for IE: tools ->internet options->security(tab)->custom level(button)) cheers barry.b -----Original Message----- From: xml...@li... [mailto:xml...@li...] On Behalf Of Heath Borders Sent: Friday, 7 January 2005 5:21 AM To: David Joham Cc: xmljs-users Subject: Re: [xmljs-users] XmlHttpRequest Object I figured out what it was. IE throws the ActiveX warning if you call the XmlHttpRequest object from a page served from your localhost. Since, I was running my webserver on the same computer, it was giving me the warning. When I ran it from an external computer, it was fine. Thanks. On Thu, 6 Jan 2005 10:09:56 -0800 (PST), David Joham <dj...@ya...> wrote: >=20 > From a quick inspection, that looks like it should work OK. XML for <SCRIPT> doesn't use > XMLHttpRequest so beyond that, I'm at a loss :) >=20 > David >=20 > --- Heath Borders <hea...@gm...> wrote: >=20 > > I'm trying to use the XmlHttpRequest Object to make requests back to > > my web server to retrieve some Xml data. The request object itself > > works fine and the request comes back just fine. However, every time > > I make the request, my browser prompts my about using an ActiveX > > control that is safe for scripting. The example websites I've viewed > > that use the XmlHttpRequest Object call it the same way I do, and I > > don't get this warning when I view those pages. > > > > Here is a link to an example page: > > > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa mple.html > > > > Here is my function that actually calls the XmlHttpRequest Object: > > function loadXMLDoc(url) { > > // branch for native XMLHttpRequest object > > if (window.XMLHttpRequest) { > > req =3D new XMLHttpRequest(); > > req.onreadystatechange =3D processReqChange; > > req.open("GET", url, true); > > req.send(null); > > // branch for IE/Windows ActiveX version > > } else if (window.ActiveXObject) { > > req =3D new ActiveXObject("Microsoft.XMLHTTP"); > > if (req) { > > req.onreadystatechange =3D processReqChange; > > req.open("GET", url, true); > > req.send(); > > } > > } > > } > > > > -- > > -Heath Borders-Wing > > hbo...@ma... > > > >=20 > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users >=20 --=20 -Heath Borders-Wing hbo...@ma... ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |
From: Heath B. <hea...@gm...> - 2005-01-07 02:53:17
|
Yeah, I found that. I just did a little googling and found it. On Fri, 7 Jan 2005 08:36:39 +1000, Barry Beattie <Ba...@al...> wrote: > > >> Since, I was running my webserver on the same computer, it was giving > me the warning. > > your sysadmin has probably made these settings on you. I run a local > coldFusion webserver to develop against and don't get this error because > my browser is config'd not to do so. > > the sysadmin msy have locked it on you so you can't change it > (for IE: tools ->internet options->security(tab)->custom level(button)) > > cheers > barry.b > > > -----Original Message----- > From: xml...@li... > [mailto:xml...@li...] On Behalf Of Heath > Borders > Sent: Friday, 7 January 2005 5:21 AM > To: David Joham > Cc: xmljs-users > Subject: Re: [xmljs-users] XmlHttpRequest Object > > I figured out what it was. > > IE throws the ActiveX warning if you call the XmlHttpRequest object > from a page served from your localhost. > > Since, I was running my webserver on the same computer, it was giving > me the warning. > > When I ran it from an external computer, it was fine. > > Thanks. > > On Thu, 6 Jan 2005 10:09:56 -0800 (PST), David Joham <dj...@ya...> > wrote: > > > > From a quick inspection, that looks like it should work OK. XML for > <SCRIPT> doesn't use > > XMLHttpRequest so beyond that, I'm at a loss :) > > > > David > > > > --- Heath Borders <hea...@gm...> wrote: > > > > > I'm trying to use the XmlHttpRequest Object to make requests back to > > > my web server to retrieve some Xml data. The request object itself > > > works fine and the request comes back just fine. However, every > time > > > I make the request, my browser prompts my about using an ActiveX > > > control that is safe for scripting. The example websites I've > viewed > > > that use the XmlHttpRequest Object call it the same way I do, and I > > > don't get this warning when I view those pages. > > > > > > Here is a link to an example page: > > > > > > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa > mple.html > > > > > > Here is my function that actually calls the XmlHttpRequest Object: > > > function loadXMLDoc(url) { > > > // branch for native XMLHttpRequest object > > > if (window.XMLHttpRequest) { > > > req = new XMLHttpRequest(); > > > req.onreadystatechange = processReqChange; > > > req.open("GET", url, true); > > > req.send(null); > > > // branch for IE/Windows ActiveX version > > > } else if (window.ActiveXObject) { > > > req = new ActiveXObject("Microsoft.XMLHTTP"); > > > if (req) { > > > req.onreadystatechange = processReqChange; > > > req.open("GET", url, true); > > > req.send(); > > > } > > > } > > > } > > > > > > -- > > > -Heath Borders-Wing > > > hbo...@ma... > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > > It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > xmljs-users mailing list > > > xml...@li... > > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > -- > -Heath Borders-Wing > hbo...@ma... > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > -- -Heath Borders-Wing hbo...@ma... |