Javascript programming question

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Javascript programming question

Post by AbleMods » Wed Jan 23, 2008 5:18 pm

Ok, I admit it. My wonderful Google Map product page has a flaw.

It doesn't validate the Latitude and Longitude HTML fields to make sure somebody actually MOVED the marker.

Despite the screen saying in huge letters "Step 1: Move the red marker", some customers appear to be missing the entire point of the map.

So, I need to add (presumably in Javascript) a validation to the two HTML fields to prevent the add-to-cart. Any suggestions?

Ideally, I need the add-to-cart button disabled until the fields are populated when the marker is moved. But I'll take a popup dialog or anything else that'll get the job done. Remember, these fields are generated by AC7 from the Product Templates feature, so I don't have any .Net control over them that I know of.

Here's the product page:
http://www.solunar.com/Solunar-Times-In ... s-P95.aspx
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply