Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
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
 
Old November 4th, 2004, 08:29 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default 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!
__________________
-Snib - http://www.snibworks.com
Where will you be in 100 years?
 
Old November 6th, 2004, 06:01 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you show a small example, it's all in one page so there's no cross domain stuff?

--

Joe
 
Old November 6th, 2004, 11:15 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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!
 
Old November 6th, 2004, 03:17 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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)
 
Old November 6th, 2004, 03:34 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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!
 
Old November 15th, 2004, 07:19 PM
Authorized User
 
Join Date: Mar 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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);'>



 
Old November 15th, 2004, 11:01 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
Permission denied zah_amir Classic ASP Databases 1 January 24th, 2006 11:45 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
Permission Denied einstein Linux 1 December 10th, 2003 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.