Hello, how can i send a request with data and the form-content.

my form is:<form id="comment_form" method="post"
action="autofocus.php"  >

i have the following js:
SubmitRequest.send({
                data: {
                        'commentToId'  :
this.getParent('li').get('id').split('-')[1].toInt(),
                        'id': bildID,
                       'ajax': 'updateComment'
                        }
                });               //}).post($('comment_form'));

i expected to add this }).post($('comment_form')); on last line but i
get an error.

what is the right syntax?

Reply via email to