View Full Version : How to use EXTJS

24 Oct 2007, 5:54 AM
Below is the code.

Error For below code: ext.EventManager is undefined or null.

I am new user to EXTJS, i am unable to use, i have download extjs js file,
but i am getting error for EXT as "undefined". please let me know simple use of using extjs.

--------this is the code i have coded to use extj------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">



<TITLE> New Document </TITLE>

<META NAME="Generator" CONTENT="EditPlus">


<META NAME="Keywords" CONTENT="">

<META NAME="Description" CONTENT="">



<script type="text/javascript" src="Ext.js"></script>
<script type="text/javascript" src="Element.js"></script>

<form name="a" method="post">
<input type="textbox" name="hj">
<div id="my-div">div1</div>




//var el = Ext.get("my-div");

// var dt = new Date();


var s = String.leftPad('123', 7, '0');

// s now contains the string: '00123'

document.write (s);

document.write (Ext.isIE);

//var h=Ext.get("my-div");

//alert (h);

//var el = Ext.get("my-div");

var el=Ext.Element.get("my-div");


---------------- end of code ------------------------

24 Oct 2007, 6:19 AM
You should really read and understand this (http://extjs.com/learn/)
before you go any further.