Link to home
Start Free TrialLog in
Avatar of Zuzic
Zuzic

asked on

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.
Avatar of TeRReF
TeRReF
Flag of Netherlands image

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" />

Avatar of Michel Plungjan
Why no cookies?
ASKER CERTIFIED SOLUTION
Avatar of Deepak Vasudevan
Deepak Vasudevan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zuzic
Zuzic

ASKER

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.