Current location: Hot Scripts Forums » General Web Coding » JavaScript » uncaught exception : cannot modify properties of a WrappedNative


uncaught exception : cannot modify properties of a WrappedNative

Reply
  #1 (permalink)  
Old 07-19-09, 10:49 PM
Thyrosis's Avatar
Thyrosis Thyrosis is offline
Newbie Coder
 
Join Date: Dec 2008
Location: South UK
Posts: 66
Thanks: 2
Thanked 0 Times in 0 Posts
uncaught exception : cannot modify properties of a WrappedNative

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:
function checkUserName()
			{
				var username = document.getElementById('username').value;
				alert(username);
				document.getElementById('userError').innerHTML = username;			
			}
[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 =)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
uncaught exception: Permission denied to call method XMLHttpRequest.open flann JavaScript 2 04-25-07 02:18 AM
Fatal error: Uncaught exception 'com_exception' moonncloud PHP 0 08-03-06 02:55 AM


All times are GMT -5. The time now is 01:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.