Alsvha
August 15th, 2006, 09:51 AM
Greetings all.
I have some difficulties - or rather in my view oddities - in Internet Explorer and some sutff I try to make.
I have an input field (<input ....>) which have a onBlur call to a function.
If there is text in the input field I want this function to do some stuff, and then remove the onBlur call from the input field, so it only gets called once.
I first tried to do this with
myNode.attributes.removeNamedItem('onblur');
which works wonders in FireFox.
Supposedly this should also work in IE 6+, but it doesn't work in my IE version 6.
Then I tried myNode.removeAttribue('onblur'); which again - works in FireFox, but not in my IE 6. It even returns "true" in IE, indicating it successfully removed that attribute.
The result is that in IE I can call onBlur multiple times, eventhough I supposedly have removed the onBlur.
Have anybody else experienced this problem, and if so - found a workaround?
I have some difficulties - or rather in my view oddities - in Internet Explorer and some sutff I try to make.
I have an input field (<input ....>) which have a onBlur call to a function.
If there is text in the input field I want this function to do some stuff, and then remove the onBlur call from the input field, so it only gets called once.
I first tried to do this with
myNode.attributes.removeNamedItem('onblur');
which works wonders in FireFox.
Supposedly this should also work in IE 6+, but it doesn't work in my IE version 6.
Then I tried myNode.removeAttribue('onblur'); which again - works in FireFox, but not in my IE 6. It even returns "true" in IE, indicating it successfully removed that attribute.
The result is that in IE I can call onBlur multiple times, eventhough I supposedly have removed the onBlur.
Have anybody else experienced this problem, and if so - found a workaround?