Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

How do I submit a form or a part of a form without a page refresh?

  •  When creating a form ensure that in the "form" element "onSubmit" attribute calls the JavaScript function that returns false.
  <form onSubmit="doSubmit();return false;" >
  <input type="text" id="myinput" /><input type="submit" id="btnSubmit" value="Save"/>
  </>
  o The other way is to associate a function with a form button in a similar way.
  <form onSubmit="doSubmit();return false;" >
  <input type="text" id="myinput" />
  <input type="button" id="button1" onClick="doSubmit()" value="Save"/>
  </>
  While you update the page it is recommended that you should wait to confirm that the AJAX update of the form data was successful before updating the data in your page. Otherwise, it is possible that the data is not updated properly and the user is not aware about it. It is suggested to display a loading message message when doing a partial update and after the successful AJAX interaction we can update the page.

Do you know that?

2% jobs posted on Elance are for Finance & Management Next

Articles:

Getting payments for Freelancers
1. Read how to register and get earned money

2. Open account within 5 minPayoneer sing up to get free $25