XStandard XHTML (Strict or 1.1) WYSIWYG Editor

XStandard - Do it right. The rest will follow.

Step 2 - Getting Data From XStandard

Unlike form elements, plug-in controls don't send data back to the server. To get around this, Web developers use a common technique that is reliable and easy to implement. Before the page is submitted, copy the data from the editor into a hidden field using JavaScript. When the form is submitted, the server-side script (ASP, PHP, ColdFusion, etc.) will read the data from the hidden field.

This is an example of JavaScript copying data from XStandard into a hidden field:

  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function myOnSubmitEventHandler() {
  5. document.getElementById('editor1').EscapeUnicode = true;
  6. document.getElementById('xhtml1').value = document.getElementById('editor1').value;
  7. }
  8. </script>
  9. </head>
  10. <body>
  11. <form method="post" onsubmit="myOnSubmitEventHandler()" action="mypage.htm">
  12. <p>
  13. <object type="application/x-xstandard" id="editor1" width="100%" height="400">
  14. <param name="Value" value="Hello World!" />
  15. </object>
  16. </p>
  17. <p>
  18. <input type="hidden" name="xhtml1" id="xhtml1" value="" />
  19. <input type="submit" name="btnAction" value="Submit" />
  20. </p>
  21. </form>
  22. </body>
  23. </html>

This is an example of a server-side script (in this case an ASP example) reading data from the hidden field:

  1. <%
  2. strXHTML = Request.Form("xhtml1").Item
  3. %>

Navigation

XStandard works for ...

AT&T, IBM, Microsoft, Xerox, Siemens, Philips, American Express, BP, HarperCollins Publishers, Penton, Colgate, FAA, NetIQ, Duke University Health System

What's New In XStandard Version 2.0

  • Support for OS X
  • Keyboard accessible interface
  • Find / replace
  • Support for JavaScript events
  • Enhancements to image and attachment libraries
  • Enhancements to table creation
  • Support for authoring definition lists
  • Ability to save images from the editor to My Computer

Full details on all new features

Most Popular FREE Downloads

  1. XStandard WYSIWYG Editor
  2. HTTP component
  3. ZIP component
  4. Image size component
  5. Base64 component