1. #121
    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 galdaka View Post
    Hi danh,

    Excellent support!! thanks for all.

    One problem.

    I´m migrating from 3.0.3 to 3.1.0. When I updated the latest code of your component over this code
    Galdaka,

    It's been a long long time since I changed that code - and I've tested in IE8 (at least with basic settings) without any problems.

    Are you using compatability mode for some reason, and what doctype do you use - are you in Quirks or Strict mode?

    Thanks,

    Dan

  2. #122
    Ext User
    Join Date
    Nov 2009
    Location
    China.Shanghai
    Posts
    16
    Vote Rating
    0
    lanhun is on a distinguished road

      0  

    Default


    @danh2000 Thank you very much! Next time I will give an example.

  3. #123
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by danh2000 View Post
    Galdaka,

    It's been a long long time since I changed that code - and I've tested in IE8 (at least with basic settings) without any problems.

    Are you using compatability mode for some reason, and what doctype do you use - are you in Quirks or Strict mode?

    Thanks,

    Dan
    IE8 problem (Version 8.0.6001.18702). No compatibilty mode.

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

      0  

    Default


    New version attached to the first post here.

    UPDATE 29/12/2009

    Fixed IE8 Quirks Mode issue when transforming a HTML Select.
    Fixed typo

  5. #125
    Ext User
    Join Date
    Nov 2009
    Location
    China.Shanghai
    Posts
    16
    Vote Rating
    0
    lanhun is on a distinguished road

      0  

    Default


    @danh2000

    when component is destroyed.
    error:
    this.dom is undefined
    error info:
    onDestroy() -> killItems() ->resetStore()


    sorry,i can not create the example now.

  6. #126
    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 lanhun View Post
    @danh2000

    when component is destroyed.
    error:
    this.dom is undefined
    error info:
    onDestroy() -> killItems() ->resetStore()

    sorry,i can not create the example now.
    I have 2 test cases for this and both are working. I'll need more information and a test case if you are having problems.

    Dan

  7. #127
    Sencha User greco's Avatar
    Join Date
    Aug 2007
    Posts
    17
    Vote Rating
    0
    greco is on a distinguished road

      0  

    Default


    Great Job!

    I have a question.

    I use the SuperBoxSelect.getValueEx() -> var list = [{id:1,name:'x'}, {id:2,name:'y'}]

    and then use the SuperBoxSelect.setValueEx(list).

    In firebug throws an Exception
    "I.style is undefined"
    ext-all-debug.js 3920 "out = (v = el.style[prop]) ? v :\n"

    This my Code:

    Code:
        this.userFields = ['id', 'name'];
    	this.userRecord = Ext.data.Record.create(this.userFields);
            this.userStore = new Ext.data.JsonStore({
            fields: this.userFields
        });
        this.userList = new Ext.ux.form.SuperBoxSelect({
            fieldLabel: 'Users',
            resizable: true,
            width: 170,
            store: this.userStore,
            mode: 'local',
            displayField: 'name',
            valueField: 'id',
            forceSelection : true
         });
    
         var users = resp.users;
         for(var i=0, u; u = users[i++];) {
    	this.userStore.add(new this.userRecord(u));
         }
    
    //##################################
       
        var list = this.userList.getValueEx();
    
    //##################################
    
        this.userList.setValueEx(list);

  8. #128
    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 greco View Post
    ...
    In firebug throws an Exception
    "I.style is undefined"
    ext-all-debug.js 3920 "out = (v = el.style[prop]) ? v :\n"
    ...
    I've just tried this scenario and it works without throwing an exception... what version of Ext are you using?

    Do you have an online version so that I can debug? or it may help just to see the data you are using in the store.

  9. #129
    Ext User
    Join Date
    Aug 2009
    Location
    Semi-retired in Mexico
    Posts
    47
    Vote Rating
    0
    frederickd is on a distinguished road

      0  

    Default Not loading my database field... something simple I'm sure

    Not loading my database field... something simple I'm sure


    This extension is fantastic! It is just what I wanted to eliminate some troublesome checkboxes and be more Web 2.0-ish. Thank you!

    I am very close to having my implementation done. My problem is my lack of knowledge of javascript. I've updated my project to ExtJs 3.1.0. The SuperBoxSelect is working perfectly showing my local list of items. What is not happening is the loading of the database field of all the selections. I am only sending to the database the last selection that was made.

    Here is what I've got for code snippets. First the definition of the SuperBoxSelect:

    Code:
        var servicesCombo = new Ext.ux.form.SuperBoxSelect({
            id: 'services1',
            fieldLabel: 'Service(s) Rendered',
            emptyText: 'Select service(s) rendered...',
            resizable: true,
            minChars: 2,
            store:    [
                    'AirCondEvap', 'DieselFuelSys', 'GasFuelSys', 'Battery', 'BrakeFlush', 'Driveline',
                    'Transmission', 'CoolingSys', 'PowerSteer'
                    ],
            mode: 'local',
            forceSelection: true,
            triggerAction: 'all',
            name: 'data[Repairorder][services]',
            hiddenName: 'data[Repairorder][services]',
            selectOnFocus:true
        });
    Pretty simple stuff. The hiddenName has been how I have loaded other combo boxes. The format of the name is for sending back to CakePHP the database field. [Repairorder] is the model name (database table) and [services] is the field. It is defined as a VARCHAR(150) in a MySQL MyISAM database.

    Here is what I have for a handler on the save button:

    Code:
            buttons: [{
                    text: 'Save',                   // text for submit button
                    type: 'submit',               // type for button
                    handler: function() {     // when you click the button...
                        alert(Ext.getCmp('services1').getValue());
                        add_form.form.submit({
                            url: 'http://'+host+'/repairorders/add_save',
                            waitMsg:'Saving Data...',
                            success: function() {
    
    and so on...
    The code in bold was just a debug aid to pop an alert box. The alert box always has all the values that were selected.

    Would someone be so kind as to help me put the contents in my database field please? I know this is a newbie type question but I have experimented around and cannot discern the answer myself.

    Thank you in advance!

  10. #130
    Ext User
    Join Date
    Aug 2009
    Location
    Semi-retired in Mexico
    Posts
    47
    Vote Rating
    0
    frederickd is on a distinguished road

      0  

    Default Followup with POST data example

    Followup with POST data example


    Did some more scratching around and here is the POST data that is going back to the server:

    Code:
    data[Repairorder][advisor_id]1
    data[Repairorder][dealer_id]1
    data[Repairorder][distributor_id]1
    data[Repairorder][lof]Premium
    data[Repairorder][make]Toyota
    data[Repairorder][model]4-Runner
    data[Repairorder][number]RO20100107b
    data[Repairorder][odometer]13456
    data[Repairorder][odometer_type]Miles
    data[Repairorder][servicedate]2010-01-07
    data[Repairorder][services]
    data[Repairorder][services]AirCondEvap
    data[Repairorder][services]Battery
    data[Repairorder][services]BrakeFlush
    data[Repairorder][vin]5TDZT34A05S250524
    data[Repairorder][year]2008
    What is interesting is that all three choices show up, but they are not delimited by commas as in the alert box. I can see now why only the last selection is loaded to the database. Does this help? How do I keep the delimited values?

Thread Participants: 94

  1. Animal (3 Posts)
  2. jay@moduscreate.com (1 Post)
  3. Condor (1 Post)
  4. stever (1 Post)
  5. mystix (5 Posts)
  6. MD (1 Post)
  7. JorisA (1 Post)
  8. randomY (1 Post)
  9. DigitalSkyline (1 Post)
  10. sj137 (3 Posts)
  11. boggle (1 Post)
  12. danh2000 (71 Posts)
  13. ostghost (1 Post)
  14. lossendae (1 Post)
  15. ZooKeeper (1 Post)
  16. greco (1 Post)
  17. Fredric Berling (1 Post)
  18. GraemeBryce (2 Posts)
  19. Strati (2 Posts)
  20. syscobra (2 Posts)
  21. boonkerz (4 Posts)
  22. Sesshomurai (3 Posts)
  23. shamansoft (1 Post)
  24. dorgan (2 Posts)
  25. mjhaston (1 Post)
  26. radtad (5 Posts)
  27. Joyfulbob (2 Posts)
  28. crysfel (1 Post)
  29. armandoxxx (2 Posts)
  30. jarlau (1 Post)
  31. lacco (1 Post)
  32. abraxxa (38 Posts)
  33. prometheus (1 Post)
  34. pops (1 Post)
  35. raphac (1 Post)
  36. Scorpie (2 Posts)
  37. supercharge2 (4 Posts)
  38. jmiguel (2 Posts)
  39. ash11tw (2 Posts)
  40. wojan (1 Post)
  41. ryzmen (1 Post)
  42. nmohler (2 Posts)
  43. wki01 (2 Posts)
  44. gacowarlock (1 Post)
  45. kora.kanchan (1 Post)
  46. senacle (3 Posts)
  47. genie_vn (1 Post)
  48. sergey.s (1 Post)
  49. Grolubao (10 Posts)
  50. mathec (1 Post)
  51. jackjia (1 Post)
  52. polydyne (1 Post)
  53. Antjac (1 Post)
  54. Thomas Triplet (1 Post)
  55. Gonfi (1 Post)
  56. kleins (1 Post)
  57. talha06 (1 Post)
  58. scishop (1 Post)
  59. eztam (2 Posts)
  60. frederickd (10 Posts)
  61. dusoo (2 Posts)
  62. iv_ekker (3 Posts)
  63. pym (1 Post)
  64. sudhirhv (3 Posts)
  65. lanhun (14 Posts)
  66. wcasado (1 Post)
  67. ramana_l_v (3 Posts)
  68. cq.yangyu@gmail.com (1 Post)
  69. siberian (1 Post)
  70. Tommi (4 Posts)
  71. rdblyth (2 Posts)
  72. devtig (3 Posts)
  73. markmansour (1 Post)
  74. dhiren.lodhia (1 Post)
  75. slamhan (1 Post)
  76. panter4 (1 Post)
  77. Korbin (2 Posts)
  78. istetska (1 Post)
  79. ian.young (1 Post)
  80. sebterzi (1 Post)
  81. ucoxk (1 Post)
  82. prakashr (1 Post)
  83. danilo.pederiva (1 Post)
  84. --miCZar-- (2 Posts)
  85. zozofoz (1 Post)
  86. spydercavern (1 Post)
  87. tvelykyy (1 Post)
  88. leorossi (3 Posts)
  89. revertTS (1 Post)
  90. joxzaren (1 Post)
  91. leduc (1 Post)
  92. deepthi_r (1 Post)
  93. qiankun (1 Post)
  94. Mr.Solomon (2 Posts)

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