954,132 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

A Challenge - Layer/Div Tag related

ok, firstly, an outline.

I create coursware, and the coursware i'm crearing now is HTML, JS etc, etc. It works via MSIE, and is fullscreen, so it does not appear to the client that it is infact MSIE.

Ok, so here's the challenge.

There are paragraphs that build up (in layers) via show/hide function, at the ned of a build-up, it navigates to the next screen that works in precisely the same way.

What I need to know is, If I press the "Back" button from the second screen, it navigates, obviously to the 1st screen, BUT now, I need ALL the layers to be visible when I navigate back.

Any Suggestions?

gendv
Newbie Poster
18 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

Have an "onload" function. The script would look at the document's referrer. If the documents are named in a logical way, for example "page1", "page2", then you can do a substr on the name, get the number, and tell which direction you came from.

If you're running fullscreen, then what back button are you pressing? If you have built your own navigation buttons, then you can handle this with a querystring variable.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

Have an "onload" function. The script would look at the document's referrer. If the documents are named in a logical way, for example "page1", "page2", then you can do a substr on the name, get the number, and tell which direction you came from.

If you're running fullscreen, then what back button are you pressing? If you have built your own navigation buttons, then you can handle this with a querystring variable.

Have built my own navigational buttons.

gendv
Newbie Poster
18 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

Well, there you go. Have the back button append a querystring variable, and have all your "onload" scripts check for the presence of that variable, and act accordingly.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

don't forget that the user can just use the backspace button on the keyboard

campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
 

I tend not to worry too much about these issues. If a user uses shortcuts around my navigation, I assume they know what they are doing, and what results they'll get. If there are any complaints, I simply demonstrate that the issue has been addressed in the site's navigational elements. Done.

I also realize that most users quickly tire of "sexy interface effects", and while I pass no judgment on fading/layers or gendv's courseware system, it's not an effect I'd use, personally. If an effect is getting in the way of usablity, then do away with the effect.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

Unfortunately navigation is not up to me, I was told to figure out/find out how to do it for the clients... And as it happens the clients we are doing it for or not the brightest peanuts in the packet.

gendv
Newbie Poster
18 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You