Jump to content

Carrying an on-state to the next page on re-direct


Kolinski

Recommended Posts

Hi all, 

 

I really need some help on this one. I've created a very complex page with a number of buttons that load content in dynamically.  (There are quite a few combinations)

 

What I would like to know is, is there a way to hard-code if an option is selected on one page that that selection stay open on another page ? 

 

For example I'm on the globe.html page having selected option 3. I open the view.html page and that page starts on option 3 due to it being selected on the previous page. 

 

Any help would be very appreciated :) 

 

 

Seeing as though you're just using html, and no php, you'd want to use javascript to set a cookie, or to use local storage.

 

You might also be able to set the values in a GET variable, which is appended to the URL in the address bar, and then pull them in on the view.html page using javascript again.

 

Hope that helps you get a start.

 

Denno

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.