radio button Clusters not working in table with mals e buy form and quantity variation not showing up when protaculous action java script applied Help!!!
And as Walter suggested in a previous thread you would be well advised to get your form working before you start adding JS to hide the input items (radio clusters).
So redo without the JS to get the form working and once it works add the enhancements.
Here i have gotten check boxes and a radio set to work though not the need. I want the radio buttons in table to work as 2 sets 1 for color and 1 for size.
This is the radio problem by example. I can’t seem to separate the radio sets of color and size.
#3www.jholie.com/shoptest.html
When I apply Walt’s protaculous action a new problem arises where I loose the quantity field and cannot complete the mals e form order.
This is the script I have applied. Any advice with these two problems is appreciated as well. I know I am missing something obvious to a trained eye.
//
$(‘item6b’).observe(‘click’, function(evt){
var elm, opt;
if(elm = evt.findElement(‘img’)){
this.select(‘img’).invoke(‘setStyle’, ‘border:none; margin:0px;’);
elm.setStyle(‘border:0px; margin:0px 0 0 0 0px;’);
opt = elm.previous(‘input’);
opt.click();
$(‘message’).down(‘p’).update(‘You have selected’ +
opt.readAttribute(‘name’) + ’ #’ +
opt.getValue() );
}
}).select(‘input’).invoke(‘hide’); //hide the radio buttons
Do it without the script first and just use standard submit buttons (not a graphics) - until it works.
On http://www.jholie.com/shoptest2.html all the radios share the same cluster name of product[] - should be color. And the other cluster should be size. Your product info is being sent in your hidden field so you should not duplicate it as you are just now.
Just as a matter of interest: It might help your form to not use two check boxes for the colour selection as you have on http://www.jholie.com/shop.html as you have it the user could select both a black and a white colour at the same time, you should use two radio nuttons or a drop down menu for that option.
HTH
On Aug 19, 2012, at 3:53 PM, Jay Leyer wrote:
Dave,
Thanks again for your input. I have setup 3 test on this as shown here.
Here i have gotten check boxes and a radio set to work though not the need. I want the radio buttons in table to work as 2 sets 1 for color and 1 for size.
This is the radio problem by example. I can’t seem to separate the radio sets of color and size.
#3www.jholie.com/shoptest.html
When I apply Walt’s protaculous action a new problem arises where I loose the quantity field and cannot complete the mals e form order.
This is the script I have applied. Any advice with these two problems is appreciated as well. I know I am missing something obvious to a trained eye.
//
$(‘item6b’).observe(‘click’, function(evt){
var elm, opt;
if(elm = evt.findElement(‘img’)){
this.select(‘img’).invoke(‘setStyle’, ‘border:none; margin:0px;’);
elm.setStyle(‘border:0px; margin:0px 0 0 0 0px;’);
opt = elm.previous(‘input’);
opt.click();
$(‘message’).down(‘p’).update(‘You have selected’ +
opt.readAttribute(‘name’) + ’ #’ +
opt.getValue() );
}
}).select(‘input’).invoke(‘hide’); //hide the radio buttons
Thanks you are correct. I really do want radio button as you see at www.jholie.com/test2.html but mals ebuy form is effecting them as it seems to see it as only one cluster.
Thanks you are correct. I really do want radio button as you see at www.jholie.com/test2.html but mals ebuy form is effecting them as it seems to see it as only one cluster.