|
|
Joined: Jan 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 4 |
Hi there, I'm looking for a way to refresh an IFRAME once changes have been made to the contents of the .dat file the php script uses in the IFRAME. let me explain first: I have a marquee on my ubb. The visitors can place a message in there. I have written a PHP script to do this. The submitted data is saved in a file called "marquee.dat" This file is included in the marquee PHP script which uses the variables defined in the "marquee.dat" to change the marquee. I only have one problem. The visitors need to refresh the page once they submitted the new contents of the marquee. So I was wondering if it is possible to refresh the marquee, once the new contents have been submitted. Then I thought, ok, that would be fine for the person who changed the contents, but what about all other viewers? Their marquee won't refresh at that moment. So this brings me back to my question. Is it possible to let the marquee PHP script refresh itself instantly, once the contents of the "marquee.dat" file change?
I hope you can help me out! Thanks!
[edit] I know this is possible with Macromedia Flash, I already did that, but I want to know if it is possible with jscript,php,cgi, or whatever [/edit]
[ February 22, 2001: Message edited by: Rene59 ]
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
You should be able to do a refresh on a named frame (or iframe) using a Javascript function... like parent.framename.reload() or something silly like that. My code example is unavailable at the moment, but hopefully this should get you on the right track.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 4 |
Thank you, I know how to do that, but this does not trigger a refresh in the other users' browser, does it?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Okay... this code was ripped from a form in a frames page.
Replace framename with the name of the IFRAME (i.e.
UBB.classic: Love it or hate it, it was mine.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|