Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editable IE Page

Status
Not open for further replies.

xloop

Programmer
Nov 12, 2001
86
GB
Ok, i'm trying to create an editable IE section in replace of a text area so i can enable some rich editing capabilities, however i'm having problems actually submitting the page.

I have an htc like this:

<div id=edit_area contenteditable align=left type="text" class="textbox"></div>

(with some button code... (all simple out the box stuff)

then i have an html file:

<html xmlns:x>
<head>
<?import namespace=x implementation="richtext.htc" />
<link rel="stylesheet" type="text/css" href="media/style_ie.css">
</head>

</script>

<body>
<form id="myForm">
<input type="text" name="submitText" size="50%">
<br>
<br>
<br>
<x:editbox id="edit_area" />

<input type=button text="Submit Form" onclick="submitForm();">
</form>




</body>
</html>

This is great..... however what would be fantastic is if i could post the form as normal and somehow have access to the div (in the htc) innerHTML

There could also be more than one instance of richtext.htc on one html page.

Anyone shed any light on the best way of doing this?

Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top