gesto
Posts: 42
|
| Posted: 06/17/2005, 4:56 AM |
|
ok, that´s simple...
first add a hidden field inside your form and name it 'AutoStart', then add this code anywhere in the body of your html page:
<embed id="Sound" src="ohoh.wav" hidden="true" autostart="{AutoStart}" enablejavascript="true">
the next step is to add the code bellow in the 'before show' event of your form to change thje value of 'AutoStart' field in case any error is found in the page:
if YourFormName.Errors.Count > 0 then
YourFormName.AutoStart.value = "true"
else
YourFormName.AutoStart.value = "false"
end if
|