I'm feeling a little confused. After searching for two hours I haven't even been able to answer the question if it is possible or not:
In Javascript, I want to open an url and store the contents in a variable.
If I would write this in PHP, I would use fopen or file_get_contents. But I need to have this in Javascript. I don't want to use Java nor PHP nor ASP nor something else. And I don't want the page to be reloaded. Nothing with frames (not even iframes) or any other tricks. It should be plain Javascript. Nothing with ActiveX or any other platform-dependant stuff. This should be possible, or not?
What I have:
I've written a sendmail.php file, which sends as many mails as possible to different people during the period of one second. After this second, the script returns one single number: the number of mails sent. For precision: this number isn't a return-value of a function but the html-output. So if you would access this script in a normal browser with the address " you would see one single number on your screen.
What I want to do:
I want to write a html-page with a Javascript-Statusbar which shows me, how many mails I've sent till now (10% sent, 20% sent, ...). With the Javascript-function I would periodically call the sendmail.php-file to do its job and getting back the number of mails sent.
So. I need something like
num=getContents("
But... Well I haven't figured out, how to do this. And that's where I hope to get tons of information in this forum.
Thanks in advance.
In Javascript, I want to open an url and store the contents in a variable.
If I would write this in PHP, I would use fopen or file_get_contents. But I need to have this in Javascript. I don't want to use Java nor PHP nor ASP nor something else. And I don't want the page to be reloaded. Nothing with frames (not even iframes) or any other tricks. It should be plain Javascript. Nothing with ActiveX or any other platform-dependant stuff. This should be possible, or not?
What I have:
I've written a sendmail.php file, which sends as many mails as possible to different people during the period of one second. After this second, the script returns one single number: the number of mails sent. For precision: this number isn't a return-value of a function but the html-output. So if you would access this script in a normal browser with the address " you would see one single number on your screen.
What I want to do:
I want to write a html-page with a Javascript-Statusbar which shows me, how many mails I've sent till now (10% sent, 20% sent, ...). With the Javascript-function I would periodically call the sendmail.php-file to do its job and getting back the number of mails sent.
So. I need something like
num=getContents("
But... Well I haven't figured out, how to do this. And that's where I hope to get tons of information in this forum.
Thanks in advance.