Click to See Complete Forum and Search --> : auto-refresh


manja
08-05-2003, 01:39 AM
I’ve got a frame which consists of several html-pages.
One of these pages contains data which need to be refreshed automatically every half minute:

<script language="JavaScript">
<!--
setTimeout('location.href=location.href', 1000*30); // reload every 1/2 minute
//-->
</script>

I’ve included this code in the data-html-page.

My problem is that this code refreshes the other html-pages of this frame, too. That’s very annoying, because one of these pages consists an input-formular, which is cleared by every refresh, too.
I don’t want to hold this data and put it back into the input-fields, it’s really necessary to refresh only the data-page!
Is there any possibility to restrict the refresh really only to the data-page?

Thanks!

AdamGundry
08-05-2003, 05:10 AM
You should be able to do this:

setTimeout('framename.location.href=location.href', 1000*30);

Alternatively, you might look in to using a META REFRESH (http://www.pageresource.com/html/metref.htm) tag in the updated page.

Adam

manja
08-05-2003, 05:23 AM
I tried to do so, but it doesn't work.
The 2 pages (data & form) belongs to the same frame.

Imagin index-cards: One index-card contains the data-page, the other contains the form-page.
But the refreching of the data-page refreshes all other index-cards, too - but it mustn't!

AdamGundry
08-05-2003, 11:28 AM
I don't understand the layout you are describing. If you could post a link or some code, I might be able to help more.

Adam

manja
08-13-2003, 03:43 AM
In my mainframe I've got index-cards.
The content of every card is coded in its own page.
One of these cards contains data, which need to be refreshed. The code for refreshing is included in its site.
Another card shows a form.
Every time the data card/page is refreshed, this card is refreshed, too, and all entries were deleted :(
(The refresh occurs every 30 secs)

I know there is a possibillity to hold the data with cookies, but I should restrict the refresh to the data page

AdamGundry
08-13-2003, 04:32 AM
As I said, I need to see the code to help you. A screenshot shows the layout, but not the exact way the code works.

Adam