Topic: observe_form function -> submit form on page load
I have a form that is submitted by using Ajax if a value changed. The function used to submit the form is 'observe_form'.
I also want to submit the form if the page is loaded, because sometimes the form is already filled from the session. Now I do it using the prototype function 'new Ajax.Request'.
My code is now as follows: