Jump to content

window.frames["myRTF"].document.body.innerHTML


dev

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...