Refresh my page but keep the collapsed sections collapsed.

Hi all,

My situation is this.

I'm developing a JSP which refreshes itself every 60 seconds using <meta http-equiv="refresh" content="60">

Now this tag is working just fine for me however I have some java script in my page which enables me to collapse / retract blocks of data displayed in the page and I'm finding that on the page being refreshed that all of the collapsed data blocks become retracted again.

I'd really like to know how I can keep my page expanded in it's current state on refresh preferably without using cookies.

Has anyone out there got a solution for this which they'd be willing to share with me?

Regards.
ZuzicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TeRReFCommented:
You could use GET to pass a value which you can use.
<meta http-equiv="refresh" content="60;URL=http://your_server/your_page?collapsed=1" />

Michel PlungjanIT ExpertCommented:
Why no cookies?
Deepak VasudevanGlobal TravellerCommented:
You can check out the DestroyDrop.com JavaSCript Tree. It shows you how to preserve state using a simple cookie value.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ZuzicAuthor Commented:
Hi all,

I'm sorry about my late reply.

I guess that I'll have to accept the use of cookies.

I was thinking that for security reasons my customer wouldn't want them on their system but have since found out that I can as long as I clarify to them what the cookie is.

So I throw the floor open to thie ruse.

The DestroyDrop.com site looks very flashy to me and seems to be a winner but in all fairness I'll not accept it as the solution until others have had a change to reply - given the change in my cookie opinion.

Thanks all.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.