|
hi, i am new to DHTML.
i have tried to solve the following in the last few days. I still cannot figure what's the problem. is there anyone can help me? i have a form like this. (sorry to post such a long program)
It seems that the hidden form field cannot store the content
in iframe. I think that it may be there is no field to store in iframe to store data, but i do not know how to store the data and submit it.
//store value in iframe to hidden form field on submit
<form id="myform" name="myform" method="post"
action="./updateContent"
onSubmit="document.myform.htmlfield.value=document.all.iView.
innerHTML;alert(this.htmlfield.value);">
//the hidden form field
<input type="hidden" name="htmlfield" id="htmlfield"
value="">
//the iframe
<iframe id="iView" name="iView" style="width: 450px;
height:450px">
</iframe>
//the submit button
<a href="javascript:document.myform.submit()"><img
src="file:///C|/Documents%20and%
20Settings/iverson/submit.gif" width="80" height="18" ></a>
</form>
Thanks a lot
|
|
|
|
|
|
|
// |