[Pro] E-Buy Form Validation....

Okay, I downloaded your source code and tested. With the following
substitute function, this does what you want it to.

function prepareForms(){
	var forms = document.forms;
	for (var i=0; i < forms.length; i++) {
		if(!forms[i].onsubmit){
			var f = forms[i]
			f.onsubmit = function(){return checkQuantityPickers(f)};
		}
	};
}

Walter

On Jun 17, 2010, at 2:38 PM, Roy Gardiner wrote:

I removed the code from the Before Body and added the new code to
Before /Body and uploaded the page.

Unfortunately, we still have the same situation, with the Order
going to the Cart without a size being selected.

Thanks.

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Do I still add the prepareForms(); before the closing tag?

Thanks.

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, you do.

Walter

On Jun 17, 2010, at 3:16 PM, Roy Gardiner wrote:

Do I still add the prepareForms(); before the closing tag?

Thanks.

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s a better view of the code:

function prepareForms(){
    var forms = document.forms;
    for (var i=0; i < forms.length; i++) {
        if(!forms[i].onsubmit){
            var f = forms[i];
            f.onsubmit = function(){return checkQuantityPickers(f)};
        }
    };
}

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks so much Walt.

It’s working as required now.

Best regards,

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Glad to hear it!

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Whoops, I spoke too soon.

The “Select a Size” pop up shows up even if when choose a size, so nothing will go to the Cart. LOL.

Thanks.

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, different tack to getting the form parameter into the function
call:

http://pastie.org/1010095

Walter

On Jun 18, 2010, at 9:51 AM, Roy Gardiner wrote:

Whoops, I spoke too soon.

The “Select a Size” pop up shows up even if when choose a size, so
nothing will go to the Cart. LOL.

Thanks.

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The last code looks like the winner!!

Everything appears to work as it should.

Thanks again Walt, your assistance is greatly appreciated.

Best regards,

Roy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options