[jQuery] Re: jquery tabs 3 - problems to send the hash to url

2009-06-11 Thread GaryM
I've done something similar in order to reload the correct tab if the user refreshes or bookmarks: --- $nav = $(".mainNav ul").tabs({ // set url hash to selected tab select: function(event, ui){ document.location.hash = $(ui.panel).attr("id");

[jQuery] Re: jquery tabs 3 - problems to send the hash to url

2009-06-11 Thread GaryM
Okay, figured it out: $nav = $(".mainNav ul").tabs({ // set url hash to selected tab select: function(event, ui){ document.location.hash = "t" + $(ui.panel).attr("id"); } }); // go to tab set in url

[jQuery] Re: How to pass mouse events around in a document?

2008-04-17 Thread GaryM
Doug, I looked at source codes for clickmenu & contextmenu to figure out the same thing, and the below variation works for me. 1) Add this to your openMe function: $(document.body).mousedown(function(e){ if ($(e.target).parents("#mymenu").length == 0) closeMe();