Avoid form refreshing(Html)?

  • lucyaurora
  • Born
  • Born
  • lucyaurora
  • Posts: 1

Post 3+ Months Ago

I'm developing carousel type webpage on each page I put some controls user want to select that page and post their comments, here all controls are working fine but the problem is due to carousel type while submitting the form the whole page refreshed and home page is displayed but I want after submit page should not refresh or user should stay on that page.

Note: I'm using Html and Php so vale should pass to php page to validate
  • Hob Bramble
  • Proficient
  • Proficient
  • User avatar
  • Posts: 351
  • Loc: Indiana, USA

Post 3+ Months Ago

I want to be sure I'm understanding properly: what you're attempting to do is allow the user to submit a form without the POST method refreshing the page, correct?

If so, I think the simplest solution would be to use a little AJAX in place of the standard HTML form submit markup - without getting into too much detail, there's a pretty solid tutorial here that should give you a basic idea of how to do it: http://www.openjs.com/articles/ajax_xmlhttp_using_post.php - Using POST method in XMLHTTPRequest(Ajax)

Hopefully that helps.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8413
  • Loc: USA

Post 3+ Months Ago

What is the method and action of that form?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.