Results 1 to 5 of 5

Thread: Access denied problem

  1. #1

    Question Access denied problem

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

    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>

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    You need to run it through a webserver.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3

    Default

    Quote Originally Posted by evant View Post
    You need to run it through a webserver.
    So without webserver it wont run is it so?

  4. #4
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    384

    Default

    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.

  5. #5

    Default

    Quote Originally Posted by silcreval View Post
    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 ?

Similar Threads

  1. [2.??] Access Denied in IE in Editor
    By Jramussen in forum Ext 2.x: Bugs
    Replies: 5
    Last Post: 13 Jun 2013, 12:57 AM
  2. ext-base.js access denied in all browsers
    By udara22 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Jan 2011, 10:20 AM
  3. Help! Access Denied Error in ext-base.js
    By InterTrade in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 30 Dec 2010, 7:45 PM
  4. file upload: Access is denied
    By abdo67 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 18 Nov 2009, 6:18 AM
  5. Access is Denied: Ext.Ajax.Request()
    By geotraveler in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 25 Aug 2008, 7:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •