Guest_imported
New member
- Jan 1, 1970
- 0
Hi Guys,
I'd really appreciate some help from you. I have a page at that I'm having trouble with. It works fine with IE and with Netscape 6.2 onwards, but not with earier versions of Netscape.
The part to look at is at the bottom of the page where there is a drop down selector to choose the appropriate selection to add to the cart (Enhanced Simulation product).
Proper operation is when 'Add to Cart' button is clicked, without an appropriate selection made, then an alert comes up and prompts the user to select an option. If a selection is made in the drop down, and the 'Add to Cart' button is pressed, then the details relating to the selection are passed over to the cart by submitting the form.
The logic is accomplished by a function called simsubmit, located at the top of the HTML, see below:
note: the form is called 'sform', the drop down is called 'select'. The value 'none' is assigned to the default selection of the drop down, used to test for whether the product selection has been made.
function simsubmit()
{
if (document.sform.select.value=="none"
{
alert( "You need to select the simulation license first!"
;
}
else
{
document.sform.price.value=document.sform.select.value;
if (document.sform.select.value==375)
document.sform.product.value="{b}TARGET 3001! Light Simulation License{/b}";
else if (document.sform.select.value==995)
document.sform.product.value="{b}TARGET 3001! Pro Simulation License{/b}";
document.sform.submit();
}
}
The annoying thing is it works fine in IE and newest versions of Netscape.
OK so I'm willing to reward the person who first solves this one for me. A book or DVD/Video of your choice form Amazon if you get it sorted (up to order value of $50) and my thanks of course.
You can reach me directly at philip@puresoft.co.uk if you need further info.
Regards, Philip.
I'd really appreciate some help from you. I have a page at that I'm having trouble with. It works fine with IE and with Netscape 6.2 onwards, but not with earier versions of Netscape.
The part to look at is at the bottom of the page where there is a drop down selector to choose the appropriate selection to add to the cart (Enhanced Simulation product).
Proper operation is when 'Add to Cart' button is clicked, without an appropriate selection made, then an alert comes up and prompts the user to select an option. If a selection is made in the drop down, and the 'Add to Cart' button is pressed, then the details relating to the selection are passed over to the cart by submitting the form.
The logic is accomplished by a function called simsubmit, located at the top of the HTML, see below:
note: the form is called 'sform', the drop down is called 'select'. The value 'none' is assigned to the default selection of the drop down, used to test for whether the product selection has been made.
function simsubmit()
{
if (document.sform.select.value=="none"
{
alert( "You need to select the simulation license first!"
}
else
{
document.sform.price.value=document.sform.select.value;
if (document.sform.select.value==375)
document.sform.product.value="{b}TARGET 3001! Light Simulation License{/b}";
else if (document.sform.select.value==995)
document.sform.product.value="{b}TARGET 3001! Pro Simulation License{/b}";
document.sform.submit();
}
}
The annoying thing is it works fine in IE and newest versions of Netscape.
OK so I'm willing to reward the person who first solves this one for me. A book or DVD/Video of your choice form Amazon if you get it sorted (up to order value of $50) and my thanks of course.
You can reach me directly at philip@puresoft.co.uk if you need further info.
Regards, Philip.