Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function autoSave(){
- //alert('clled auto save function');
- console.log('Time duration check');
- var form = document.initPetitionerWizardForm;
- $.ajax({
- url: 'LoadPetitionerWizardPage1.do',
- dataType: 'json',
- type: 'post',
- contentType: 'application/json',
- data:$(form).serialize(),
- success: function( ){
- console.log('success');
- },
- error: function( ){
- console.log( 'something wrong');
- }
- });
- //e.preventDefault();
- }
- $(document).ready(function(){
- setInterval(autoSave,5000);
- });
- <action path="/loadPetitionerWizardPage1"
- name="initPetitionerWizardForm"
- type="web.clerk.webapp.oop.action.LoadPetitionerWizardPage1Action">
- <forward name="FAILURE" path="/Home.jsp" contextRelative="false"/>
- <forward name="SUCCESS" path="/PetitionerWizard1.jsp" contextRelative="false"/>
- </action>
Add Comment
Please, Sign In to add comment