HighDots Forums  

Re: Falsche Darstellung im IE bei document.links[i].href, wenn innerText '@' enthaelt

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Re: Falsche Darstellung im IE bei document.links[i].href, wenn innerText '@' enthaelt in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: Falsche Darstellung im IE bei document.links[i].href, wenn innerText '@' enthaelt - 02-11-2004 , 12:59 PM






Heiko Pliefke wrote:

Quote:
Ist das ein Bug oder ein Feature?
Ersteres.

Quote:
- Hat irgendjemand eine Erklärung dafür?
Nicht wirklich. Frag mal in einer Gruppe der microsoft.*-
Hierarchie.

Quick'n dirty hack:

function atTest() {
for(var tmp, i=0; i < document.links.length; ++i) {
if (document.links[i].innerHTML) tmp = document.links[i].innerHTML;
document.links[i].href = document.links[i].href + "?a=" + i;
if (tmp) document.links[i].innerHTML = tmp;
}
}

ciao, dhgm



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.