Results 1 to 2 of 2

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

  1. #1

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

    Hi All,
    i am getting this error:-

    el is null

    [IMG]chrome://firebug/content/blank.gif[/IMG] 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.

  2. #2

    Default

    Any help

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •