dev Posted September 7, 2008 Share Posted September 7, 2008 hi,I am constructing a small RTE for my forum and finally stucked in last turn. i am using iframe to do rte job done and its really working smoothly but didn't get any idea on how to retrieve the edited html values and store in database. so to do that i used an hidden input.<form name="myform<iframe name="myRTF" id="myRTF" class="EditControl" frameborder="0" onblur="UpDate()"></iframe><input type="hidden" id="readtxt" name="htmlval" /></form>the idea is to update the myform.htmlval.value with window.frames["myRTF"].document.body.innerHTML; this code work fine in IE6 and hopefully IE7 too but Opera don't support it. so i tried contentdocument.body.innerHTML too but nothing happened. this rte do not use textarea.i am not so good in java. so dear experts: is there any other way to retrieve the html values or help me to understand and solve the problem. i really din't understand why opera is not supporting window.frames["myRTF"].document.body.innerHTML?hope someone in this forum will save me :)with thanks Link to comment Share on other sites More sharing options...
jeffman Posted September 7, 2008 Share Posted September 7, 2008 Ad this to your tag: name="myRTF" Link to comment Share on other sites More sharing options...
Ingolme Posted September 7, 2008 Share Posted September 7, 2008 Just try document.getElementById("myRTF").document.body.innerHTML instead. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.