Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
icedreaper
icedreaper's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Problem with jQuery UI tabs and base tag
[5Replies]
30-Nov-2012 05:03 AM
Forum:
Using jQuery UI
Hey,
I have a problem with the tabs widget from the newest jquery.UI (Version 1.9.2) when my document has a <base href=""> tag.
With the previous versions (1.8.23) it worked well.
I did a little research and the problem accours in the isLocal() function where the link href is compared with the location.href.
The link href has the base tag followed by the tab's id which should be opened.
When we set the complete link as href (
http://myserver/mydirectory/myfile#tabs-1,
etc) it works again, but when we only have the #tabs-1 it dosn't work.
The tabs widget loads the base tag as an remote file and adds it to the head of the first tab and ignores the rest of the tabs content.
Please see the attached png as reference with the screen and the firebug logs I did and the code.
I took the standard example, reloaded the unminified tabs file (to do changes there), and added a base tag.
Above the GET all logs are from the function isLocal() where I added the following lines of code:
console.log("hash: " + anchor.hash);
console.log("href: " + anchor.href);
console.log("replaced href: " + anchor.href.replace( rhash, "" ));
console.log("replaced location href: " + location.href.replace( rhash, "" ));
console.log("condition: " + anchor.hash.length > 1 && anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" ).replace( /\s/g, "%20" ));
I tried to build myself a bug fix for this problem by changing the code of the isLocal() function to the following code:
return anchor.hash.length > 1 && $(anchor.hash).length == 1;
It worked for me well with ID's and remote files to load.
Is it supposed to work like this or is it a bug? - It works with the example as well if you simply add an base tag to the html head.
Thanks and Regards
Attachments
Download
Delete
jqueryUI-Tabs-Basetag.png
Size: 102.85 KB
Downloads: 568
Download
Delete
jqueryUI-Tabs-Basetag-Code.png
Size: 41.19 KB
Downloads: 555
«Prev
Next »
Moderate user : icedreaper
Forum