one page filter results in new page in javascript

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-04-12T13:16:21Z Indexed on 2010/04/12 13:22 UTC
Read the original article Hit count: 359

Filed under:
|

I have links set up on one page and the relationship between the links is a parent child relationship. (For example: Parent: All, Children: Software; Hardware) These links of course lead the user to a new page that shows the results from a table that is populated. Currently these links are all Similar destinations, but just a filter in the url. But the problem is that there is a javascript filter on the page that gives the user to choose between All, Software, or Hardware. Understand basically that if the url is still reading that there on the software page but they just filtered on the page to be Hardware that doesn't look good IMO. So what I was trying to do was make the links on the inital page all go the the exact same destination and somehow still know on the new page which link was clicked and run the javascript filter from knowing which link was clicked on that page. Is there a way to found that out from javascript? I guess a way to pass that value to the new page and retrieving it in javascript without showing it in the url so I can filter the table for the user based on that value?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about filter