Posted by: phpcurious on: December 27, 2007
Yesterday, I just tried to learn how to use JQuery with Ext in case of need for future sideline projects. It is not that easy at first however, because, to understand the integration better, you still have to understand how ExtJS runs and how to start coding ExtJS for your projects.
To start, you include the JQuery script.
Then, include your own ExtJS scripts.
To combine JQuery with ExtJS, you have to use ExtJS’ JQuery adapter plugins.
ExtJS has some needed CSS and images resources that should be called with.
(I just copied this code from the tutorial.)Put this code somewhere on the page:
And your HTML link:
I don’t know yet how the outcome of the code should look like but, mine looks like this:
If you want to try it yourself to learn it, you can go to the JQuery Tutorials first to see what are the basically needed files. And if you still don’t have ExtJS package, you can download it here.
More: It seems to me that more and more web apps are using ExtJS. I came to this
website and it really looks cool!
try this … just did this today …
Untitled Document
$(document).ready(function(){
$(‘#wheelink’).bind(‘click’,function() {
Ext.Msg.alert(‘Whee alert!’, ‘Thanks for clicking me, WHEE!’);
});
});
my code got stripped …
remove the gray theme script … that’s to load the custom theme which is probably missing
I didn’t need to use ExtJS’ JQuery adapter plugins.
when using jQuery 1.2.6 and ext 2.2 I tried to run this example and got ‘Ext’ is undefined error in IE7. my js includes are as followed:
ext-all.css
xtheme-gray.css
query-1.2.6.js
ext-all.js (2.2)
ext-base.js (tried with and without this, no effect)
ext-jquery-adapter.js
is there something missing?
sorry, my mistake, the order is adapter first…
Sorry
January 15, 2008 at 2:38 pm
Very interesting. Looking at your screen shot above, it looks like you haven’t included the extjs css files. They are in your ext folder, in /resources/css/. I normally use ext-all.css, but you can also pick and choose based on what you are doing.