Hi All,

i need a help, i need to submit a form through ajax call.When i click the 
submit button in one page means, with out reloading that page i need to 
submit a form, but that form is in next page... i.e please see the scenario 
to understand my requirment.

1) i have a submit button in page1.jsp, if i click the submit button in 
page1.jsp, i need to submit the form in page2.jsp, im submitting the form 
in page2.jsp body onload.

i tried this code but it not working

page 1: 

<script>

$.ajax({
  type: 'POST',
  url: *page2.jsp*,
  data: *"passing parameter"*,
  success: *success*,
  dataType: *dataType*
});

</script>

button onclick am calling tht ajax script.


page2.jsp

<body onload="document.getelementbyid(id).onclick">

issue: but form is not getting submit.

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/RYeEaO606dcJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to