user1919
user1919

Reputation: 3938

Basic ExtJS 5 example gives error

I am trying to run the basic example of ExtJS 5 provided here. When try running it I get in Firebug: 403 Forbidden error. I guess this is related with loading the library:

   <link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/trial/5.0.0/build/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css">
   <script type="text/javascript" src="http://cdn.sencha.com/ext/trial/5.0.0/build/ext-all.js"></script> 
   <script type="text/javascript" src="http://cdn.sencha.com/ext/trial/5.0.0/build/packages/ext-theme-neptune/build/ext-theme-neptune.js"></script>

Any idea what is causing these errors and how I can fix it? Thanks.

Upvotes: 2

Views: 830

Answers (1)

user1919
user1919

Reputation: 3938

I downloaded the ExtJS (version 5.1.0) library, placed it in the same folder with my index.html file and I included the library using these links:

    <link rel="stylesheet" type="text/css" href="ext-5.1.0/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css">
    <script type="text/javascript" src="ext-5.1.0/packages/ext-theme-neptune/build/ext-theme-neptune.js"></script>
    <script type="text/javascript" src="ext-5.1.0/build/ext-all.js"></script>

Which for some reason makes it considerably slow to load my index.html but at least it works.

Upvotes: 1

Related Questions