This property specifies the way in which Ephox EditLive! for XML behaves when the page is submitted. This affects how content is retrieved from EditLive! for XML.
A boolean indicating if EditLive! for XML should attach its content submission to the onsubmit function.
The default value is true.
When attaching its content submission to the onsubmit function EditLive! for XML populates a hidden field with its contents automatically rather than the developer calling for the contents explicitly. The name of the hidden field is contained within the same form as the EditLive! for XML instance and is given the name that was specified by the developer when the EditLive! for XML instance was created. For example, if the applet was assigned the ELApplet1 was specified in the above example so EditLive! would store its contents in the hidden field named ELApplet1. This hidden field is then posted with the rest of the form data when the submit button is pressed. EditLive! for XML automatically updates the hidden field by attaching itself to the form's onsubmit() handler. If there is already a function specified in the onsubmit() handler then this function will run after the hidden field has been updated. This means that you can still use the onsubmit() handler to run your own JavaScript functions. If you use another button/image/event to submit the form by calling form.submit() the browser will not call the onsubmit() handler and EditLive! for XML will not populate the hidden field with data. For this reason, please ensure you use form.onsubmit() to avoid this problem.
When deactivating the onsubmit functionality of EditLive! for XML by setting the AutoSubmit property to false the developer may wish to retrieve content from EditLive! for XML using the GetDocument function provided in the EditLive! for XML JavaScript Run Time API.
Copyright 2001-2005 Ephox Corporation. All Rights Reserved.