Just call the function that does your validation

function validateform(){
if (x!=''){
document.ViewInfo.submit();}
{
else{
alert('bad form, bad...');
}


In your button you would just call <a href="javascript:validateform();"></a>

Brook

At 06:42 PM 6/29/2003 -0500, you wrote:
>Say,
>I have this enter image that looks like this:
><a href="javascript:document.ViewerInfo.submit();"><img 
>src="images/EnterButton.gif" border="0">
>
>What I want to do is to also be able to call my form validation JavaScript 
>when the user submits the form. I tried using an onSubmit routine in the 
>Form tag, but that is not working. Any thoughs on this?
>
>Thanks,
>
>Bruce
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to