Forums

onsubmit

dwikristianto 13 Jun, 2007
hi all,

how can i assign an event handler for form "onsubmit" event ?

many thanks,
dwi
GreyHead 13 Jun, 2007
Hi dwi,

Have you tried the 'On Submit Code' box on the Form Code tab??

Bob
dwikristianto 13 Jun, 2007
hi bob,

thanks fo the response.
here is form tag after i insert something in the onsubmit code box

<form name="ChronoContact_main_form" method="post" action="index.php?option=com_chronocontact&task=send&chronoformname=main_form">


the onsubmit event still empty.
any clue ?

TIA,
dwi
GreyHead 13 Jun, 2007
Hi dwi,

Ah, I think for that you need the 'Form Tag Attachment' box on the General tab.

Bob
dwikristianto 13 Jun, 2007
hi bob,

thx for the fast response,
i've tried your suggestion by adding
window.alert('lha');
and found this in the form source

<form name="ChronoContact_main_form" method="post" action="index.php?option=com_chronocontact&task=send&chronoformname=main_form" window.alert(="" lha="" );="">


any other hint ?

TIA,
dwi
dwikristianto 13 Jun, 2007
OK. guys,

again sorry for disturbing all of you with my trouble.

the problem solved.
i have to add --- onsubmit=window.alert('bla bla bla'); --- in the form tag

again sorry and thanks.
This topic is locked and no more replies can be posted.