[Dojo-interest] dijit editor form submit

Werner Punz werner.punz at gmail.com
Thu Apr 24 05:21:32 UTC 2008


Does no one know?

Werner



Werner Punz schrieb:
> Ok I found a way by manually intercepting
> the form on submit
> via dojo connect, this works sufficiently
> but is there maybe another way to achieve this,
> which avoids this manual event chaining?
> 
> 
> 
> Werner
> 
> 
> Werner Punz schrieb:
>> Hello everyone
>> I am tryint to initialize the editor on an existing text area 
>> programmatically.
>> So far things work well:
>>
>> <textarea name="testform:editor" width="200px" height="100px" 
>> id="testform:editor2" style="width: 200px; height: 
>> 200px">editorvalue</textarea>
>> <script type="text/javascript">
>> <!--
>>     dojo.require('dijit.Editor');
>>     var testform_editor_dojoControl = new 
>> dijit.Editor({name:'testform:editor2'}, dojo.byId('testform:editor2'));
>> testform_editor_dojoControl.startup();
>> //-->
>> </script>
>>
>> So far the control is shown I can edit internally
>> but as soon as I want to submit the outer form where the editor resides
>> the value is lost.
>> The editor does not seem to push its values into the form.
>>
>> Does anyone have any idea what the problem is there.
>> This method seems to work on all other controls, but not on the editor.
>>
>> Werner
>>
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://dojotoolkit.org/docs/book
>> Forums: http://dojotoolkit.org/forum
>> Dojo-interest at dojotoolkit.org
>> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>>
> 
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
> 



More information about the Dojo-interest mailing list