1. #51
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Vote Rating
    1
    radtad is on a distinguished road

      0  

    Default


    Quote Originally Posted by danh2000 View Post
    @radtad,

    Nice - why don't you make it a standalone plugin, that way you could plug the functionality into SuperBoxSelect, or ComboBox or any component that extends ComboBox.
    I could definitely do that (never really came to mind and now that you've suggested it I probably will), I just figured it makes more sense to be part of SuperBoxSelect / ComboBox. But I'd probably be more for iterating through the fields in the store. That would be even better!

  2. #52
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Vote Rating
    1
    radtad is on a distinguished road

      0  

    Default


    I've added a display fix so the outerbox border highlights on focus which is what all other form fields do:

    Code:
        onRender:function(ct, position) {
            Ext.ux.form.SuperBoxSelect.superclass.onRender.call(this, ct, position);
    
            this.el.removeClass('x-form-text');
            this.el.addClass('x-superboxselect-input-field');
    
            this.wrapEl = this.el.wrap({
                tag : 'ul'
            });
    
            var extraClass = (this.stackItems === true) ? 'x-superboxselect-stacked' : '';
    
            if(this.renderFieldBtns){
                    extraClass += ' x-superboxselect-display-btns';
            }
            this.outerWrapEl = this.wrapEl.wrap({
                tag : 'div',
                cls: 'x-form-text x-superboxselect ' + extraClass
            });
    
            this.on('focus', function() {
                this.outerWrapEl.addClass("x-form-focus");
            });
    
            this.on('blur', function() {
                this.outerWrapEl.removeClass("x-form-focus");
            });
    
            this.inputEl = this.el.wrap({
                tag : 'li',
                cls : 'x-superboxselect-input'
            });
    
            if(this.renderFieldBtns){
                    this.setupFieldButtons();
                    this.manageClearBtn();
            }
    
            this.setupFormInterception();
        },
    Also, don't know if this is a bug, but I'm not sure the parameter name should set itself to the same thing if hiddenName doesn't exist so I went ahead and fixed it:

    Code:
            box.hidden = this.el.insertSibling({
                tag:'input',
                type:'hidden',
                value: itemVal,
                name: (this.hiddenName || this.name+'['+itemVal+']') // could also be this.name+'[]' I assume
            },'before');

  3. #53
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @radtad,

    Thanks - I had omitted the x-form-focus.

    I'm not sure what you were aiming for with the second piece of code, but it won't work - the hidden items need to be named as per hiddenname or name so that getValues works from the parent form. What were you doing here - did you find an issue before trying to change it?

  4. #54
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Vote Rating
    1
    radtad is on a distinguished road

      0  

    Default


    If you just use this.name instead of this.name+'['+itemVal+']', it will return the following if you're not using a hiddenName field with more then one list value (unless I'm missing something).

    If I've got 3 boxes in a field i.e. tad,john,chris the parameters posted are:
    Code:
    email=tad
    email=john
    email=chris
    This doesn't form any kind of array and instead overwrites each parameter if I'm not mistaken...at least it does for me.

  5. #55
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by radtad View Post
    If you just use this.name instead of this.name+'['+itemVal+']', it will return the following if you're not using a hiddenName field with more then one list value (unless I'm missing something).

    If I've got 3 boxes in a field i.e. tad,john,chris the parameters posted are:
    Code:
    email=tad
    email=john
    email=chris
    This doesn't form any kind of array and instead overwrites each parameter if I'm not mistaken...at least it does for me.
    If you are using PHP you have to declare the name with square brackets to recieve array data, so call your field email[] instead. This is not the same for other server-side technologies, so it's up to you as the implementor to name the field in this way. You would have to do the same in a standard HTML form too.



    Dan

  6. #56
    Ext JS Premium Member
    Join Date
    Dec 2008
    Posts
    61
    Vote Rating
    0
    elderotaku is on a distinguished road

      0  

    Default MultiCharacter input/ Paste in BoxSelect

    MultiCharacter input/ Paste in BoxSelect


    I found a wierd problem which I was able to repeat on this link:
    http://technomedia.co.uk/SuperBoxSelect/applyTo.html

    So I am assuming it is a problem with the Box Select and wondered if anyone knew how to fix it.

    If you paste text into the box select or press and hold a character key you will see that the beginning of the text is cut off, if you press any key after that it fixes itself.

    Any help would be greatly appreciated.

  7. #57
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by elderotaku View Post
    I found a wierd problem which I was able to repeat on this link:
    http://technomedia.co.uk/SuperBoxSelect/applyTo.html

    So I am assuming it is a problem with the Box Select and wondered if anyone knew how to fix it.

    If you paste text into the box select or press and hold a character key you will see that the beginning of the text is cut off, if you press any key after that it fixes itself.

    Any help would be greatly appreciated.
    It's the textbox grow code. I'll look into it when I get a chance and post back.

  8. #58
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    nohurge is on a distinguished road

      0  

    Default


    Hi ,
    I am using this on a new project , great job thanks.

    When allowAddNewData is true , let's say for tags , i type "a" and the first word coming up is attribute but i want to add "at" as new data ,i have to click and make the suggestions to lose focus , so i can add new data later.
    Is there a way to avoid this? When allowAddNewData is true , the suggestions should be visible but not focused.

  9. #59
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by nohurge View Post
    Hi ,
    I am using this on a new project , great job thanks.

    When allowAddNewData is true , let's say for tags , i type "a" and the first word coming up is attribute but i want to add "at" as new data ,i have to click and make the suggestions to lose focus , so i can add new data later.
    Is there a way to avoid this? When allowAddNewData is true , the suggestions should be visible but not focused.
    Hi, glad you like the component.

    I built in a Ctrl+Enter hook for the scenario you describe. Does this help or are you talking about
    mouse interaction only?

  10. #60
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    nohurge is on a distinguished road

      0  

    Default


    It works great , thanks

Thread Participants: 119

  1. galdaka (9 Posts)
  2. aconran (1 Post)
  3. stever (4 Posts)
  4. dj (1 Post)
  5. mystix (18 Posts)
  6. MarkB (3 Posts)
  7. DrZog (1 Post)
  8. JorisA (2 Posts)
  9. jheid (3 Posts)
  10. Joe (1 Post)
  11. mschering (1 Post)
  12. gigel (1 Post)
  13. akannu (1 Post)
  14. phillipL (1 Post)
  15. badgerd (1 Post)
  16. cmendez21 (1 Post)
  17. mjlecomte (1 Post)
  18. grgur (1 Post)
  19. xantus (1 Post)
  20. garraS (3 Posts)
  21. vahid4134 (2 Posts)
  22. Lloyd K (2 Posts)
  23. boonkerz (3 Posts)
  24. crxtech (3 Posts)
  25. mishanian (7 Posts)
  26. fpw23 (1 Post)
  27. sanjshah (6 Posts)
  28. Zolcsi (1 Post)
  29. SharePat (1 Post)
  30. mjhaston (1 Post)
  31. radtad (16 Posts)
  32. Joyfulbob (2 Posts)
  33. kveeiv (1 Post)
  34. armandoxxx (2 Posts)
  35. imran (1 Post)
  36. Eric24 (1 Post)
  37. drunknmunky (1 Post)
  38. raphac (1 Post)
  39. charleshimmer (1 Post)
  40. frankthetank (4 Posts)
  41. qooleot (3 Posts)
  42. gianpaulo (1 Post)
  43. dennispg (9 Posts)
  44. dasnk (1 Post)
  45. grahamda (1 Post)
  46. sdavids (1 Post)
  47. jasonb885 (1 Post)
  48. wemerson.januario (1 Post)
  49. dizor (3 Posts)
  50. Stju (5 Posts)
  51. extjs_new (1 Post)
  52. senacle (1 Post)
  53. elderotaku (2 Posts)
  54. Dumas (1 Post)
  55. grzegorz.borkowski (13 Posts)
  56. bueth (1 Post)
  57. nonyus (2 Posts)
  58. travisbell (2 Posts)
  59. Jangla (2 Posts)
  60. woooop (2 Posts)
  61. MH61 (2 Posts)
  62. TDub (1 Post)
  63. antoniode (5 Posts)
  64. xiongzhijian51 (1 Post)
  65. l0ga4 (1 Post)
  66. nohurge (2 Posts)
  67. MarkBOneSmart (1 Post)
  68. The Transporter (2 Posts)
  69. swarnendude (1 Post)
  70. arconen (2 Posts)
  71. mratzloff (9 Posts)
  72. Tom23 (1 Post)
  73. nadim (15 Posts)
  74. hongtj (2 Posts)
  75. max.hauser (2 Posts)
  76. dcw (1 Post)
  77. pilotsnipes (2 Posts)
  78. matthewcrist (2 Posts)
  79. fargs (1 Post)
  80. dvuja2 (2 Posts)
  81. sudhirhv (1 Post)
  82. lanhun (2 Posts)
  83. galoch (1 Post)
  84. frrogoy (1 Post)
  85. tboswell (1 Post)
  86. ozum (5 Posts)
  87. scusyxx (1 Post)
  88. hoca (1 Post)
  89. jayasreepc (1 Post)
  90. Jensen (1 Post)
  91. icarey (5 Posts)
  92. mohan_b (1 Post)
  93. skbach_pointyhat (1 Post)
  94. timbonicus (3 Posts)
  95. rachid.abdessamad (1 Post)
  96. ajitmogra (1 Post)
  97. Korbin (1 Post)
  98. istetska (3 Posts)
  99. ian.young (1 Post)
  100. muncher (2 Posts)
  101. sebterzi (2 Posts)
  102. forestclown (1 Post)
  103. Akey (1 Post)
  104. pret (1 Post)
  105. OpnSrce (1 Post)
  106. sriramkumarp (1 Post)
  107. extjs-dev (4 Posts)
  108. mvoss (1 Post)
  109. thomaskee007 (1 Post)
  110. rajshinny (1 Post)
  111. masood (1 Post)
  112. sebholl (1 Post)
  113. forestkwan (1 Post)
  114. deepthi_r (1 Post)
  115. panshr (1 Post)
  116. brian.moeskau (1 Post)
  117. ldashevskiy (1 Post)
  118. lbilde (1 Post)
  119. aoyii (1 Post)

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar