Temjin
Junior Member
Posts: 2
Registered: 8/12/2004
Member Is Offline
|
| posted on 10/6/2004 at 02:30 PM |
|
|
Inner html link problem in IE, but works in other browsers.
Hello,
Got this problem with the inner html in the level 0 menu item script where clicking on it does not direct me to the desired link.
This is the inner html I used at the level 0 for the menu items,
['<table class="Classname" border="0" cellpadding="0" cellspacing="0"><tr><td
width="150">Some_name</td><td>></td></tr></table>', 'somepage.aspx', null,
Obviously, I wanted an arrow ">" that indicate the menu has additional levels. The title text is aligned on the left and the
">" text is aligned on the right.
Now, note that this works PERFECTLY in both Netscape (7.1) and Fireworks (v1.0) but it DOES NOT WORK in Internet Explorer at all.
When I hover my mouse over the menu link in Netscape and Fireworks, the url will be shown correctly at the bottom of the browser window. (i.e. it
points to somepage.aspx)
But if I do that in Internet Explorer, it will display something like
<table class="Classname" border="0" cellpadding="0" cellspacing="0"><tr><td
width="150"> (Some_name.......
(Note the opening bracket for the title text, I can't see the end cos the line was too long)
Anyway, can somebody tell me what is wrong with this? I have not tried the Wrapper method yet so I don't know if it will solve it. (but I
don't know how to implement iit anyway) Also note that other level links work perfectly in all browsers. Using Tigra Menu v2.0.
Thanks.
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/6/2004 at 06:16 PM |
|
|
Correct syntax for '>' in HTML is >
|
|
|
Temjin
Junior Member
Posts: 2
Registered: 8/12/2004
Member Is Offline
|
| posted on 10/7/2004 at 03:27 AM |
|
|
Thanks for replying.
I've changed the html line to
['<table class="Classname" border="0" cellpadding="0" cellspacing="0"><tr><td
width="150">Some_name</td><td>></td></tr></table>', 'somepage.aspx', null,
Nothing changed when I do this. While the ">" is shown correctly, clicking on the menu in IE still doesn't direct me to the link.
Though this still works in both Netscape and Firefox. The "displayed url" shown in the bottom of the IE browser still remain as the same, it
just display the html code, not the link itself.
Am i missing something? I am using the compressed script as well. But I remember the uncompressed script still produced the same problem.
Please help, thank you.
Regards,
Temjin
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/7/2004 at 04:32 PM |
|
|
Ah, now got it
in Tigra Menu (free version) the item rectangle is <a> tag so following item:
['<table class="Classname" border="0" cellpadding="0" cellspacing="0"><tr><td
width="150">Some_name</td><td>></td></tr></table>', 'somepage.aspx', null,
will result in following HTML code:
<a href="'somepage.aspx"><table class="Classname" border="0" cellpadding="0"
cellspacing="0"><tr><td
width="150">Some_name</td><td>></td></tr></table></a>
if you put that in static page you'll see that table is not sensitive to link.
the solutions are:
1. duplicate anchor link within the table (may not look/work great):
<a href="'somepage.aspx"><table class="Classname" border="0" cellpadding="0"
cellspacing="0"><tr><td width="150"><a
href="'somepage.aspx">Some_name</a></td><td>></td></tr></table></a>
2. upgrade to tigra menu pro or tigra menu gold. those products use separate layer over the item's area for mouse/link sensitive events.
|
|
|