it can be easier than that, not so many variables to worry about :)
right before
$("#relatedTabs").tabs();
put
$("#relatedTabs > ul a").attr("href", function() {
if ($(this).attr("href").indexOf("#") > -1) { return "#" + $
(this).attr("href").split("#")[1]; } else { $(this).attr("href");
tabLinks= $('#relatedTabBar li a');
numOfTabs = tabLinks.length;
for (index = 0; index < numOfTabs; index ++)
{
oldAnchor = $(tabLinks[index]).attr('href');
hashPos = oldAnchor.indexOf('#');
newAnchor = oldAnchor.substr(hashPos);
$(
Thanks all, I have my problem solved. My CMS (TYPO3) was set to prefix
local anchors (needed for the URL re-writing extension realurl) and
this was changing the href's by adding a whole url.
Since I can't turn of this function without switching of realurl I
just alter the anchors before calling ta
In the included js (initialise.js):
$(document).ready(function(){
... // Code snipped
// Related Tabs on single view
$("#relatedTabs").tabs();
});
when you put an actual url into tabs href it treats them as ajax tabs.
If you aren't using AJAX in them remove the url within the href and
replace with href=""
Coxy wrote:
No I'm not, and in my static mock-up everything was ok. It does this
on the live site, and I want to find out why. Do
yes, change the tags in the code above as shown... by putting a
URL there you are telling the tabs plugin "go get this via AJAX
request"
See:
http://jqueryui.com/demos/tabs/#ajax
-
Fetch external content via Ajax for the tabs by set
yes, change the tags in the code above as shown... but putting a
URL there you are telling the tabs plugin "go get this via AJAX
request"
On Jan 11, 11:43 am, Coxy wrote:
> No I'm not, and in my static mock-up everything was ok. It does this
> on the live site, and I want to find out why. Do yo
No I'm not, and in my static mock-up everything was ok. It does this
on the live site, and I want to find out why. Do you know how to stop
it?
Are you looking to make an AJAX request to load the tab? i don't
think you are considering your markup...
change
Related
Articles
Files
Links
to
Related
Articles
Files
L
$(document).ready(function(){
...
// Related Tabs on single view
$("#relatedTabs").tabs();
});
It's in an external js: initialise.js
I'm having a hard time finding the jQuery code that gets executed when
you click on a tab...
Sorry, I wasn't sure if one was needed. Here is an example:
http://krautspotter.bungert.co.uk/article/goerlitzer-park.html
This loading of the whole page never happened with the static mock-up.
Also jquery seems to have created it's own tabs. I never called them
hrefs like #ui-tabs-22
Have you considered giving us the link to the live site?
Plus, it doesn't work in either IE6/IE7. :,(
serpicolugnut wrote:
>
> I'm having an issue getting Jquery tabs to run correctly. I'm using the
> technique described at
> http://media.jqueryfordesigners.com/jquery-tabs-part2.mov . I've setup a
> test case here:
>
> http://dl.getdropbox.com/u/21
That works, but this line of code -
$(tabContainers).hide().filter(this.hash).show();
...is supposed to hide all the tabs and show the first tab upon
execution. The cited example at jqueryfordesigners.com doesn't require
you to manually hide the divs with css, the jquery code is supposed to
do t
put style="display:none" on the content divs.
serpicolugnut wrote:
I'm having an issue getting Jquery tabs to run correctly. I'm using the
technique described at
http://media.jqueryfordesigners.com/jquery-tabs-part2.mov . I've setup a
test case here:
http://dl.getdropbox.com/u/21984/menu_test_
Initialize the content tabs as hidden using
class="ui-tabs-hide"
on the tags
Like:
Pane1
Pane2
Pane3
Pane 1 Contents
Pane 2 Contents
Pane 3 Contents
17 matches
Mail list logo