-
19 Feb 2009 5:56 AM #1
HTML Editor - empty content
HTML Editor - empty content
Hi All,
We are using ExtJs 2.0, and HTML Editor for Email form. What happens is that sometimes users claim to send empty mails. If we look to system logs for these users we can see that the content of the message wasn't correctly picked up from the email form (length of string content from textarea is 0). This problem happens from time to time and a user see no error message in a browser, we also don't see any exceptions in server logs.
Do you think this could be browser issue (ExtJs 2.0 is not supporting FF3 or IE8)? Or maybe is this connected with content of the textarea (are there any forbiden chars in text area for HTML editor)?
Greetings,
Marek
-
19 Feb 2009 7:00 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
I would suggest upgrading to 2.2.1 immediately, as Fx3 is supported. if any of your users are using IE8, woah!
Can you replicate the problem easily? Can you provide a public -exercisable example?
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
19 Feb 2009 7:24 AM #3
We are upgrading to ExtJs 2.2 in this month. The problem is that this empty emails problem happens sporadically and I wasn't able to reconstruct the problem.
One of our customer was using IE7 while encountering this problem. That is way I'm not sure if upgrading to newer version of ExtJs will solve the problem.
Anyway thank You for replay
-
19 Feb 2009 7:27 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
I've not seen this issue with the HTML editor myself. How are you submitting the forms?

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
20 Feb 2009 12:46 AM #5
Below some code, just to give you an overview of the case.
1)newMessage.js
Ext.onReady(
var htmlE=new Ext.form.HtmlEditor({xtype:'htmleditor', id:'tresc',height:350,
value:initvalue,width:350});
htmlE.enableSourceEdit=false;
var tresc = new Ext.Panel({renderTo:Ext.get('contentR'),frame:true,
title: 'Content of the message',collapsible:false, collapsed:false,items: htmlE});
)
function submit(){
var tresc = document.getElementById("tresc").value;
document.forms["newmessage"].elements["content"].value = tresc;
}
2)NewMessage.html
<form id="newmessage" name="newmessage">
<textarea name="content" id="content"> </textarea>
</form>
-
20 Feb 2009 1:54 AM #6
try....
Code:function submit(){ var tresc = Ext.getCmp('tresc'); tresc.syncValue(); var finalValue=tresc.getValue(); /**any other code here which might process the finalValue**/ }


Reply With Quote