Results 1 to 3 of 3

Thread: what 's wrong with Ext.BasciDialog in my code

  1. #1
    Sencha User sunrong's Avatar
    Join Date
    Jun 2010
    Posts
    39

    Question what 's wrong with Ext.BasciDialog in my code

    code i used here:

    var DefaultDialog = function(config) {
    var config = config || {};
    var defConfig = {
    title: 'Default',
    height: 130,
    width: 250,
    shadow: true,
    modal: true,
    draggable:true,
    fixedcenter:true,
    collapsible: false,
    closable: true,
    resizable:false
    };
    Ext.applyIf(config, defConfig);
    var el = Ext.DomHelper.append(document.body, {tag: 'div'});
    DefaultDialog.superclass.constructor.call(this, el, config);
    };
    Ext.extend(DefaultDialog, Ext.BasicDialog);

    dlg = new DefaultDialog({title: 'First Dialog', width: 300});
    console.log(dlg);


    that got an error
    "
    sp is undefined
    [IMG]chrome://firebug/content/blank.gif[/IMG] spp = sp.prototype;
    "
    in ext-basic-debug.js

    it seems there does not exit a supper class called Ext.BasicDialog.

    i don't understand, hope someone give an explanation, and a correction is better.

    thanks a lot.
    sun

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    I'm assuming that you're trying to use 1.x code in a later version of ExtJS as Ext.BasicDialog has been removed since 2.0. See the Migration Guide.

  3. #3
    Sencha User sunrong's Avatar
    Join Date
    Jun 2010
    Posts
    39

    Default

    yes. I am learning OP of extjs, and see this example. i try it and see this error.


    thanks for your help.
    sun

Similar Threads

  1. Replies: 4
    Last Post: 17 Dec 2010, 4:53 AM
  2. Ext.Tree dynamic load with Recursive Function - Wrong JSON-Code
    By Somani in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Aug 2009, 10:57 AM
  3. Something wrong with my code, please help!
    By mosiami in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 8 Apr 2008, 5:11 PM
  4. What is wrong with this code?
    By rissato in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 1 Apr 2008, 6:30 AM

Posting Permissions

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