PDA

View Full Version : Access denied problem



Marysmitha
9 Feb 2011, 11:44 PM
Hi,

i tired applying dynamic data to a panel but when i run the file i can see only the panel and it keeps loading but the contents never gets loaded and the error which i get is access denied at ext-base.js.I have pasted the code below.

Whole.html
<html>
<head>
<link rel="stylesheet" type="text/css" href="D:\mary\ExtJS\ext-3.3.1\resources\css\ext-all.css" />
<link rel="stylesheet" type="text/css" href="D:\mary\ExtJS\ext-3.3.1\examples\layout-browser\layout-browser.css"/>
<div id="mainContent">
<div id="main_id"></div>
</div>
<script src="D:\mary\ExtJS\ext-3.3.1\adapter\ext\ext-base.js"></script>
<script src="D:\mary\ExtJS\ext-3.3.1\ext-all.js"></script>
<script src="D:\mary\ExtJS\My Examples\The.js">
</script>
</head>
<body>
<!-- Nothing in the body -->
</body>
</html>

The.js

Ext.onReady(function(){
var example1 = new Ext.Panel({
applyTo:'main_id',
title:'Chapter 12: Example 1',
width:250,
height:250,
frame:true,
autoLoad:{
url:'example.html' (http://www.sencha.com/forum/'example.html')
}
});
});

example.html

<html>
<head>
<link rel="stylesheet" type="text/css" href="D:\mary\ExtJS\ext-3.3.1\resources\css\ext-all.css" />
<script src="D:\mary\ExtJS\ext-3.3.1\adapter\ext\ext-base.js"></script>
<script src="D:\mary\ExtJS\ext-3.3.1\ext-all.js"></script>
</head>
<body>
<b>William Sheakespeare:</b> <i>Poet Lauraette</i><br />
</body>
</html>

evant
10 Feb 2011, 12:01 AM
You need to run it through a webserver.

Marysmitha
10 Feb 2011, 12:08 AM
You need to run it through a webserver.

So without webserver it wont run is it so?

silcreval
10 Feb 2011, 12:33 AM
I think this is the browser stopping you from accessing local files through a loaded
html page (url: example.html). Its a permissions thing, most web browsers will
forbid a web page from accesing local web browser services when they are from a
remote URL.

Marysmitha
10 Feb 2011, 12:59 AM
I think this is the browser stopping you from accessing local files through a loaded
html page (url: example.html). Its a permissions thing, most web browsers will
forbid a web page from accesing local web browser services when they are from a
remote URL.

ok silcreval i understood wat u said but wat is the solution for this ?