Forum OpenACS Development: Re: Javascript in ad_form

Collapse
3: Re: Javascript in ad_form (response to 1)
Posted by Michael Aram on
sorry, the label line is ignored:

this will suffice:
{mysubmit:text(submit)
{html {onclick "alert('yeah');"}}
}

Collapse
6: Re: Javascript in ad_form (response to 3)
Posted by Brian Fenton on
Thanks a million for this Michael! I was just trying to do the same thing when I found your post. I used the following to get a Ok/Cancel Javascript confirm:

{mysubmit:text(submit)
{label "Proceed"}
{html {onclick "return(confirm('Are you sure?'));"}}
}

cheers
Brian