Javascript Error : Permission Denied to get property XULElement.accessible

P

prash.marne

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 = window.open("",'windowname','width=400,height=200');

my_window.document.write("hellow world");
my_window.document.close();
}
</script>
</head>
<body>
<form action="select3_submit.php" method="POST">
<select name="activity">
<option value="0">None</option>
<option value="M" onclick="popup_onclick()">Select
Multiple</option>
<option value="1">Kayaking</option>
</select>
</form>
</body>
</html>

The code works fine in Firefox 1.5.0.7
But the problem is after opening popup window i have javascript error
(it's in the javascript console)
the error is :---

----------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: [Exception... "'Permission denied to get property
XULElement.accessible' when calling method:
[nsIAccessibleProvider::accessible]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
http://192.168.1.4/users/prm/practice/javascript/select_multiple/onchange.html
:: popup_onclick :: line 5" data: no]
Source File:
http://192.168.1.4/users/prm/practice/javascript/select_multiple/onchange.html
Line: 5
----------------------------------------------------------------------------------------------------------------------------------------------------------------

I don't know what is the problem .

I am using Ubuntu (Linux Version) with Firefox 1.5 .
I have also tried the same thing on Fedora (Linux Version) on firefox
it works fine without any errors .
i also checked the FF 1.5 preferences (Edit->Preferences) on both the
ubuntu and fc5 box and they are the same.

Does anyone has an idea ..??

Thanks in advance.

Prashant Marne.
 
B

Bart Van der Donck

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 = window.open("",'windowname','width=400,height=200');

my_window.document.write("hellow world");
my_window.document.close();
}
</script>
</head>
<body>
<form action="select3_submit.php" method="POST">
<select name="activity">
<option value="0">None</option>
<option value="M" onclick="popup_onclick()">Select
Multiple</option>
<option value="1">Kayaking</option>
</select>
</form>
</body>
</html>

The code works fine in Firefox 1.5.0.7
But the problem is after opening popup window i have javascript error
(it's in the javascript console)
the error is :---
--------------
Error: [Exception... "'Permission denied to get property
XULElement.accessible' when calling method:
[nsIAccessibleProvider::accessible]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
http://192.168.1.4/users/prm/practice/javascript/select_multiple/onchange.html
:: popup_onclick :: line 5" data: no]
Source File:
http://192.168.1.4/users/prm/practice/javascript/select_multiple/onchange.html
Line: 5
--------------
I don't know what is the problem .

I am using Ubuntu (Linux Version) with Firefox 1.5 .
I have also tried the same thing on Fedora (Linux Version) on firefox
it works fine without any errors .
i also checked the FF 1.5 preferences (Edit->Preferences) on both the
ubuntu and fc5 box and they are the same.

Does anyone has an idea ..??

Google for "NS_ERROR_XPC_JS_THREW_STRING" or "0x8057001e" should give
you more details.

Though I can't reconstruct your problem, I suspect it must have
something to do with the onclick-event in the select list. It's better
practice to set a handler to <select> in stead of <option>, and then
read out the option(s) that is/are selected to pass to your function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top