fusionless
asked on
Keeping navigation open when page refreshes
I have a pages which are built as ASP pages with a side navigation which is brought in through an <iframe>. In the side nav there is a function on the testimonials botton which expands the menu, this works however when the new page opens the menu shuts as the page refreshes. Can anyone tell me how to keep it open.
thanks
thanks
The iframe is loaded at every load of parent page.
So far is the src for the sidenav iframe fixed url without parameters.
Therefore is the sidenav iframe not able to open in previous expand state.
You have two options:
1.) Pass the expand state to clicked link, and back to iframe src.
2.) Store the expand state in browser cookie and recreate the expand state in the onLoad event of the iframe page.
I would recommand the first approach.
So far is the src for the sidenav iframe fixed url without parameters.
Therefore is the sidenav iframe not able to open in previous expand state.
You have two options:
1.) Pass the expand state to clicked link, and back to iframe src.
2.) Store the expand state in browser cookie and recreate the expand state in the onLoad event of the iframe page.
I would recommand the first approach.
ASKER
can you so me how to do this?
This which, cookie or parameter?
ASKER
option 1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think I know what you mean, could you clarify where to put the asp function which operates 'candidates_testimonial1.a sp?navi=ma in3sub1' and so me an example it would be much appreciated.
ASKER
hi Zvonko
are you able to clarify how the asp would work by showing where the appropriate code would go
are you able to clarify how the asp would work by showing where the appropriate code would go
ASKER
Although I have sorted the problem using a far simpler method (including a seperate nav ifarame for the pages where the nav must stay open) I would still be interested if you could suggest asp code which would do the job in a more efficient way.
I will try to do this on Monday.
So long Nice Weekend,
Zvonko
So long Nice Weekend,
Zvonko
ASKER