By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,637 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,637 IT Pros & Developers. It's quick & easy.

Javascript Error : Permission Denied to get property XULElement.accessible

P: n/a
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/practic.../onchange.html
:: popup_onclick :: line 5" data: no]
Source File:
http://192.168.1.4/users/prm/practic.../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.

Jan 18 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
pr*********@gmail.com wrote:
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/practic.../onchange.html
:: popup_onclick :: line 5" data: no]
Source File:
http://192.168.1.4/users/prm/practic.../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 <selectin stead of <option>, and then
read out the option(s) that is/are selected to pass to your function.

--
Bart

Jan 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.