This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Dynamic tabs with Jquery and Symfony

New topics about Symfony 2 should go here

Dynamic tabs with Jquery and Symfony

by JMMS » Tue Apr 14, 2015 7:01 pm

Hello community,

I'm new here and rookie Symfony, so I need your help for a problem that I have.

I am creating the administration part of a web in Symfony, where I have a main menu with a list of links and when I select any of them I want a lower div dynamic active tab and whose content is the template of the route has displayed the "href" link. So every time you select a link from the menu to have 9 tabs at most.Here http://jsfiddle.net/JMMS_85/o7610t24/ you can see how I've wanted to do.

I added the load () method to load the route in the div, but although the content appears and gives problems, because only the first word is automatically activated.
Code: Select all
$("#tabs-"+tabCounter).load($(this).attr('href'));

In short, what I need is that since a main menu of options to click on each generate a tab at a lower div with content belonging to each link, and if one of the options already have the tab generated, activate to display the contents and not add another tab with the same content (can not be repeated lashes with the same content).

I appreciate all the help, thanks.
JMMS
Junior Member
 
Posts: 1
Joined: Tue Apr 14, 2015 6:27 pm