 |
| Javascript General Javascript discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 4th, 2004, 08:29 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Yet another "Permission Denied" IE problem
Hey all,
I am using a <select> element with an onchange attribute. It calls a function that changes the size of another element in the same form.
FF takes it fine and does exactly what I want it to without any errors. IE gives me this "Permission Denied" crud. I figure it must be something about SP2 and its "added security"...?
Thanks,
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
|
|

November 6th, 2004, 06:01 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Can you show a small example, it's all in one page so there's no cross domain stuff?
--
Joe
|
|

November 6th, 2004, 11:15 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Yeah it's all in one domain, in one page, that's why this is really weird...
This is almost exactly what I'm doing:
<select name='by' onchange='checkSelectBy(this.options[this.selectedIndex].value'>
<option value='0'>selection 1</option>
<option value='1'>selection 2</option>
<option value='2'>selection 3</option>
</select>
I get an error "Permission Denied" on the line of the opening <select> tag.
Thanks Joe,
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
|
|

November 6th, 2004, 03:17 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Works for me:
Code:
<html>
<head>
<title>Test Permission Denied</title>
<script type="text/javascript">
function checkSelectBy(Value)
{
var oDiv = document.getElementById("divText");
oDiv.style.width = Value + "px";
}
</script>
</head>
<body>
<select name='by' onchange='checkSelectBy(this.options[this.selectedIndex].value);'>
<option value='50'>50px</option>
<option value='100'>100px</option>
<option value='200'>200px</option>
<option value='300' selected>300px</option>
</select>
<br><div id="divText" style="border: 3px inset #dd0000;position: relative;width: 300px">Text here</div>
</body>
</html>
--
Joe (Co-author Beginning XML, 3rd edition)
|
|

November 6th, 2004, 03:34 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Hey Joe,
I changed nothing, and now suddenly it works.
I'll let you know if I find anything about this problem, but for now it is working.
Thanks for your time,
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
|
|

November 15th, 2004, 07:19 PM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
prolly too late for this, but you might have fixed an error that you didnt pay attention to fixing lol.
If this is a direct copy of your code that you placed Snib, you're missing an ending ')' in your first line of the opening select statement.
<select name='by' onchange='checkSelectBy(this.options[this.selectedIndex].value'>
should be
<select name='by' onchange='checkSelectBy(this.options[this.selectedIndex].value);'>
|
|

November 15th, 2004, 11:01 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Hey there,
Yeah, my bad. However, the code I posted is not direct copy-paste code.
But, like I said, now it's working :-D
Thanks anyway,
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
|
|
 |