1. #201
    Sencha User
    Join Date
    May 2007
    Posts
    191
    Vote Rating
    0
    temporary is on a distinguished road

      0  

    Default


    Has anyone got a generic solution for the submit fail? I have a dynamic form that can contain several instances of Ext.ux.TinyMCE, and I don't want to do some workarounds just to get these TinyMCE synced...

    The problem is that BasicForm.submit() doesn't call getValue() on each item, but it calls Ext.Ajax.serializeForm(). serializeForm() just takes a look at the elements inside the form, not the form items itself. There is a big switch() inside serializeForm() which determines what to do.

    Maybe I just have to implement my own submit() function...

    (later) Oops, I was wrong, I don't call BasicForm.submit(), I call BasicForm.getValues().

  2. #202
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    1
    pablitobs is on a distinguished road

      0  

    Default Permission Denied .

    Permission Denied .


    Hi, first, great code, congrats to all the support team...
    Secon I have this code

    Code:
     
    addCable = new Ext.Window({
             width:800
      ,height:700
      ,minWidth:165
            ,id:'crearId'        
      ,minHeight:200
      ,resizable:false
            ,layout:'fit'
            ,border:true
            ,closable:true
            ,title:'Crear Cable'
     
      items: /*createForm,*/
         [new Ext.form.FormPanel({
       baseCls: 'x-plain',
       layout:'form',
       url:'save-form.php',
       border: true,
       defaultType: 'textfield',
       monitorValid:true,
       buttonAlign: 'right',
       bodyStyle: 'padding:5px',
       items: [{
        fieldLabel: 'Tipo de Cable',
        id: 'cableType',
        name: 'cableType',
        anchor:'50%'  // anchor width by %
       },{
        fieldLabel: 'Cable Número',
        id: 'cableNumber',
        name: 'cableNumber',
        anchor: '50%'  // anchor width by %
       },{
        id: 'cableDireccion',
        fieldLabel:'Dirección',    
        name: 'cableDireccion',
        value:'DGC',
        allowBlank:false,    
        blankText: 'Debe ingresar la dirección del cable, puede usar el botón de direcciones en la barra',
        anchor: '50%'  // anchor width by %
       },{
        id:'cableTitulo',
        name: 'cableTitulo',
        fieldLabel: 'Título',
        allowBlank:false,
        blankText: 'Debe ingresar un título válido',
        anchor: '95%',  // anchor width by %
        enableKeyEvents:true,
        listeners:{
         'keyup':{ fn: function(field, e){addCable.setTitle('Crear Cable: '+field.getValue())}
         }
        }
       },{
        fieldLabel: 'Referencia Lima',
        id: 'cableRefLima',
        name: 'cableRefLima',
        anchor: '95%'  // anchor width by %
       },{
        fieldLabel: 'Referencia Tokio',
        id: 'cableRefTokio',
        name: 'cableRefTokio',
        anchor: '95%'  // anchor width by %
       },{
        xtype: "tinymce",
        hideLabel:true,
        width: "768",
        height: "440",
        id: "cableBodyValue",
        name: "cableBodyValue",     
        tinymceSettings: {
         theme : "advanced",         
         content_css : "/includes/styles/cable_template.css",
         plugins: "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras",
         theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,insertdate,inserttime",
         theme_advanced_buttons2 : "forecolor,backcolor,tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr,|,print,|,ltr,rtl,moveforward,movebackward,absolute,styleprops,cite",
         theme_advanced_buttons3 : "abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak",
         theme_advanced_toolbar_location : "top",
         theme_advanced_source_editor_width: 768,
         theme_advanced_source_editor_height:440,
         theme_advanced_toolbar_align : "left",
         theme_advanced_statusbar_location : "bottom",
         theme_advanced_resizing : false,
         theme_advanced_fonts : "Arial=arial",
         theme_advanced_font_sizes : "MyText=11px",
     
         extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
         template_external_list_url : "example_template_list.js"
        },
        value: ""
       }],
       buttons:[
         { 
         text:'Guardar',
         formBind:true,
         handler: function() {
          // Sync value for specific editor
          Ext.getCmp("cableBodyValue").syncValue();
          // Submit the form
          frm.getForm().submit({
           url: "/",
           method: "GET"
          });
         }
     
         },{ 
         text: 'Cerrar',
         handler: function(){     
         addCable.close(); 
         }
         }]
      })]
        });
    so it is a window with a form and a tinyMCE inside, everything is fine, but when I close the window, IE7 screams the error..... "Permission Denied" , FF works fine.... I really don't know what to do..
    I saw some post refering to onDestroy..... but on my tiny_mce_src.js, there is not such method... thanks for you help

  3. #203
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    1
    pablitobs is on a distinguished road

      0  

    Default Permission Denied on getBody()

    Permission Denied on getBody()


    Hi, from the above post, the debuger points to this code section on tiny_mce_src.js:

    getBody : function() {
    return this.bodyElement || this.getDoc().body;
    },
    IE7 blames that function for the perimission denied error.

    any Ideas?
    thanks

  4. #204
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    pablitobs, do you open this page from web server, as it should be done, or just from local file? It matters. Don't have other ideas for now.

    If you already use server, please try to comment out different parts of your form. Also it would be helpful to see whole stack trace, not only the failing method.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  5. #205
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    1
    pablitobs is on a distinguished road

      0  

    Default


    Quote Originally Posted by xor View Post
    pablitobs, do you open this page from web server, as it should be done, or just from local file? It matters. Don't have other ideas for now.

    If you already use server, please try to comment out different parts of your form. Also it would be helpful to see whole stack trace, not only the failing method.
    Hi, yes, it is loaded on a web server... what I did is follow a not fancy solution, instead of using the hide() function I reload the page with location.href=location.href so it renders all and no errors, this while I figure what's the problem

  6. #206
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    691
    Vote Rating
    25
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Default


    Hi,

    i have the same here with IE6... Currently i try to figure out whats going wrong. I use latest tinyMCE...

    [edit]
    i have a form with 3 tinyMCEs. When i close the dialog the onDestroy-function in Ext.ux.TinyMCE.j will call 6 times!
    That means that every editor will be destroy twice?
    Any ideas why?


    Quote Originally Posted by pablitobs View Post
    Hi, from the above post, the debuger points to this code section on tiny_mce_src.js:

    getBody : function() {
    return this.bodyElement || this.getDoc().body;
    },
    IE7 blames that function for the perimission denied error.

    any Ideas?
    thanks
    Last edited by Dumbledore; 21 Dec 2008 at 1:47 AM. Reason: found something...

  7. #207
    Ext JS Premium Member
    Join Date
    Feb 2008
    Posts
    13
    Vote Rating
    0
    EMP is on a distinguished road

      0  

    Default


    Changing the onDestroy listener to beforeDestroy fixed it for me.

    (line 154 in Ext.ux.TinyMCE.js)
    change:

    Code:
    onDestroy: function(){
         if( this.ed ) tinyMCE.remove( this.ed );
         Ext.ux.TinyMCE.superclass.onDestroy.call( this );
    },
    to

    Code:
    beforeDestroy: function(){
    	if( this.ed ) tinyMCE.remove( this.ed );
    	Ext.ux.TinyMCE.superclass.beforeDestroy.call( this );
    },
    and see if that does it.

    don't forget to update the minified version too

  8. #208
    Ext User
    Join Date
    Oct 2007
    Posts
    24
    Vote Rating
    0
    hjf1223 is on a distinguished road

      0  

    Default



    That's good ,I resolve it.

  9. #209
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    1
    pablitobs is on a distinguished road

      0  

    Default


    quite enough, but I found that even I did not get the error any more, when I tried to save the data from the text on the tinyMCE to my database using and ajaxrequest, only certain number of characters where saved, something like 128 so so.. the rest was ignored, so I always ended with truncated text on my databse (the field on the database is large enough to handle large data), till now I haven't be able to address this issue...

  10. #210
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Quote Originally Posted by pablitobs View Post
    quite enough, but I found that even I did not get the error any more, when I tried to save the data from the text on the tinyMCE to my database using and ajaxrequest, only certain number of characters where saved, something like 128 so so.. the rest was ignored, so I always ended with truncated text on my databse (the field on the database is large enough to handle large data), till now I haven't be able to address this issue...
    Check how the save request is performed. Is it done with correct POST request?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

Thread Participants: 128

  1. galdaka (1 Post)
  2. Dumbledore (26 Posts)
  3. mystix (1 Post)
  4. dawesi (1 Post)
  5. albeva (7 Posts)
  6. ludoo (1 Post)
  7. bloudon (2 Posts)
  8. MarkB (4 Posts)
  9. Cipher (2 Posts)
  10. Hani (3 Posts)
  11. Pagebaker (2 Posts)
  12. DigitalSkyline (1 Post)
  13. thesilentman (5 Posts)
  14. marcing (1 Post)
  15. mschering (5 Posts)
  16. Konstantin (1 Post)
  17. temporary (1 Post)
  18. tobiu (1 Post)
  19. billeatman (1 Post)
  20. kmiyashiro (2 Posts)
  21. cmendez21 (4 Posts)
  22. 6epcepk (2 Posts)
  23. ZooKeeper (6 Posts)
  24. Yossi (5 Posts)
  25. JNason (4 Posts)
  26. ko0kiE (1 Post)
  27. Fredric Berling (2 Posts)
  28. Dongluan (2 Posts)
  29. w011117 (4 Posts)
  30. cnelissen (5 Posts)
  31. cmarin (2 Posts)
  32. lvanderree (21 Posts)
  33. kavih7 (4 Posts)
  34. hjf1223 (1 Post)
  35. AVerta (2 Posts)
  36. MuratCorlu (1 Post)
  37. vironitronox (1 Post)
  38. saJoshua (1 Post)
  39. Kannabismus (1 Post)
  40. supawat (1 Post)
  41. nikatwork (3 Posts)
  42. scipio (1 Post)
  43. neenhouse (2 Posts)
  44. tfrugia (2 Posts)
  45. asugama (2 Posts)
  46. liuliming (1 Post)
  47. marco76 (1 Post)
  48. yaroslav (1 Post)
  49. dverkade (1 Post)
  50. scottco (1 Post)
  51. broutard (1 Post)
  52. cybertaz (2 Posts)
  53. jwendt@iscinternational.com (1 Post)
  54. kai5263499 (1 Post)
  55. sirioz10 (6 Posts)
  56. jenner (5 Posts)
  57. EMP (1 Post)
  58. joao_candido (2 Posts)
  59. uros (1 Post)
  60. craigharmonic (3 Posts)
  61. serff (1 Post)
  62. vishee (4 Posts)
  63. walldorff (3 Posts)
  64. blow (1 Post)
  65. genius3k (1 Post)
  66. ehask71 (2 Posts)
  67. pauleee (1 Post)
  68. illuminum (1 Post)
  69. basti (1 Post)
  70. Qtx (1 Post)
  71. Cravi (1 Post)
  72. uwolfer (5 Posts)
  73. sseema (1 Post)
  74. alex-t.de (1 Post)
  75. Denny Crane (2 Posts)
  76. lucasmarin (1 Post)
  77. dayext (1 Post)
  78. adamadax (2 Posts)
  79. ben_dog (2 Posts)
  80. paulyb263 (1 Post)
  81. iLoLo21 (2 Posts)
  82. queej (5 Posts)
  83. arnab_ghosh (2 Posts)
  84. vanadium (1 Post)
  85. emmadi (5 Posts)
  86. pablitobs (4 Posts)
  87. mstroeve (2 Posts)
  88. mschwartz (5 Posts)
  89. armagedon (1 Post)
  90. Stju (3 Posts)
  91. elderotaku (1 Post)
  92. ahwin (6 Posts)
  93. lakilevi (2 Posts)
  94. zeos (1 Post)
  95. sergiu079 (1 Post)
  96. Toon (2 Posts)
  97. Jangla (4 Posts)
  98. mjh (3 Posts)
  99. treadmill (3 Posts)
  100. joejernst (2 Posts)
  101. alumb (1 Post)
  102. Aniruddha (1 Post)
  103. hansl1963 (5 Posts)
  104. andynuss (9 Posts)
  105. davidbuzatto (3 Posts)
  106. slsmithtx (2 Posts)
  107. asagala (11 Posts)
  108. juste_millieu (1 Post)
  109. skunk (2 Posts)
  110. mrjoltcola (1 Post)
  111. damo (2 Posts)
  112. ivanatora (3 Posts)
  113. JeanNiBee (2 Posts)
  114. lj2008 (1 Post)
  115. countdown (1 Post)
  116. cstansbury (2 Posts)
  117. Boxcopter (1 Post)
  118. mjbohn (3 Posts)
  119. ajlaluan (1 Post)
  120. Tpona (1 Post)
  121. omerfarooq123 (2 Posts)
  122. sraghavachari (1 Post)
  123. jorgelive (1 Post)
  124. wboard (2 Posts)
  125. wpoosanguansit (1 Post)
  126. DaviPresentia (1 Post)
  127. aa0 (1 Post)
  128. odaihatim (1 Post)