I’ve been searching a lot for a good mootools script for a simple newsletter signup form with a one-line input field + send button.
Some things I’m trying to consider:
- form submission without reloading
- I don’t want to have to use jQuery or
Protoype or any other library outside
of Mootools (I already have Mootools
for some other parts of the site, and
adding more libraries to that would
create too much clutter I think?) - Trying to find one with nice but
simple effects (like the spinning
“loading” image when it’s
sending…but only found this for
jQuery/Prototype so far) - I’m using clean urls: .htaccess to
send the URI to index.php, which then
parses the URL and figures out what
php files to include to create each
page. In other words, I’m not sure
if there’s a way to do the
validation/insert entries into mysql
without messing with the URL?
Any help would be much appreciated, thank you!
You can use the
Ajax.Formmethod, found here – This is an ajax post/post-back method for storing your data.Here’s the skinny on the code:
HTML/CSS to use with this reference code:
Additional reference CSS:
Hope this helps.