Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3981884
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:27:49+00:00 2026-05-20T05:27:49+00:00

I’ve been searching a lot for a good mootools script for a simple newsletter

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:27:50+00:00Added an answer on May 20, 2026 at 5:27 am

    You can use the Ajax.Form method, found here – This is an ajax post/post-back method for storing your data.

    Here’s the skinny on the code:

    $('myForm').addEvent('submit', function(e) {
        /**
         * Prevent the submit event
         */
        new Event(e).stop();
    
        /**
         * This empties the log and shows the spinning indicator
         */
        var log = $('log_res').empty().addClass('ajax-loading');
    
        /**
         * send takes care of encoding and returns the Ajax instance.
         * onComplete removes the spinner from the log.
         */
        this.send({
            update: log,
            onComplete: function() {
                log.removeClass('ajax-loading');
            }
        });
    });
    

    HTML/CSS to use with this reference code:

    <h3>Send a Form with Ajax</h3>
    <p><a href="demos/Ajax.Form/ajax.form.phps">See ajax.form.phps</a></p>
    
    <form id="myForm" action="demos/Ajax.Form/ajax.form.php" method="get">
        <div id="form_box">
            <div>
                <p>First Name:</p>
                <input type="text" name="first_name" value="John" />
            </div>
            <div>
                <p>Last Name:</p>
                <input type="text" name="last_name" value="Q" />
            </div>
            <div>
                <p>E-Mail:</p>
                <input type="text" name="e_mail" value="john.q@mootools.net" />
            </div>
            <div>
                <p>MooTooler:</p>
                 <input type="checkbox" name="mootooler" value="yes" checked="checked" />
            </div>
            <div>
                <p>New to Mootools:</p>
                <select name="new">
                  <option value="yes" selected="selected">yes</option>
                  <option value="no">no</option>
                </select>
            </div>
            <div class="hr"><!-- spanner --></div>
            <input type="submit" name="button" id="submitter" />
        <span class="clr"><!-- spanner --></span>
        </div>
    </form>
    <div id="log">
        <h3>Ajax Response</h3>
        <div id="log_res"><!-- spanner --></div>
    </div>
    <span class="clr"><!-- spanner --></span>
    

    Additional reference CSS:

    #form_box {
        float: left;
        width: 290px;
        background: #f8f8f8;
        border: 1px solid #d6d6d6;
        border-left-color: #e4e4e4;
        border-top-color: #e4e4e4;
        font-size: 11px;
        font-weight: bold;
        padding: 0.5em;
        margin-top: 10px;
        margin-bottom: 2px;
    }
    
    #form_box div {
        height: 25px;
        padding: 0.2em 0.5em;
    }
    
    #form_box div.hr {
        border-bottom: 2px solid #e2e2e1;
        height: 0px;
        margin-top: 0pt;
        margin-bottom: 7px;
    }
    
    #form_box p {
        float: left;
        margin: 4px 0pt;
        width: 120px;
    }
    
    
    #log {
        float: left;
        padding: 0.5em;
        margin-left: 10px;
        width: 290px;
        border: 1px solid #d6d6d6;
        border-left-color: #e4e4e4;
        border-top-color: #e4e4e4;
        margin-top: 10px;
    }
    
    #log_res {
        overflow: auto;
    }
    
    #log_res.ajax-loading {
        padding: 20px 0;
        background: url(http://demos111.mootools.net/demos/Group/spinner.gif) no-repeat center;
    }
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have just tried to save a simple *.rtf file with some websites and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have a text area in my form which accepts all possible characters from
I'm looking for suggestions for debugging... If you view this site in Firefox or
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.