Can anyone recommend an ajax code?

2 replies
  • WEB DESIGN
  • |
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
#complete #officially #site
  • 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.
    Signature
    How to Build A Great Landing Page
    W3Reports - News for Webmasters - Submit Your Press Release, Article, or News Tip Today
    Designer / Developer / Tech Support / HTML5 / CSS3 / jQuery / PHP / MySQL / API

    {{ 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 }}

Trending Topics