Forum Moderators: open

Message Too Old, No Replies

show results allready while script is running in frame/window

show results allready while script is running

         

Milchbazi

2:28 pm on Jan 17, 2004 (gmt 0)

10+ Year Member



Hello everybody,

I have a script which does many configurations. Now I want to let the user see what the script does in an other window or frame. The script is in PHP and I could use the function flush() but this function doesn't work on windows systems. Flash would be to much effort I think, so I'll try to make it in javascript. To my question:

Is it possible to show the result for every step of the script via javascript right away in an other frame or window?

If it's possible, could you give me a few examples?

Thx for your help!
Milchbazi

BlobFisk

12:52 am on Jan 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Milchbazi!

How about using an alert at each point?

Milchbazi

1:04 pm on Jan 18, 2004 (gmt 0)

10+ Year Member



No, it's a kind of LiveUpdate I want to create. If userers run this script they don't want to click every 5 sec on this alert funtion. Soon nobody will run this script then again.

Look, I'm sure you installed already something on your computer. And when you install a programm there aren't many popups you have to close. But der is a status. You can see how far the installation is. And thats what I want to make.

Like this:


Connecting to Server...
Connected to Server...
Looking for a new version...

There is no new version available!

Purple Martin

9:58 pm on Jan 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As the script is running server-side, you could put a little iFrame in your web page and update that regularly by sending it new pages with just one line of text in. If you keep the iFrame pages trimmed down to the bare essentials the load time should be negligable.

Milchbazi

6:51 am on Jan 19, 2004 (gmt 0)

10+ Year Member



Thanks for this suggestion, but I'm still not very happy with it. Maybe I'll try Flash. The only reason why I didn't do it yet is I have no Idea of Flash programming. I mean I know how to create the Flash-Script with Flash MX or so but I don't have a clue how to insert the data via php into that script. Maybe I should ask in an other Forum for that.

Anyway, thanks for all your support!
Milchbazi

Purple Martin

10:42 pm on Jan 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, Flash is a very good idea. With Flash Communication Server you can have live feed from the server (and back again if you want) without page reloads. Just remember to consider accessibility issues (although in this case it's not essential content that is being fed, so you're probably OK).