PDA

View Full Version : meta REFRESH wont POST!


moazzamahmed
01-31-2005, 04:32 PM
hi

Does REFRESH not work the same way as hitting the refresh button on the browser (IE)?

I have this line on top of my code:

<meta http-equiv="Refresh" content="60">

and it works after 60 seconds BUT what it does is
goes back to that page like it was the first time it got there.

Is there a way to get the page to POST back instead of "browse back" to it?

the reason I need this is cause I have a tree on that page. When you come into the page, the tree is collapsed (nothing selected). User can then traverse down to a sub-node.

now, when the page refreshes, I need it to go to where the user was (meaning to that node selected).

When I hit refresh on my browser, it works exactly like I want it to. How do I get the same from the REFRESH tag?

thanks

Moazzam

senshi
01-31-2005, 05:51 PM
Does REFRESH not work the same way as hitting the refresh button on the browser (IE)?

You answered that one yourself....

What you might want to be trying is to reload the page location, something like window.location.reload as found here http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_location.asp

moazzamahmed
01-31-2005, 05:55 PM
yeah I got it but now, how do you suppress the RETRY/CANCEL prompt!

thx

Moazzam

Jon Hanlon
01-31-2005, 06:25 PM
Why do you want the page to refresh/reload every minute anyway?

moazzamahmed
01-31-2005, 06:29 PM
cause several ppl are using the UI and will be adding/deleting objects from the tree. Everyone needs to be able to see this real-time!

does that make sense?

so now can you answer my q! cause I answered yours!? :)

Moazzam

IKLOP
01-31-2005, 06:35 PM
Could you use the GET method instead of POST and use a server side language to determine where the meta refresh should go to?

Jon Hanlon
01-31-2005, 06:36 PM
Then what you need to do is have a form on the page that submits itself every minute, and sends information back to the server about what node the user has open. Then either the server or an onload() procedure can rebuild the tree and make it re-open at the right point.

moazzamahmed
01-31-2005, 07:55 PM
shoot! I was afraid that was the only way!

is it? Im trying to find a way to suppress that alert, and
dangit, Im going to find it! :)

the form thing is going to take too long. but I guess if worse comes to worst ...

thanks Jon!

Moazzam