473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error: permission denied to get XULElement.selectedIndex

I am getting an odd, inscrutable error in Mozilla Firefox. When I use
an array to shift focus to an element, I get the 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 ::
http://www.biostat.wustl.edu/~consul...va/mainjava.js :: nclkH ::
line 292" data: no]
Source File: http://www.biostat.wustl.edu/~consul...va/mainjava.js
Line: 292

However, the focus() works fine.

1) How do I interpret this error?

2) Is there some error dictionary or something for FireFox?
Jul 23 '05 #1
4 9598
Paul Thompson wrote:
I am getting an odd, inscrutable error in Mozilla Firefox. When I use
an array to shift focus to an element, I get the error <snip> 1) How do I interpret this error?
2) Is there some error dictionary or something for FireFox?


- A quick look shows that you're missing a lot of semicolons.
- You have multiple variable declarations for the same variable in this
function:

function chkV(f,fnm,chkval) {
var retval=0;
...
var retval=1;
-IN the functions CSV, CSVx, CVBx, CSVval, fixblank, clkH, CBV, showall
I'd recommend using "var" before the loop counter, e.g.

for (i=0; i < zmaxv; i++) .... for (var i=0; i<zmaxv; i++}
-In the functions CBV and CVBx, in the loops, why not return as soon as
a selected button's value is found. And maybe eliminate retv using
something like:

http://www.breakingpar.com/bkp/home....256AFB0013E5E9

function getSelectedRadio(buttonGroup) {
//returns the array number of the selected
//radio button or -1 if no button is selected
for (var i=0; i<buttonGroup.length; i++) {
if (buttonGroup[i].checked) {
return i;
}
}
// if we get to this point, no radio button is selected
return -1;
}

-The FAQ for this group has Left Trim and Right Trim functions, if you
want to take a look at them:
function LTrim(str) {
for (var k=0; k<str.length && str.charAt(k)<=" " ; k++) ;
return str.substring(k,str.length);
}
function RTrim(str) {
for (var j=str.length-1; j&gt;=0 && str.charAt(j)<=" " ; j--) ;
return str.substring(0,j+1);
}
function Trim(str) {
return LTrim(RTrim(str));
}

I don't know if these will fix your problem, but I think they're
generally good advice. If they don't fix the problem, how about posting
the url of the page that uses that script?

Good Luck,
Mike


Jul 23 '05 #2
I struggled with this error for half a day ....and finally found a simple fix.

Error: [Exception... "'Permission denied to get property XULElement..."

This is apparently a bug in FireFox's AutoComplete code. I found a reference to this in Bugzilla, and was able to avoid it like this:

<input type="text" autocomplete="off" name="fname"> etc.

The error message went away and all is well. It did not seem to have any problems in IE before or after adding the autocomplete parameter.

'hope this helps.
Feb 9 '06 #3
I have the same problem... but the cursor is invisible. I know the focus is there because when I type, characters show up in the input field. I tried the autocomplete="off" (Thanks rickeyFitts!) and that got rid of the errors, but cursor is still disappearing. Does anyone have any ideas?

I am getting an odd, inscrutable error in Mozilla Firefox. When I use
an array to shift focus to an element, I get the 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 ::
http://www.biostat.wustl.edu/~consul...va/mainjava.js :: nclkH ::
line 292" data: no]
Source File: http://www.biostat.wustl.edu/~consul...va/mainjava.js
Line: 292

However, the focus() works fine.

1) How do I interpret this error?

2) Is there some error dictionary or something for FireFox?
Mar 29 '06 #4
The missing cursor in Firefox is caused because the input is nested within a <div>, I am not sure why, to fix it add the following attribute to the div tag: style="overflow:auto;".
Jul 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Miguel Cañedo | last post by:
Hi: I'm testing with fireforx 1.0 on MdkLinux10.0 I can not figure out why am I getting this error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::...
4
by: Stefan Mueller | last post by:
Why do I get the following error message in Mozilla if I press a key in the input box? ================================ Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" ...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
4
by: David McNerney | last post by:
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"...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
1
by: prash.marne | last post by:
Hi, I am trying open a simple popup window & my code is .. <html> <head> <title>popup_window</title> <script type="text/javascript"> function popup_onclick(){ my_window =...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.