ExtJS Library



Before using Ext Library we must check whether Ext Library is correctly included or not

Steps to Verify Ext Library :

  1. Firstly Try this program out.Copy following Code to Textpad and Save it using .html Extension.

Code :

<html>
  <head>
        <title>First ExtJs Example</title>
        <link rel="stylesheet"type="text/css"
              href="lib/extjs/resources/css/ext-all.css"/>
        <script src="lib/extjs/adapter/ext/ext-base.js"></script>
        <script src="lib/extjs/ext-all-debug.js"></script>
        <script>
               Ext.onReady(function(){
                  Ext.Msg.alert('Hello', 'Welcome to ExtJS');
              });
         </script>
  </head>
  <body>
       <!-- Nothing in the body -->
  </body>
</html>
  1. When You Open this .html file in Browser then you must get following screen.

Welcome to ExtJS Language

  1. If you get above message box then we can say that Ext Library is Correctly Included.

Directory Structure Of Ext Library :

following file path is used in HTML Files.

href="lib/extjs/resources/css/ext-all.css"

Directory Structure is Organized Like this -

  1. Root Directory

Including Ext Library

  1. Now inside lib folder we have “extjs folder with version name attached“. Rename folder name with “extjs“.

rename folder in extjs

  1. “extjs” folder contain following files.

Files included in ExtJS

Error Occurred If Ext is not included Properly -

Ext is Undefined Error in Internet Explorer