HighDots Forums  

Re: Tabellen-Inhalt per Menü-Klick dynamisch verändern

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


Discuss Re: Tabellen-Inhalt per Menü-Klick dynamisch verändern in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ulrich Stolve
 
Posts: n/a

Default Re: Tabellen-Inhalt per Menü-Klick dynamisch verändern - 11-23-2007 , 02:59 PM






Ulrich Stolve wrote:

Danke schön, Horst, habe eben Deine Nachricht gelesen und auch selbst
durch "rumfrickeln" eine Lösung gefunden:

Habe folgenden Code vor den kompletten "createElement"-Block eingefügt:

if(conti.hasChildNodes()){for(var cN=conti.childNodes.length;cN>0;cN--
{conti.removeChild(conti.lastChild);}}

Und siehe da, es funktioniert. Man muss manchmal einfach ein bisschen
Abstand nehmen... Dann geht's wie von selbst.

Danke nochmal.

U.

PS: aber Dein Code schaut natürlich professioneller aus!

--
This sick nature was brought to you by human kind,
please stay tuned.

Thank you.

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.