Steins
01-24-2008, 05:30 AM
Hello
I`m having a problem in the Microsoft Script Editor. I dont know how to program the save button to say "thank you for your registration" or something like that when i click on it. It only save the data in the form to the database, without clearing the fields that are filled.
Hope that somebody can help me :)
This is the source of the button that i click when i use the save button in the form.
*** The button is called Regi
</SCRIPT>
<BUTTON id=reg2
style="Z-INDEX: 2; LEFT: 8.888cm; WIDTH: 2.116cm; POSITION: absolute; TOP: 0.291cm; HEIGHT: 0.61cm"
tabIndex=94 MsoTextAlign="General">Regi</BUTTON>
<SCRIPT language=javascript event=onclick for=reg2>
try { if (MSODSC.DataPages.Count > 0)
if (MSODSC.CurrentSection == null)
MSODSC.DataPages(0).Save();
else
MSODSC.CurrentSection.DataPage.Save(); }
catch (e)
{ alert (e.description);}
</SCRIPT>
I`m having a problem in the Microsoft Script Editor. I dont know how to program the save button to say "thank you for your registration" or something like that when i click on it. It only save the data in the form to the database, without clearing the fields that are filled.
Hope that somebody can help me :)
This is the source of the button that i click when i use the save button in the form.
*** The button is called Regi
</SCRIPT>
<BUTTON id=reg2
style="Z-INDEX: 2; LEFT: 8.888cm; WIDTH: 2.116cm; POSITION: absolute; TOP: 0.291cm; HEIGHT: 0.61cm"
tabIndex=94 MsoTextAlign="General">Regi</BUTTON>
<SCRIPT language=javascript event=onclick for=reg2>
try { if (MSODSC.DataPages.Count > 0)
if (MSODSC.CurrentSection == null)
MSODSC.DataPages(0).Save();
else
MSODSC.CurrentSection.DataPage.Save(); }
catch (e)
{ alert (e.description);}
</SCRIPT>