G
Guest
Hi all
i'm having a little problem
I have a aspx file with a iFrame defined
The iframe is loaded with a html webeditor
After editing data in the webeditor textbox, i want t
get the data to a hidden field in the aspx file
What is the best way todo this
Is it possible to add some sample code because a i have tried a lo
but nothing works
mypage.aspx(html source
-----------------------------
<iframe id="iFrameAbstractBody" style="Z-INDEX: 103; LEFT: 24px; WIDTH: 800px; POSITION: absolute; TOP: 112px; HEIGHT: 680px
src="../Editor/htmlEditor/hostHtmlEditor.HTML" frameBorder="no" width="800" height="700"></iframe
here i have the iframe added!
mypage.aspx(vb source
---------------------------
Private Sub cmdContinue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdContinue.Clic
cmdContinue.Attributes.Add("onClick",
"document.Form1.txtgetDataFromIFrameElement.value = iFrameAbstractBody.document.editarea.innerHTML;"
End Su
Here i have a button that should bring the data to de aspx hidden field
Whats wrong here
Or am i wrong
Thanxs in advance
i'm having a little problem
I have a aspx file with a iFrame defined
The iframe is loaded with a html webeditor
After editing data in the webeditor textbox, i want t
get the data to a hidden field in the aspx file
What is the best way todo this
Is it possible to add some sample code because a i have tried a lo
but nothing works
mypage.aspx(html source
-----------------------------
<iframe id="iFrameAbstractBody" style="Z-INDEX: 103; LEFT: 24px; WIDTH: 800px; POSITION: absolute; TOP: 112px; HEIGHT: 680px
src="../Editor/htmlEditor/hostHtmlEditor.HTML" frameBorder="no" width="800" height="700"></iframe
here i have the iframe added!
mypage.aspx(vb source
---------------------------
Private Sub cmdContinue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdContinue.Clic
cmdContinue.Attributes.Add("onClick",
"document.Form1.txtgetDataFromIFrameElement.value = iFrameAbstractBody.document.editarea.innerHTML;"
End Su
Here i have a button that should bring the data to de aspx hidden field
Whats wrong here
Or am i wrong
Thanxs in advance