Can't grab remote content

R

Robert T.

I have a PHP script that displays my online status and shows a window
if I am online, or doesn't show anything if I am offline.

I'd like to include the content of this remote PHP file inside a web
page using JS. I have created an xmlHttpRequest script to do that but
it doesn't work as expected... It should work just like the status.php
file, but instead, the content doesn't show up in IE, and in Opera, it
it stuck in the upper-left corner...

Here's the PHP script: http://www.pontaltur.com.br/status.php
Here's a dumb plain text file with "1" written in it:
http://www.pontaltur.com.br/status.txt

and here's the location of the script:
http://www.pontaltur.com.br/ajax/

Maybe there is a nicer way of doing so?
Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top