Hello. I use ready jquery plugin for slider'a content. Here is a piece of code:

<ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"> <a href="#fragment-1"> <span>Patients</span> </a> </li> . . . </ul> 

The attribute specifies an anchor to the content block, and it is necessary that in addition to this, when you click on the link, you go to the specified page. Is there any way to do this?

  • Something I can not understand. You, as I understand it, use [UI Tabs widget] [1], which allows you to navigate through tabs with different content without rebooting. Then the question is - why do you need to reboot? [1]: jqueryui.com/demos/tabs - Deonis
  • I use demo.webdeveloperplus.com/featured-content-slider it switches itself by anchors. But I need to THAN THIS when clicking on the link, another page opens. - Gena Tsarinny

1 answer 1

But I need to THAN THIS when clicking on the link, another page opens

Yeah, but what about the slider? In general, seeing today is a day like this - a day of inappropriate tasks.

 <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"> <a href="some_page_1.html#fragment-1"> <span>Patients</span> </a> </li> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-2"> <a href="some_page_2.html#fragment-2"> <span>Doctors</span> </a> </li> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-3"> <a href="some_page_3.html#fragment-3"> <span>Diagnosis - lamer</span> </a> </li> . . . </ul> 
  • Let the slider work / spin. Unfortunately, your option does not work. - Gena Tsarinny
  • So you should not follow the link to another page, but load it. In this case, look towards Ajax. For example, the .load () method. And the code will look something like this: $ ("# container"). Load ("path_to_page / page.html"); Where #container is the id of the block into which the page should be loaded - Deonis
  • Thank you for trying to help me, but the fact is that I don’t need to load anything anywhere, but it’s necessary to implement exactly the transition, as in the usual hyperlink, to another page. I understand perfectly well that this is, at least for me, from the category of impossible things, so I ask "is it possible to implement it at all?". - Gena Tsarinny