I need to test that the data are successfully send with GET method or wait 1 or 2 second, but it seems that the setTimeOut function doesn't work. And when I make an alert instate of setTimeOut it works.
<form class="form-inline"  method = "post" action="form1.php" id="formemail">
                            <div class="col-lg-6 col-md-7 col-sm-12 clearfix">
                                <div class="form-group desk-pull-left">
                                    <label class="sr-only"  for="NewsletterEmail">Email address</label>
                                    <input type="email" size="60" class="form-control" id="NewsletterEmail" name="NewsletterEmail" placeholder="Enter email">
                                    <span id="response">
                                                                                </span>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-5 col-sm-7 clearfix">
                                <div class="form-group desk-pull-left">
                                    <input type="submit" value="CONTINUE" class="desk-pull-right btn btn-primary btn-sm btn-continue">
                                </div>      
                            </div>
                        </form>
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script>
    $( document ).ready(function() {
        $( "#formemail" ).submit(function( event ) {
            if ( $( "#NewsletterEmail" ).val().length > 0  ) {
                var email = $( "#NewsletterEmail" ).val();
                var dataString = "pswd=NJGBUlS5y&url=proe.net&stamp=2014-11-17 21:40:00&ip=40.40.40.1&email=aaaaa@aaaa.com";
                $.ajax({
                      type: "GET",
                      url: "https://www.acads.com/promox/livefeed.php",
                      data: dataString,
                      dataType: "script",
                      cache: false,
                      success: function(){
                                alert('successs');
                             },
                      error:  function(){
                                alert('failed');
                             }      
                    });
                     //$('body').append('<h1 ></h1>');
                     //console.log('hello');
                    setTimeout( function () { 
                        $( "#formemail" ).submit();
                    }, 1000);
                    return;
            }else{
                alert( "Email field is Required!" );
                event.preventDefault();
            }
        });
    });
    </script>
Please can you have a solution for this?
 
     
     
     
    