1. #201
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    PHP Code:
        reset :  function(){
            
    Ext.ux.form.SuperBoxSelect.superclass.reset.call(this);
            
    this.addedRecords = [];
            
    this.autoSize().setRawValue('');
            
    //this.el.focus();
        
    }, 
    I think the focus on reset should be removed, since this is not consistent with other fields, and will have the element rendered as invalid when allowBlank=false.

    Also I'm having some problems parsing the data in php when I'm using form.submit(). Data is sent as multipart/form, and that prevents me from parsing array's in POST data. Is there a way to submit a comma seperated list (as with getValue())?

  2. #202
    Ext User
    Join Date
    Sep 2009
    Posts
    3
    Vote Rating
    0
    pilotsnipes is on a distinguished road

      0  

    Default


    Quote Originally Posted by radtad View Post
    I just added a bit of code to do mid-word pattern matching for the SuperBoxSelect from the previous facebook like box select I added there as well (you essentially have to override doQuery):


    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 would love to have this feature too, did it ever make it into the official version, or did it become a plugin somewhere?

    Thanks for the work on this project. Much appreciated.

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

      0  

    Default


    @JorisA

    Thanks, I'll have a look at the reset method.

    With regards to your form submission; I use PHP without any problems.

    Are you aware that you need to name your form elements with square brackets to enable array processing:

    ie:

    PHP Code:
    name'states[]' 
    This seems to catch a few people out, but it's the same with regular HTML forms too.

    @pilotsnipes

    I believe @radtad was going to make a plugin of this functionality - he may respond here.

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

      0  

    Default


    I actually ended up extending the functionality with an override. The two config options to use with this are:

    Code:
    anyMatch: (true|false) // default: true
    caseSensitive: (true|false) // default: false
    Enjoy.
    Attached Files

  5. #205
    Ext User
    Join Date
    Sep 2009
    Posts
    3
    Vote Rating
    0
    pilotsnipes is on a distinguished road

      0  

    Default


    Quote Originally Posted by radtad View Post
    I actually ended up extending the functionality with an override. The two config options to use with this are:
    Enjoy.


    @radtad - Thank you so much for this! What a difference it makes to my script. Very easy to setup as well (I still think this should be in the main superboxselect but I'm happy just to add it at the moment!)

    Thanks again!

    Quote Originally Posted by danh2000 View Post
    @JorisA
    With regards to your form submission; I use PHP without any problems.

    [....]
    PHP Code:
    name'states[]' 
    This seems to catch a few people out, but it's the same with regular HTML forms too.

    @danh2000 - no doubt you receive too many requests for help, but would it be possible for you to post a full copy of a demo/simplified code showing this, I find it's so much easier to learn when I have a working example to study from. I would really appreciate it. Thank you for the help so far.

  6. #206
    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 pilotsnipes View Post
    @danh2000 - no doubt you receive too many requests for help, but would it be possible for you to post a full copy of a demo/simplified code showing this, I find it's so much easier to learn when I have a working example to study from. I would really appreciate it. Thank you for the help so far.
    There are many examples available:

    http://technomedia.co.uk/SuperBoxSelect/examples.html
    http://technomedia.co.uk/SuperBoxSelect/examples3.html
    http://technomedia.co.uk/SuperBoxSel...ples3gray.html
    http://technomedia.co.uk/SuperBoxSel...lesRemote.html

    If you specifically mean using PHP and the array access, it's pretty simple - PHP requires square brackets at the end of form field names to indicate that it is array data. Therefore if you are using PHP and you are submitting the raw form - put square brackets at the end of the name.

    Eg:

    If your field is named states then name it states[] instead.

    Additional info: http://us2.php.net/manual/en/faq.htm...aq.html.arrays

  7. #207
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    294
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Please change

    PHP Code:
        findInStore : function(val){
            var 
    index this.store.find(this.valueFieldval.trim()); 
    to

    PHP Code:
        findInStore : function(val){
            var 
    index this.store.find(this.valueFieldExt.isString (val) ? val.trim() : val); 
    so that values other than strings are supported.

    Cheers,
    Jörm

  8. #208
    Ext User
    Join Date
    Aug 2009
    Posts
    15
    Vote Rating
    0
    nadim is on a distinguished road

      0  

    Default superboxselect reset

    superboxselect reset


    the .reset() method doesn't seem to be working correctly for me. If I use it and then immediately click on the drop down arrow I get a "this.list" is not defined.

    Suggestions?

  9. #209
    Ext User
    Join Date
    Aug 2009
    Posts
    15
    Vote Rating
    0
    nadim is on a distinguished road

      0  

    Default reset

    reset


    I'm using basicform.reset.

  10. #210
    Ext User
    Join Date
    Aug 2009
    Posts
    15
    Vote Rating
    0
    nadim is on a distinguished road

      0  

    Default


    I mean .suspendEvents() and .resumeEvents(), not .reset()

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