Posts: 65
Location: san francisco, ca
|
Cant provide code example just yet. Just trying to provide proof-of-concept, yes/no, doable/not-possible feedback for client. I'll create test page examples if the following explanation doesnt describe
GOAL
Id like an HREF anchor on a page to carry with it instructions regarding what to hide/show on the destination page when it loads. These special HREF anchors would be on multiple pages, each carrying unique instructions regarding which ID's on that page to SHOW/HIDE.
MENU PAGE
- List of anchors at top
- Each anchor has jQuery .click function to SHOW corresponding DIV with list of links, and HIDE all other link list DIVs
- When user clicks a link within one of those lists, they go to new page, say: Article page.
ARTICLE PAGE
- On the Article page, a BACK link would return to MENU page with same DIV shown or hidden
- A straight -1 history call will load MENU page in default state.
- I need it to load with specific IDs shown/hidden (via jQuery).
SO BASICALLY
I'm wondering how that BACK link would need to be appended with instructions to the MENU page, to tell it which DIV lists to show or hide
AGAIN
Each Article page will need to have unique instructions. That is: "on load, hide all link links but the one i came from"
CRUDE EXAMPLE
a page containing "Articles from List A" would have a BACK link with special instructions to
<a href="menu.html" (show #list_a) (hide #list_b) (hide #list_c)>Back to List A</a>
Apologies for the nebulous descriptions. Hope there's enough detail to garner a solution.
|