My guess is because it's an input with type image so it's just going to submit
instead of honor the onclick. Try onSubmit in the form tag.
<FORM
ACTION="../cgi-bin/mycgi.pl"
NAME="testform"
onSubmit="return TestDataCheck()"
>
> Hi frnds,
>
> How to call a javascript function on
>
> <td><input type="Image" src="/images/search.gif" width="55"
> height="22" onclick="callActionMethod('searchForm','search');return
> true;" name="Searchbutton"></td>
>
> this function is not calling why?
>
> Rama
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324745
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4