[SOLVED] Annoying Illogical Javascript Error
Posted: Sat Jan 01, 2005 11:40 pm
I dont know what I am doing to be getting this. I have read somewhere that it may be an bug in firefox (which is what I am using by the way), but I am not sure. Based on how illogical the error is it may well be true.
Anyhow, I have a javascript call in the onLoad event of my <body> tag. Just a simple setfocus. If I add a second command after it, even a simple alert, it throws back the following error.
Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: <unknown filename> :: onload :: line 0" data: no]
It has me stumped. Any ideas why this would be so?
Anyhow, I have a javascript call in the onLoad event of my <body> tag. Just a simple setfocus. If I add a second command after it, even a simple alert, it throws back the following error.
Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: <unknown filename> :: onload :: line 0" data: no]
It has me stumped. Any ideas why this would be so?