Opened 11 years ago

Closed 11 years ago

#4226 closed bug (duplicate)

Using '#id' syntax into href causes IE6 to load current page

Reported by: mikioma Owned by:
Priority: minor Milestone: 1.7
Component: ui.tabs Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:

Description

Hi,

I'm using jquery-1.3.2 + jquery-ui-1.6rc6. I'm trying to create a new tab using content from a 'DIV' I have previously appended to the tabs 'DIV'.

Using syntax '#Id_of_the_div' works fine for Firefox but makes IE6 to load the page itself into the tab content (it prepends it to my content, actually).

The problem seems to be IE6 transforms the '#Id_of_the_div' into 'http://myhost/mypage#Id_of_the_div' when reading back the href attribute (this is done into the '_tabify()' function) from the 'A' tag created into the 'add()' function.

As the url returned by IE6 doesn't start by '#', jquery tries to load it, causing the effect of retrieving the own page.

I've temporarily worked around it by writing a dumb attribute called 'true-href' as well as the standard 'href', and read the dumb one so that IE doesn't fake it.

Sure... not a clean solution... but fast and not a great modification to your base code...

Thanks so much!!!

Change History (1)

comment:1 Changed 11 years ago by klaus.hartl

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.