1. #71
    Sencha User
    Join Date
    Mar 2008
    Posts
    566
    Vote Rating
    0
    moegal is on a distinguished road

      0  

    Default


    does anyone have the code for this, the link seems to be inactive.
    Thanks, Marty

  2. #72
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by moegal View Post
    does anyone have the code for this, the link seems to be inactive.
    Thanks, Marty
    googlecode svn repo:
    http://ext-ux-wiz.googlecode.com/svn/trunk

  3. #73
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    164
    Vote Rating
    2
    walldorff is on a distinguished road

      0  

    Default buttons change

    buttons change


    I made a small change in the button init in wizard.js. With this code there is only the 'next' button, unless the other ButtonText's are explicitly configured.
    I have a couple of wizards where I don't need the previous and cancel button.

    First the button labels as empty strings:
    PHP Code:
    previousButtonText '',
    cancelButtonText ''
    Then the changes in the initComponent function:
    PHP Code:
        initComponent : function()
        {
            
    this.initButtons();
            
    this.initPanels();
            
            var 
    title this.title || this.headerConfig.title;
            
    title     title || "";
            
            var 
    theButtons;
            if (!empty(
    this.cancelButtonText) && !empty(this.previousButtonText)) {
                
    theButtons = [this.previousButton,this.nextButton,this.cancelButton];
            }
            else if (!empty(
    this.cancelButtonText)) {
                
    theButtons = [this.nextButton,this.cancelButton];
            }
            else if (!empty(
    this.previousButtonText)) {
                
    theButtons = [this.previousButton,this.nextButton];
            }
            else {
                
    theButtons = [this.nextButton];
            }

            
    Ext.apply(this, {
                
    title     title,
                
    layout    'border',    
                
    cardCount this.cards.length,
                
    buttons   theButtons,
                
    items : [
                    
    this.headPanel,
                    
    this.cardPanel
                
    ]  
            });
            
            
    this.addEvents(
                
    /**
                 * @event cancel
                 * Fires after the cancel-button has been clicked.
                 * @param {Ext.ux.Wiz} this
                 */   
                
    'cancel',
                
    /**
                 * @event finish
                 * Fires after the last card was reached in the wizard and the
                 * next/finish-button has been clicked.
                 * @param {Ext.ux.Wiz} this
                 * @param {Object} data The collected data of the cards, whereas 
                 * the index is the id of the card and the specific values
                 * are objects with key/value pairs in the form formElementName : value
                 */   
                
    'finish'
            
    );
            
            
    Ext.ux.Wiz.superclass.initComponent.call(this);
        }, 
    But maybe there's another way
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

  4. #74
    Ext JS Premium Member
    Join Date
    Nov 2007
    Posts
    74
    Vote Rating
    0
    sean.zhou is on a distinguished road

      0  

    Default HtmlEditor dose not work in second card

    HtmlEditor dose not work in second card


    If you simply add

    Code:
    { xtype: 'htmleditor', fieldLabel: 'Html Editor Test', autoHeight: true}
    into the items of the second card in SimpleWizard.html, javascript error occurs.

    In firefox, you may see from firebug the following exception thrown [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSHTMLDocument.designMode]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://your.host.server.com/js/extjs/ext-all-debug.js :: anonymous :: line 28447" data: no]
    http://your.host.server.com/js/extjs/ext-all-debug.js


    In IE 6, a runtime error is thrown from a pop-up box with following message:

    Line: 28479
    Error: Invalid argument

    I have tried to put an htmleditor field to the second wizard card in extjs layout-browser.html example, it went fine. It also went fine if the htmleditor is only inside of the first card in SimpleWizard.html. Therefore, the problem is likely due to delayed rendering of this wizard implementation. Please help fixing it.

  5. #75
    Ext JS Premium Member
    Join Date
    Nov 2007
    Posts
    74
    Vote Rating
    0
    sean.zhou is on a distinguished road

      0  

    Default


    After more extensive search, it seems that ExtJs does have some problems with htmleditor. After played with layout-browser.html in ExtJs examples, I found htmleditor did not work when it is inside of a card panel. I have tried with the suggested fixes from other thread discussions, such as using
    Code:
    deferredRender:false
    and/or
    Code:
    hideMode: 'offsets'
    on the card panel and failed to get it work. Here is the example that shows the problem by replacing

    Code:
    id: 'card-1',
    html: '<p>Step 2 of 3</p><p>Almost there.  Please click the "Next" button to continue...</p>'
    with

    Code:
    id: 'card-1', deferredRender:false,
    items: [{xtype:'htmleditor', hideMode: 'offsets', fieldLabel: 'abcd'}]
    inside of cardWizard in examples/layout-browser/layouts/basic.js. Then start examples/layout-browser/layout-browser.html. The same exception will be thrown to the firebug console in Firefox.

  6. #76
    Ext User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    razor is on a distinguished road

      0  

    Default validation

    validation


    important note:

    When using the event 'beforecardhide' it is fired both on next and previous buttons. This of course is not usefull.

    To avoid this I have added the following code to Wizard.js:

    PHP Code:
    lastAction null,
    ..
    onNextClick : function() {
        
    this.lastAction 'next';
    ..
    onPreviousClick : function() {
        
    this.lastAction 'previous'
    Now I can check in my listener code which button was pressed, and if I have to do validation of the cardpanel contents for the next cardpanel.

  7. #77
    Sencha User fangzhouxing's Avatar
    Join Date
    Mar 2007
    Posts
    468
    Vote Rating
    2
    fangzhouxing is on a distinguished road

      0  

    Default


    Quote Originally Posted by fangzhouxing View Post
    I have encountered the same problem as follows:

    Second, again under IE7, I the wizard won't appear until I comment out the body style:

    cardPanelConfig : {
    defaults : {
    baseCls : 'x-small-editor',
    // bodyStyle : 'padding:40px 15px 5px 120px;background-color:#F6F6F6 !important;',
    border : false
    }
    },

    Has anyone can help me?
    BUMP!

  8. #78
    Sencha User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    Digital God is on a distinguished road

      0  

    Default


    there is a problem with "Tab" button... if i press tab the page goes down and shows another wizard card without "next" button pressed..

  9. #79
    Ext User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    razor is on a distinguished road

      0  

    Default


    I have checked the behaviour of the Tab button. But the result you are explaining does not happen on my browsers FF3 and IE6.

  10. #80
    Sencha User fangzhouxing's Avatar
    Join Date
    Mar 2007
    Posts
    468
    Vote Rating
    2
    fangzhouxing is on a distinguished road

      0  

    Default


    razor,thank you, your 'lastAction' solution just what i need now!

Thread Participants: 96

  1. Animal (2 Posts)
  2. franklt69 (1 Post)
  3. jay@moduscreate.com (1 Post)
  4. Digital God (1 Post)
  5. mystix (4 Posts)
  6. fangzhouxing (3 Posts)
  7. mike1993 (2 Posts)
  8. KRavEN (1 Post)
  9. jsakalos (2 Posts)
  10. Ylodi (1 Post)
  11. Fabyo (2 Posts)
  12. anestesiadorhvs (1 Post)
  13. John Sourcer (1 Post)
  14. kmiyashiro (3 Posts)
  15. anjelika (6 Posts)
  16. cutigersfan (1 Post)
  17. mjlecomte (1 Post)
  18. kevinwu8 (2 Posts)
  19. JEBriggs (3 Posts)
  20. CutterBl (5 Posts)
  21. gelleneu (1 Post)
  22. Spirit (1 Post)
  23. Michelangelo (9 Posts)
  24. wm003 (1 Post)
  25. Juvs (3 Posts)
  26. Mthor (2 Posts)
  27. sean.zhou (2 Posts)
  28. donssmith (3 Posts)
  29. sigaref (1 Post)
  30. ajaxvador (1 Post)
  31. prodigy7 (2 Posts)
  32. mask_hot (2 Posts)
  33. ec-cts (1 Post)
  34. dorgan (2 Posts)
  35. DhakouaniM (1 Post)
  36. Romantik (2 Posts)
  37. franck34 (4 Posts)
  38. sirioz10 (1 Post)
  39. razor (15 Posts)
  40. chalu (2 Posts)
  41. cirvine (2 Posts)
  42. ClemsonJeeper (1 Post)
  43. GOTTMODUS (1 Post)
  44. rnfbr1 (2 Posts)
  45. walldorff (2 Posts)
  46. jlowe (1 Post)
  47. moegal (1 Post)
  48. johnstontrav (1 Post)
  49. mirko (1 Post)
  50. J.B (1 Post)
  51. niaz (1 Post)
  52. Jack_S (2 Posts)
  53. knarz (1 Post)
  54. hatch79 (1 Post)
  55. Eki (1 Post)
  56. accilies (3 Posts)
  57. SamuraiJack1 (1 Post)
  58. gthe (2 Posts)
  59. Scorpie (1 Post)
  60. supercharge2 (1 Post)
  61. lucasmarin (1 Post)
  62. alienwebz (7 Posts)
  63. kellyt (2 Posts)
  64. charleshimmer (20 Posts)
  65. nomdeguerre (3 Posts)
  66. perdar (2 Posts)
  67. agalue (2 Posts)
  68. pablitobs (4 Posts)
  69. jmariani (4 Posts)
  70. wemerson.januario (3 Posts)
  71. mschwartz (2 Posts)
  72. Stju (3 Posts)
  73. TheColonel (1 Post)
  74. lakilevi (1 Post)
  75. roque (2 Posts)
  76. Jangla (8 Posts)
  77. cchic (1 Post)
  78. MH61 (2 Posts)
  79. MasterAM (1 Post)
  80. pezze (8 Posts)
  81. phpfreak (1 Post)
  82. talha06 (1 Post)
  83. swarm (7 Posts)
  84. udalaitz (2 Posts)
  85. esh (1 Post)
  86. reci (1 Post)
  87. ccrotty (3 Posts)
  88. CarlosLuiz (3 Posts)
  89. guyfomi (1 Post)
  90. yugikhoi (1 Post)
  91. drunkmoose (1 Post)
  92. occiso (2 Posts)
  93. slckysr (3 Posts)
  94. samir_ware (1 Post)
  95. eCoast (2 Posts)
  96. wpenton (1 Post)