jQuery tabs, use like menu, load page when click on link -
I've added jQuery tabs to my opt-out site I have no problem yet
but I I want to - click on a tab - do it as a regular link and should behave. Exampel 1: See this link.
this load while clicking on the option:
I want the following:
Exampel 2:
- Click on
- Start now (formerly Nunc.php)
- At least (ex. Proin.php)
- Anne Lecenia (formerly .nn.fp)
I have to reload the hole page. To click on the tab, "Now New" should nunc.php (and change the URL), "proin dolor" should be loaded by clicking proin.php and similarly.
How should I accomplish this?
You can give the anchor the actual href
features like this:
& lt; Div id = "tabs" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "nunc.php" & gt; New texts & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "proin.php" & gt; Prine Doler & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "aenean.php" & gt; Anne Licinias & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;
By default it will try to load and load those pages through AJAX in the same tab. To stop this behavior, simply change yourself in such a way:
$ ("# tab"). Tab ({Select: Function (Event, UI) {window.location = $ .Data (ui.tab, 'href.tabs');}});
(Note that you will get an unexpected / 404 page, because these PHP files are not on JSfield)
Comments
Post a Comment