Jo************@gmail.com wrote:
Hi! I want to write a script that will read a .php file on a remote
server and print to the current page a portion of the text contained in
the remote file.
The only thing you have to do is circumvent the cross-domain security
restriction in javascript.
Javascript security restrictions require that the scripting
and the data being acted upon be delivered from the same domain
(
www.yourserver.com)
So what you need is a serverside cgi, servlet or similar
socket capable tool to proxy the request. The serverside widget
would take the result of the request and print it out as javascript
or such, and since the cgi , servlet or whatever was located on your
domain , javascript is happy.
--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML, CSS,Javascript
--=<> Internet Programming since 1994 <>=-- DHTML NSAPI TCP/IP
--=<>
http://resume.drclue.net <>=-- AJAX, SOAP, XML, HTTP
--=<>
http://www.drclue.net <>=-- SERVLETS,TCP/IP, SQL
--.