Hello,
I have been helped here with a code to show a 'Please wait' message while my web page is loading (mcsetup.php), I am using this code as part of the script,
<head>
<!—ref to ‘please wait message -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script>
<script>
$(window).load(function() {
$(".se-pre-con").fadeOut("slow");;
});
</script>
<!—ref to ‘please wait message -->
<body>
<div class="se-pre-con"></div>
.no-js #loader { display: none; }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url(http:
}
As you see it's triggered when the web page is loading for the first time.
Now, after the web page loads, there is a form to be filled out by the user, when the user enters the first field of the form, an onchange() function calls the same web page url added with the php variable resulted from the first field data entry (
window.location = "mcsetup.php?enterfn=<?php echo $fn ?>" + "&mc=<?php echo $mc ?>" + "&mold10=" + mold10js + "&neck10=" + neck10js;
), and the web page reloads again, but this time the previous 'Please Wait' code is not working.
Any ideas?
Thank you
What I have tried:
I tried to replace the
load(function()
in the 'Please Wait' message with the onchange() function of the user data entry field in the form, but it's not working.