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.
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.