PDA

View Full Version : How to use EXTJS



pp-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">

<HTML>

<HEAD>

<TITLE> New Document </TITLE>

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

<META NAME="Author" CONTENT="">

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

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

</HEAD>



<BODY>



<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>
</form>



</BODY>

</HTML>


<script>

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

// var dt = new Date();

//document.write(dt.format(Date.patterns.ShortDate));



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");

</script>

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

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