![]() |
not abl to retrive page by javascript
hey!!
i am trying to get this code running .. it works fine when i am open it localy that is i double click html file every thing goes okey .. but when i request it form site eg. http://10.0.54.61. the error is that permisson denied and the page i request does no get displayed... wot is wrong kindly help :
<HTML> |
As far as I know, XMLHttpRequest only lets you retrieve information from the local server as part of a security measure. If you want to retrieve information from a remote server you need some sort of proxy.
As an aside, your code is IE-specific. Okay for testing, but you'd have to change that for production use - just in case you didn't know. |
i am using it for ie 6 only... are u sue abt the "XMLHttpRequest only lets you retrieve information "
w3 words The XMLHttpRequest object is an interface exposed by a scripting engine that allows scripts to perform HTTP client functionality, such as submitting form data or loading data from a server. |
why not use a system call and wget? ofcourse, this will only work if your using something like php, as javascript is client side only.
|
ya i am doing same but i get error permission denied. .. when below gets executed ....
:
req.open("GET",url,false); //i see error here ::permission deniedi do't understand that |
Quote:
In any case, yes, I'm fairly sure, assuming you meant "sure" rather than "sue" and "about" rather than "abt". See here. |
thanks for that arevos .... i will work on your advice .. secondly.. i am here for hint .. not for some to work on my problems .
|
you can run this script code from your computer as "local file" but you can't run from "internet location" ;)
because 1 : it's unsafe! are you sure the object xmlhttp from microsoft server exists on every computer?? 2 : access from client-to-server by getting GET is denied you want show other page in your page? soultion: 1 : write a server side (or server run) script! 2 : use frame with src propety for showing other page |
| All times are GMT -5. The time now is 11:24 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC