PDA

View Full Version : Getting Error "el is null [Break On This Error] a2 = el.getAnchorXY(p2, false);"



harish7kumar
3 Oct 2011, 4:32 AM
Hi All,
i am getting this error:-

el is null

chrome://firebug/content/blank.gif a2 = el.getAnchorXY(p2, false);

when i am trying to render combobox into my div

code:-

Ext.require([
'Ext.form.*',
'Ext.layout.container.Column',
'Ext.tab.Panel',
'Ext.data.*'
]);

Ext.onReady(function(){

var method = new Ext.form.ComboBox({
renderTo: "div_location",
triggerAction: "all",
editable: false,
forceSelection: true,
autoShow : false,
store: [
["SPD", "Shortest Path Dijkstra"],
["SPA", "Shortest Path A*"],
["SPS", "Shortest Path Shooting*"]
]
});

var simple = Ext.create('Ext.form.Panel', {


standardSubmit: true,
frame:true,
title: 'Register',

width: 350,
defaults: {width: 230},
defaultType: 'textfield',
items: [{
renderTo: 'div_username',
name: 'username',
id: 'form_username',
allowBlank:false,
vtype: 'alpha',
minValue: 6,
emptyText: 'Fill Username',
vtypeText: 'Please Fill the Username!...'
},
{
renderTo: 'div_pass',
inputType: 'password',
name: 'password',
id: 'form_password',
allowBlank:false,
vtypeText: 'Please give some password!...'
},
{
renderTo: 'div_repass',
inputType: 'password',
name: 'password',
id: 'form_password',
allowBlank:false,
vtypeText: 'Please give some password!...'
},
{
renderTo: 'div_email',
name: 'email',
id: 'form_email',
allowBlank:false,
vtype: 'email',
vtypeText: 'Please use the correct email address!...'
},
{
renderTo: 'div_fname',
name: 'fname',
id: 'form_fname',
allowBlank:false,
vtypeText: 'Please fill the First Name!...'
},
{
renderTo: 'div_lname',
name: 'lname',
id: 'form_lname',
allowBlank:false,
vtypeText: 'Please fill the Last Name!...'
}, method

],
buttons: [{
text: 'Submit',
renderTo: 'div_submit',
handler: function() {
simple.form.submit({
url:'index'
});
}
}]
});
});

and my html is :-

<div class="productcontent_outer">
<div class="signup_text">Birthday</div>
<div id="div_location" class="signup_field"></div>
</div>


i am newbie in extjs may anybody help me :(
Thanks in advance.

harish7kumar
3 Oct 2011, 10:26 PM
Any help