Has anyone created a widget where a user could link to a specific view state through a hash added to the parent url? In other words, if I had a search form widget created with views filters that was embedded on a site, is there any way to adjust the parent URL, plus the views filter parameters after the user clicks the search button, and load the results in the widget?

Something like: http://parenturl.com/#search-results/var1=xxx&var2=xxx

Obviously there would need to be some javascript that added the hash after the parent URL, possibly using Ben Alman's JQuery BBQ and HashChange libraries (http://benalman.com/code/projects/jquery-bbq/)

In doing some reading, I noticed jtsnow got the JQuery UI Tabs to work in a widget (http://drupal.org/node/267192), I'm wondering if anyone has done this and also tackled the "deep linking" issue.

Here is the demo for UI Tabs working with the hash
http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui...

Thanks in advance.

Comments

murz’s picture

Drupal 7.x uses hash parameters for navigate in admin panel. Maybe we can reuse some of it code in module?