I have a basic page which has a PHP form. It creates a record and uploads a picture.
When they user clicks submit, I need it to display a "loading" notice of some description.
I was using this:
<script type="text/javascript">
var ray={
ajax:function(st)
{
this.show('load');
},
show:function(el)
{
this.getID(el).style.display='';
},
getID:function(el)
{
return document.getElementById(el);
}
}
</script>
<style type="text/css">
#load{
position:fixed;
z-index:1;
border:3px double #999;
background:#f7f7f7;
width:400px;
height:300px;
margin-top:150px;
margin-left:-150px;
position:absolute;
text-align:center;
line-height:100px;
font-family:"Trebuchet MS", verdana, arial,tahoma;
font-size:18pt;
}
</style>
and then placed a div in the page but it shows the message right at the top of the screen. As the form is long, the user cannot see the message.
I need to create some sort of notice so users know the form is being processed.
Please help!!!! :-)