Skip to main content

Search and Top Navigation

#4226 closed bug (duplicate)

Opened February 25, 2009 08:36AM UTC

Closed February 25, 2009 07:22PM UTC

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!!!

Attachments (0)
Change History (1)

Changed February 25, 2009 07:22PM UTC by klaus.hartl comment:1

resolution: → duplicate
status: newclosed