By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,842 Members | 2,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,842 IT Pros & Developers. It's quick & easy.

Can't grab remote content

P: n/a
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,

Sep 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Actually, there is one more way to know my status: This file returns
"1" if I'm online of "" if I'm offline:
http://www.interactionchat.com/status.php?c=99

How could I grab the content of this file using JS?

Sep 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.