No subject
Sat Apr 15 12:32:53 MDT 2006
textarea that contains HTML content to be edited.
=======================================================
The result is that it just fades out the editor control and
nothing happens when I hit save. here is the source - what am i
doing wrong!!!!
how do i get the onsubmit to trigger?
===========
<PRE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style type="text/css">
#rte {position: absolute;
top: 20px; left: 600px;
width: 300px; height: 200px;
border: 2px solid #462;
}
</style>
<script type="text/javascript"> djConfig = { isDebug: true };
</script> <script src="/dojo/dojo.js"
type="text/javascript"></script>
<script type="text/javascript">
dojo.require("dojo.widget.Editor");</script>
<script type="text/javascript">
function saveit() {
alert ("content: " +
document.rteForm.editorContent.value);
document.location=<a class="moz-txt-link-rfc2396E" href="mailto:interest at ecforu.com?subject=">"mailto:interest at ecforu.com?subject="</a> +
document.rteForm.editorContent.value;
}
</script>
</head>
<body >
<form id="rte" name="rteForm" onsubmit="saveit()">
<textarea name="editorContent" dojoType="Editor"
items="commandGroup;|;bold;italic;underline;strikethrough;">
hello world
</textarea>
</form>
</body>
</html>
</PRE>
==========
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Dojo FAQ: <a class="moz-txt-link-freetext" href="http://dojo.jot.com/FAQ">http://dojo.jot.com/FAQ</a>
<a class="moz-txt-link-abbreviated" href="mailto:Dojo-interest at dojotoolkit.org">Dojo-interest at dojotoolkit.org</a>
<a class="moz-txt-link-freetext" href="http://dojotoolkit.org/mailman/listinfo/dojo-interest">http://dojotoolkit.org/mailman/listinfo/dojo-interest</a>
</pre>
</blockquote>
</body>
</html>
--------------090108080500080408060502--
More information about the Dojo-interest
mailing list