Hey guys and girls,
right, so there's me starting a registration form, with my newly acquired JavaScript skills for checking the input. And there's FireFox giving errors! It works, but I still don't like errors.
This is the error I get:
Fout: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 834" data: no]
And this is what I'm doing:
[code]
$display .= "<tr><td><input type='text' name='username' id='username' tabindex='1' onblur='checkUserName()' />";
$display .= "</td><td><span id='userError'></span></td></tr>"
[/code>
Basically at the moment just retrieving the value from an input textbox, alerting it and adjusting a span tag.
So why do I get the error (using the innerHTML is the right way to edit a span isn't it?) and is it harmful? At the moment I only got FireFox 3.0.11 installed so I can't test it in any other browser.
Thanks in advance =)