Link to home
Create AccountLog in
Avatar of czechmate1976
czechmate1976Flag for United Kingdom of Great Britain and Northern Ireland

asked on

jQuery UI tabs

Hi guys, I have a question in regards to modifying/altering the jQuery UI Tabs functionality in a way that would allow switching the tabs without using hash in the URL and instead use a slash as if in a regular URL.

I am just trying to save time on this  if there is a way to bypass the hash in the url. Any tips will be greatly appreciated!
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

If you change to a slash. you will load a new page each time
Avatar of czechmate1976

ASKER

Not necessarily, if that segment does not exist in this path, it will just load the last valid url segment, ignoring the last that could be the name of the tab content. My problem remains the unwanted hash in the url.
This may on the surface seem like the wrong answer - but why not just write your own tab functionality? That way you can manage the URL the way you want to.

Basically you are picking up the click event on some <a> elements. Hidding all the tabs (by class) and then using something in the clicked element to identify the element (tab) you are wanting to show - you can even use the data attribute to store the info instead of the URL if you wish.
Not a wrong answer at all! That's what I am going to do; I was just trying to see if someone has done something like that with the jquery ui tabs in order to save precious time as jquery ui tabs  is the current solution in place
Unfortunately, I have to meet the requirement of the url last segment to be the tab name :-/.
If adding a slash something will have no influence on the page, then this should have made a new entry on the page each time I clicked

http://jsfiddle.net/mplungjan/N6HKE/
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I sugest a delete since none of the code demonstrated how to not use hash