Hi
check_img = document.createElement("<img name='failed'>");
Da ich nur für den IE programmiere, werd ich den Check nicht benötigen. Das zählen funktioniert jetzt wuderbar, die Namen scheinen vergeben.
Doch jetzt stehen wir an der nächsten Hürde wieder an:
~~~javascript
this.checkValue = function()
{
if (this.value!="")
{
check_img = document.getElementById('ck_'+this.name);
check_img.src = 'img/done.gif';
check_img.setAttribute('name', 'done');
}
else
{
check_img = document.getElementById('ck_'+this.name);
check_img.src = 'img/failed.gif';
check_img.name = 'failed';
}
}
schliesslich soll der Name nicht immer 'failed' bleiben. Wie Ihr seht habe ich beide mir bekannte zuweisungsvarianten versucht, aber keine greifft, ich hab immer gleich viele 'failed' IMG's :-(
[quote]
Microsoft JScript allows the name to be changed at run time. This does not cause the name in the programming model to change in the collection of elements, but it does change the name used for submitting elements.
The NAME attribute cannot be set at run time on elements dynamically created with the createElement method. To create an element with a name attribute, include the attribute and value when using the createElement method.
[/quote]
Ich muss das ganze wohl irgendwie anders lösen...
THX
ie:} fl:( br:> va:) ls:& fo:# rl:( n4:? ss:) de:] js:| ch:? sh:) mo:? zu:)
------------------------------
lieber ein Pinguin der läuft
als ein Fenster das hängt
------------------------------