D
David McNerney
Would anyone be able to tell me why I get an error in FireFox 1.5.0.1
for MacOSX when I type some text and hit Enter in the following form:
<html>
<body>
<form action="http://example.com" onSubmit="return false;">
<input type="text" name="samplenum" value=""
onChange="alert('onChange fired');">
<input type="submit" name="cmd_submit" value="Submit"
onClick="return false">
</form>
</body>
</html>
Needless to say, this is a pruned down toy example. It seems like there
must be a bug, but I'd like to make sure that I'm not doing something
wrong. I don't get the error if I remove the onChange event handler.
The error reads:
Error: [Exception... "'Permission denied to set property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///Users/dave/sy_dir/u01/app/lims/httpd/htdocs/ajax.html ::
onchange :: line 1" data: no]
Source File:
file:///Users/dave/sy_dir/u01/app/lims/httpd/htdocs/ajax.html
Line: 1
for MacOSX when I type some text and hit Enter in the following form:
<html>
<body>
<form action="http://example.com" onSubmit="return false;">
<input type="text" name="samplenum" value=""
onChange="alert('onChange fired');">
<input type="submit" name="cmd_submit" value="Submit"
onClick="return false">
</form>
</body>
</html>
Needless to say, this is a pruned down toy example. It seems like there
must be a bug, but I'd like to make sure that I'm not doing something
wrong. I don't get the error if I remove the onChange event handler.
The error reads:
Error: [Exception... "'Permission denied to set property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///Users/dave/sy_dir/u01/app/lims/httpd/htdocs/ajax.html ::
onchange :: line 1" data: no]
Source File:
file:///Users/dave/sy_dir/u01/app/lims/httpd/htdocs/ajax.html
Line: 1