[Dojo-interest] What happened to my data?

Peter L. Berghold peter at berghold.net
Wed Aug 6 18:17:31 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karl Tiedt wrote:
> Since Editor is not a form widget it does no form handling for you...
> You need to connect its onSave (I believe is the right routine) to a
> hidden input inside your form in order for the editor content to be
> populated to a form for submission.
> 

THANK YOU!  That was the nudge I needed to do the right sort of google
to find the solution. I ended up doing:

<script type="text/javascript">
   dojo.addOnLoad(function () {
      dojo.connect(dojo.byId('test'), 'onsubmit', function () {
         dojo.byId('article_body_rq').value =
dijit.byId('article_body').getValue(false);
      });
   });
</script>

What the also implies to me is there should be a way hooking this up to
a Struts form using a connect to both onload and onsubmit to extract
passed in values from the form bean on load and shove them back onsubmit.

I'll give it a shot and let y'all know....




- --

Peter L. Berghold     http://www.berghold.net   peter at berghold.net
Unix Professional     Dog Agility Fan   Crazed Cook
"Those who fail to learn from history are condemned to repeat it."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImeq6UM9/01RIhaARAkqvAJ416manV5aQF6ELaO74K7BZSdTE3ACfVGfF
LjIJCTml2SYkOZi4QS0NcnM=
=BhJA
-----END PGP SIGNATURE-----


More information about the Dojo-interest mailing list