473,414 Members | 1,781 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,414 software developers and data experts.

Javascript Error : Permission Denied to get property XULElement.accessible

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
1 5580
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Thompson | last post by:
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: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" ...
2
by: PM Creyghton | last post by:
I got this error without using frames: First of all, I'm developing an ASP application, and once in a while my activeX components crash or hang, I got page-not-found errors, errors generated by...
5
by: francescomoi | last post by:
Hi. I'm trying to build a webpage which calls another one (at a different server) by using: var req = new XMLHttpRequest() I know some browsers (Mozilla and IE) doesn't allow it, and shows...
0
by: Jordan | last post by:
When I run this code in IExploer with XP sp2 and click on LinkButton javascript bellow fire error: Error:Permission error on row !!!!!!!!!!!!. And same code work fine after comment row **********....
0
by: Tanmaya Kulkarni | last post by:
Hi, I my web application, am using frames. <frameset name="aaframe" rows="190px,64.0%,45px" > <frame name="aframe" language="vb" src="../Top_page.aspx" frameBorder="0" noResize ...
0
by: ABN | last post by:
Hi, A web page Main.aspx of my web application is getting called from a different application. Following is the code of Main.aspx: <HTML> <HEAD> <title>Main</title> <meta name="GENERATOR"...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
5
by: TimSki | last post by:
Hi, I have an iframe on my page which calls an external website. When the page loads in firefox i see a 'Error: Permission denied to call method Location.toString' in the error console but the...
4
rahuljaiswal1987
by: rahuljaiswal1987 | last post by:
var path = Components.classes.getService(Components.interfaces.nsIProperties).get('ProfD', Components.interfaces.nsIFile).path; var localFile =...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.