that solved it, Klaus. Thanks very much. Steve http://ge.la.to
On Fri, Apr 24, 2009 at 12:46 PM, Klaus Hartl <[email protected]>wrote: > > > > On 24 Apr., 04:46, Steve Odom <[email protected]> wrote: > > Hi, > > > > I'm trying to select a tab from a text link, similar to this example: > > > > var $tabs = $('#example').tabs(); // first tab selected > > > > $('#my-text-link').click(function() { // bind click event to link > > $tabs.tabs('select', 2); // switch to third tab > > return false; > > > > }); > > > > My html code looks like: > > <a href="/people/2-steveodom/activities?account_id=29" id="my-text- > > link">I want to open tab 2</a> > > > > The problem is my account_id param isn't being passed to my > > controller. If I remove the jquery function then the param gets passed > > okay. > > > > Any ideas of how I can keep that account_id param? > > > If the url is the same as a tab url you can set it before selecting > the tab. > > $('#my-text-link').click(function() { > $tabs.tabs('url', 2, this.href).tabs('select', 2); > return false; > }); > > --Klaus > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
