PDA

View Full Version : Resizable div help



cybertrip
27 Nov 2007, 10:16 AM
ok so i have been trying to use extJS to make a div on one of my pages resizable thats really all that i needed so i went and did the custom build thing and got just the resize portion and the core. I can't get this to work for the life of me.

my javascript in my page looks like



var contact = new Ext.Resizable("topleft", {
handles: 'all',
minWidth: 250,
minHeight: 100,
maxWidth: 700,
maxHeight: 400,
pinned: true
});


and for the html its just


<div id="topleft" style="border:1px solid black;min-width:700px;height:250px;background:#fff;position:relative;left:0px;top:0px;">
<div style="background:#CDCDCD;" >Top Left Header</div>
<div>Content</div>
</div>


any help would be amazing!

oh and the error i get says...

this.el has no properties.

evant
27 Nov 2007, 12:49 PM
Make sure your code is wrapped in an onReady block:



Ext.onReady(function()
{
var contact ....
}
);