# AJAX: Trying to autosubmit a form

**URL:** <https://forum.kirupa.com/t/ajax-trying-to-autosubmit-a-form/277824>\
**Category:** Uncategorized\
**Created:** [December 17, 2008, 6:38pm UTC](https://forum.kirupa.com/t/ajax-trying-to-autosubmit-a-form/277824 "2008-12-17T18:38:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [December 17, 2008, 6:38pm UTC](https://forum.kirupa.com/t/ajax-trying-to-autosubmit-a-form/277824/1 "2008-12-17T18:38:17Z")

</div>

Hey Guys,

I’m trying to do some fancy AJAX stuff here where basically I need to hit a page that holds a form, populate all of the data in that form and then submit the form… In my JS I have this:

jQuery.post("/site.jsp",{  
arg1: data,  
arg2: data2,  
arg3: data3  
},

At the moment I know that my args are being passed through because I am throwing an alert displaying the data that is showing me what’s coming back and I’m getting my form with the values of them set properly, as well as the JS I added to that page to submit the form… So obviously the form isn’t submitting. If I could just get the form to submit it would be working fine. I can hit the site and submit stuff fine (auto submit isn’t working though when I hit the page in a browser, but when I press submit the data goes to my DB fine…)

I know this HAS to be a simple fix, but I can’t figure it out, can anyone help me?

Thanks,

–d
