...

View Full Version : Permission denied error



goodlinks
10-05-2008, 09:06 PM
My site is an asp.net site. I have an aspx page that uses javascript to load a php page which contains all the field information which is rendered by the php code. Here is the top portion of the aspx page which I took from the actual source after calling the page up in my browser:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><link href="../App_Themes/default/_vti_cnf/default.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/default/default.css" type="text/css" rel="stylesheet" /><title>
Advanced User Options
</title>

<script src="../iframe.js" type="text/javascript"></script>
<script src="202pop.js" type="text/javascript"></script>
<script type="text/javascript">
function loadFrm(){
if (this.options[this.selectedIndex].value!='0'){
document.getElementById('myframe').style.display='block';
document.getElementById('myframe').src=this.options[this.selectedIndex].value+'/admin/admin.php?IFLM=&page=dir_style';
}
else{
document.getElementById('myframe').style.display='none';
}

//document.getElementById('myframe').src='http://'+this.options[this.selectedindex].text;
return false;
//
}
</script>

</head>
<body>
<form name="form1" method="post" action="adv_style_settings.aspx" id="form1">
<div style="background-color:White;">

Below is a small portion of the fields placed into the page by the php page. The little palatte graphic is the color picker and it doesn't work. The box with all the colors does not pop up when you click the icon.
You can click on the error message at the bottom of the page though....

http://link-directory-software.com/style.jpg

According to the error message when I click in the lower left corner of my browser it says

Line: 25
Char: 6
Error: Permission denied
Code: 0
Url: http://www.link-exchangers.com/users/adv_style_settings.aspx

This is the error message on PAGE LOAD. If you click the icon, the message does change to object expected and references the very end of the file ?>
This file adv_style_settings.aspx uses iframe.js as you can see above. Is this causing the problem?

Here is the colorpicker code:
<img src="sel.gif" onclick="pickerPopup202('input_field_4','sample_4');" border="0" style="cursor:pointer" alt="select color" title="select color">&nbsp;<input type="text" size="9" ID="input_field_4" value="">&nbsp;<input type="text" ID="sample_4" size="1" value="">

I can email you the files to test this if you are good at diagnosing this type of error message. Again, on page load, when I click the error it says permissiond denied as above. If I try to click onthe little image sel.gif it gives a different error message on the page, object expected at line 140 which is
?> The next to last line of the php file which contains all the fields.

This color picker works perfectly on a plain html page. The 202pop.js is the reference for the colorpicker file right below the iframe.js (see head area above)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum