[Dojo-interest] Problem getting the editor content

Davide dojo at consulvision.it
Thu Feb 15 02:11:56 MST 2007


Hello all,
        I've a problem getting the content of an editor2 widget with
Internet
Explorer. The function getEditorContent() works fine with firefox 2, but
I've a no-method-for-the-object error in IE 6.

This is my code:

<html xmlns="http://www.w3.org/1999/xhtml">
  
  <head>
    <title></title>
    <meta name="GENERATOR" content="Quanta Plus" />
    <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
    <script language="javascript" src="js/dojo.js"
type="text/javascript"></script>
  </head>

<script language="JavaScript" type="text/javascript">
  dojo.require("dojo.widget.Editor2");
  
  function myFunction()
  {
    mailing_message =
dojo.widget.byId("mailing_message").getEditorContent();
    
    alert(mailing_message);
  }
</script>

<body>

<form id="mailing_form" name="mailing_form" method="post"
action="ajax.php" target="x">
  
  <div dojoType="Editor2" id="mailing_message">mycontent</div>
  
  <input type="button" onclick="myFunction()" value="test" />
  
</form>

</body>
</html>


May be somebody know why IE6 doesn't work?

Thanks in advance,
Davide



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070215/6ee0e8c9/attachment.html


More information about the Dojo-interest mailing list