Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6051851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:51:47+00:00 2026-05-23T07:51:47+00:00

I’m using symfony and I have a module contacts in which I’ve created two

  • 0

I’m using symfony and I have a module “contacts” in which I’ve created two tabs “contacts” and “list of contacts”. In both tabs I have a filter and a list.
My problem is during the redirection after clicking on “filter” or “reset” in a tab.

By default when accessing on the main page, the tab “contacts” is active. Then, when I click on the tab “list of contacts” and when I use the filter, I’m redirected on the main page with the tab “contacts” active.

What I want is to pass argument in the redirection function so that when I click on the filter or reset button on the tab “list of contacts” I’m redirected on the main page contacts with the tab “list of contacts” active, and not the tab “contacts”.

Can you help me on that ?
Tell me if my problem isn’t clear enough for you guys to help me or if you need some code !

Here is my code :

    <li class="menu0">
            <a href="#menu_0" id="_0" class="current" onclick="multiClass(this.id)" title="menu1">Contacts</a>
    </li>
    <li class="menu1">
            <a href="#menu_1" id="_1" class="ghost" onclick="multiClass(this.id)" title="menu1">Liste des Contacts</a>
    </li>

    <div id="menu_0" class="on content">
        <h1></h1>
        <?php include_partial('invites/filters', array('form' => $filters, 'configuration' => $configuration)) ?>
        <?php include_partial('invites/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?>
    </div>

    <div id="menu_1" class="off content">


        <h2>-</h2>
        <?php echo include_component('groupe_invite', 'liste')?>
    </div>

And in my action:

  $this->redirect($request->getReferer()."#menu_1");

It doesn’t work….

Thank you

EDIT:

Here is my JavaScript function:

function multiClass(eltId) {
    arrLinkId = new Array('_0','_1','_2','_3');
    intNbLinkElt = new Number(arrLinkId.length);
    arrClassLink = new Array('current','ghost');
    strContent = new String()
    for (i=0; i<intNbLinkElt; i++) {
        strContent = "menu"+arrLinkId[i];
        if ( arrLinkId[i] == eltId ) {
            document.getElementById(arrLinkId[i]).className = arrClassLink[0];
            document.getElementById(strContent).className = 'on content';
        } else {
            document.getElementById(arrLinkId[i]).className = arrClassLink[1];
            document.getElementById(strContent).className = 'off content';
        }
    }   
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:51:48+00:00Added an answer on May 23, 2026 at 7:51 am

    If you are using jQuery UI for the tabs, you can add the ID of the tab to open in the URL hash:

    http://www.example.com/foo/bar#tabname

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a text area in my form which accepts all possible characters from
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.