What does this line mean??
Posted 15 July 2006 - 03:34 PM
It is a buy now feature in an auction program and the buy now was working, and I paid someone to do some upgrades, and now the buy now feature appears when listing an item, but doesn't appear to th buyer to make a purchase.
I am thinking the stuff lower down that is referenced out (*/) is because I didn't want paypal to be a condition, but an option, so it was changed.
if(isNaN(form.sb_buynow_price.value) || form.sb_buynow_price.value <= 0 )
alert("Please specify positive nonzero value for Buy Now Price");
/* if( form.paypal_id.value=='') ------disabled
alert("You must specify Paypal Id for buy now option to work");
if (!emailCheck (form.paypal_id.value) )
Posted 15 July 2006 - 03:36 PM
Technically they could be constants, but as a rule you capitalize those--and using constants makes no sense in this case.
Posted 15 July 2006 - 04:11 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users