This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » jQueryUI Tabs issue
jQueryUI Tabs issue [message #96048] Tue, 23 March 2010 14:51 Go to next message
aechean  is currently offline aechean
Messages: 6
Registered: March 2010
Junior Member
Hello everyone, I've searched and searched for an answer to this problem, but I can't seem to find one.

I'm new to symfony, and I'm trying to use jQueryUI to set up a tabbed navigation menu and load the pages content in the tab via ajax.

I have it working to a degree, but where I'm running into the problem is that jQueryUI isn't highlighting the tab I'm on when I switch tabs.

Has anyone tried to do this before, or have any suggestions?

Currently I have the navMenu in a partial, and the tab divs are around the code generated by the action.

Huge thanks for any info!
Re: jQueryUI Tabs issue [message #96071 is a reply to message #96048 ] Tue, 23 March 2010 22:45 Go to previous messageGo to next message
hsostock  is currently offline hsostock
Messages: 96
Registered: November 2009
Member
Hi aechean, can you post your navMenu partial and the javascript you're using to manipulate the tabs?

Thanks,

Hale
Re: jQueryUI Tabs issue [message #96127 is a reply to message #96071 ] Wed, 24 March 2010 14:57 Go to previous messageGo to next message
aechean  is currently offline aechean
Messages: 6
Registered: March 2010
Junior Member
Thanks Hale, I figured it out! I was mixing the AJAX and non-AJAX way of doing the tabs, and it was all screwed up. Once I actually re-read the source code, I got it working!

I very much appreciate the help though!
Re: jQueryUI Tabs issue [message #96536 is a reply to message #96048 ] Wed, 31 March 2010 16:29 Go to previous message
aechean  is currently offline aechean
Messages: 6
Registered: March 2010
Junior Member
Alright, I lied. Apparently I don't have it working.

I'm trying to use the tabs purely as a navigational menu, loading my pages in the tabs, but being able to bookmark said tabs, and have the address bar correspond with the action I'm executing.

So here is my simple nav partial:

<div id='tabs'>
    <ul>
      <li id='home'><a href="<?php echo url_for('post/index') ?>" title="Home">Home</a></li>
      <li id='test'><a href="<?php echo url_for('post/test') ?>" title="Test">Test</a></li>
    </ul>
</div>


And the simple tabs intializer:
$(document).ready(function() {
		$('#tabs').tabs({spinner: ''
    
    
    });
});



My layout just displays $sf_content. I want to display the content for the action I'm executing (currently home or test) in the tab, via ajax, and have the tab be bookmarkable.

I've googled this like 4000 times and I can't find an example of what I'm trying to do. If anyone has a resource they know of, I can look it up, or if you can help, I would greatly appreciate it.

Thank you in advance.

[Updated on: Wed, 31 March 2010 18:06]

Previous Topic:mustMatch in JQuery Autocompleter
Next Topic:Invalid argument in supplied for foreach().. : in sfWidgetFormJQueryAutocompleterMany.class
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software