Hi all

I have to execute an action on server before update a div of my jsp
page.
With this approach it work,but the question is....is there a better
approach to solve this problem?

This is my working code:

function ajaxSubmit(){

                var form = document.forms[0];
                form.id = 'myForm';
                form.action = 'servlet.do?storeItemId';
                $('myForm').request({ onComplete: function(){
                                                                                
        new Ajax.Updater('items_container','pages/showItems.jsp',
{ method: 'post' });
                                                                                
 }
                 });

        }

Thank you for help!

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to