newbie - force frame update for multiple users?
Hello Please forgive my ignorance, but is the following possible? I'll have about 10 users viewing the same dtml document which displays a frameset. Anyone of the users can supply input via a form in one of the frames. The submitted data is used to update the other frames. Is it possible to get the server to update all the users and not just the single submitter? How would I get a reference to the other users? Any tips would be appreciated. Thanks, Brian
You could do an automatic refresh in all the users frames every 5 or 10 seconds, using <meta http-equiv="Refresh" content="5; url=http://www.mydomain.com/sup"> Other options are (complex) javascript solutions. -Morten
The way I would do it is to create a small floating window with javascript in it that would check the server on a regular basis (1 second, 10 seconds, 5 minutes? - whatever would suit your needs) to see if any of the data in the frames in question has changed. If no change, the floating window would be refreshed with a new copy of itself to check again after the specified interval. If the data has changed the floating window would be refreshed with javascript to update the relevant fields in the relevant frames and then recheck for new data after the appropriate time period. Note. the floating window could just be an addtional frame that does not even have to be visible (set its frameset row or column value to zero) You could also include a button to force a check. __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________ ----- Original Message ----- From: Brian McClain <brian@liaone.ne.mediaone.net> To: <zope@zope.org> Sent: Thursday, May 11, 2000 9:03 AM Subject: [Zope] newbie - force frame update for multiple users? Hello Please forgive my ignorance, but is the following possible? I'll have about 10 users viewing the same dtml document which displays a frameset. Anyone of the users can supply input via a form in one of the frames. The submitted data is used to update the other frames. Is it possible to get the server to update all the users and not just the single submitter? How would I get a reference to the other users? Any tips would be appreciated. Thanks, Brian _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
There's a simpler way; in the <head> of the document you want to refresh, put: <META http-equiv="REFRESH" content="$num_of_seconds"> where $num_of_seconds is how often to refresh the page. srl ----- Shane Renee Landrum slandrum<@>cs.smith.edu On Thu, 11 May 2000, Jim Sanford wrote:
The way I would do it is to create a small floating window with javascript in it that would check the server on a regular basis (1 second, 10 seconds, 5 minutes? - whatever would suit your needs) to see if any of the data in the frames in question has changed. If no change, the floating window would be refreshed with a new copy of itself to check again after the specified interval. If the data has changed the floating window would be refreshed with javascript to update the relevant fields in the relevant frames and then recheck for new data after the appropriate time period.
Note. the floating window could just be an addtional frame that does not even have to be visible (set its frameset row or column value to zero)
You could also include a button to force a check.
__________________________________________________________________
Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com
Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________
----- Original Message ----- From: Brian McClain <brian@liaone.ne.mediaone.net> To: <zope@zope.org> Sent: Thursday, May 11, 2000 9:03 AM Subject: [Zope] newbie - force frame update for multiple users?
Hello Please forgive my ignorance, but is the following possible? I'll have about 10 users viewing the same dtml document which displays a frameset. Anyone of the users can supply input via a form in one of the frames. The submitted data is used to update the other frames. Is it possible to get the server to update all the users and not just the single submitter? How would I get a reference to the other users? Any tips would be appreciated.
Thanks, Brian
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Brian McClain -
Jim Sanford -
Morten W. Petersen -
srl