Forums
This topic is locked
Show a layer post form validation, pre form.submit
Posted 07 May 2004 14:31:10
1
has voted
07 May 2004 14:31:10 T WOODCOCK posted:
I want to show a hidden layer (containing a 'busy' gif) whilst for data is processing. I tried putting a line in above the form.submit(); as follows:showLayer('busylayer','','show')
This prevented the form submitting. The form validation is proven Javascript.
Any ideas?
Replies
Replied 23 May 2004 18:05:37
23 May 2004 18:05:37 Dave Thomas replied:
create a function to contain the layer code, and call it onSubmit.
im not very good at jscript, so wont even attempt to write the code for it, but you should be able to do what you want like that.
<pre id=code><font face=courier size=2 id=code>
<script language="javascript">
function myShow()
{
... your layer code
}
</script>
// bla bla bla
... your form code
<your submit button code.... onSubmit="myShow();">
</font id=code></pre id=code>
something along them lines should do it, fingers crossed.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
im not very good at jscript, so wont even attempt to write the code for it, but you should be able to do what you want like that.
<pre id=code><font face=courier size=2 id=code>
<script language="javascript">
function myShow()
{
... your layer code
}
</script>
// bla bla bla
... your form code
<your submit button code.... onSubmit="myShow();">
</font id=code></pre id=code>
something along them lines should do it, fingers crossed.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com