Can anyone recommend an ajax code?

by AffiliateFive 2 replies
Hey Warriors,

Does anyone have experience with Ajax? I would like to have my subscription forms ajax so when the visitor submits their info it disappears and is replaced with a thank you text?

Thanks,

Mike
#website design #complete #officially #site
Avatar of Unregistered
  • Profile picture of the author jpweb
    What platform/framework are you using? Any CMS or just straight code for your sites/signup page? I can help you out, just need some more details.
    {{ DiscussionBoard.errors[7994506].message }}
    • Profile picture of the author Brandon Tanner
      In my opinion, the easiest way to use Ajax is via jQuery...

      jQuery.ajax() | jQuery API Documentation

      ^ Check out the examples at the very bottom of that page.

      As soon as the subscription form info is submitted to the server, you can use the hide method on the "subscription form" div, and the show method for the "thank you message" div. Alternately, you could use the HTML method to replace the code in the "subscription form" div with the "thank you message" code.
      Signature

      {{ DiscussionBoard.errors[7994688].message }}
Avatar of Unregistered

Trending Topics