R
Rabel
I am a flash designer so I dont know a whole lot about the javascript
submit buttons (I may not even be describing it right sorry) but here
is the code I am using.
<IMG name="Checkout" value="Checkout" SRC="imagesButtons/
purchaseButton_r2_c2.jpg" onMouseOver="this.src = 'imagesButtons/
purchaseButton_r2_c2_f2.jpg'" onMouseOut="this.src = 'imagesButtons/
purchaseButton_r2_c2.jpg'"
onClick="JavaScript:document.forms[0].submit()">
That works but the problem is before I was using a <input
type="submit"> and this did the validation I set up like this
onSubmit="WAValidateAN(document.checkout_AN_Loc.x_first_name,document.checkout_AN_Loc.x_first_name.value,'-
Invalid character in first
name',true,true,false,true,'',document.checkout_AN_Loc.x_first_name,
0,true);">
Now there is a whole lot of text I cut out so if the code is a little
off dont worry - it works fine, but I dont know how to make it call
this. I thought since that I have told the form to submit and the form
is told that on submit do the validation - any help is apprieciated.
Also with the button there is no mouse change (to rollover mouse
state) any idea how I change that.
submit buttons (I may not even be describing it right sorry) but here
is the code I am using.
<IMG name="Checkout" value="Checkout" SRC="imagesButtons/
purchaseButton_r2_c2.jpg" onMouseOver="this.src = 'imagesButtons/
purchaseButton_r2_c2_f2.jpg'" onMouseOut="this.src = 'imagesButtons/
purchaseButton_r2_c2.jpg'"
onClick="JavaScript:document.forms[0].submit()">
That works but the problem is before I was using a <input
type="submit"> and this did the validation I set up like this
onSubmit="WAValidateAN(document.checkout_AN_Loc.x_first_name,document.checkout_AN_Loc.x_first_name.value,'-
Invalid character in first
name',true,true,false,true,'',document.checkout_AN_Loc.x_first_name,
0,true);">
Now there is a whole lot of text I cut out so if the code is a little
off dont worry - it works fine, but I dont know how to make it call
this. I thought since that I have told the form to submit and the form
is told that on submit do the validation - any help is apprieciated.
Also with the button there is no mouse change (to rollover mouse
state) any idea how I change that.