Can anyone help me out here... I am writing a page for a friend of mine and it's driving me up the wall. The javascript suddenly won't work in Firefox (FF), yet it works in Internet Explorer (IE) with no errors.
THEN, the table in IE looks all crappy, but in FF it looks fine. *sigh*
Here's the page:
Here's the Javascript I'm using:
I have a feeling the form action isn't getting set in FF, but then why is it working in IE?
KizMar
------------
THEN, the table in IE looks all crappy, but in FF it looks fine. *sigh*
Here's the page:
Here's the Javascript I'm using:
Code:
// Created for the pax.php form
// This funtion will fill in the package pricing when user selects a payment frequency
// p = payment frequency selected
function fillWith(p) {
// Create the base form object
i = document.paxreg;
switch(p) {
// Set all the text boxes to the prices selected
case 'month':
i.price1.value = '- $15.00';
i.price2.value = '- $25.00';
i.price3.value = '- $35.00';
i.price4.value = '- $45.00';
i.price5.value = '- $55.00';
break;
case 'quarter':
i.price1.value = '- $45.00';
i.price2.value = '- $75.00';
i.price3.value = '- $105.00';
i.price4.value = '- $135.00';
i.price5.value = '- $165.00';
break;
case 'year':
i.price1.value = '- $180.00';
i.price2.value = '- $300.00';
i.price3.value = '- $420.00';
i.price4.value = '- $540.00';
i.price5.value = '- $660.00';
break;
}
}
// This function will submit the form and create the action based on the package selected
function teeth() {
// We're going to set the action based on selected package...
// Create the base form object
i = document.paxreg;
if (i.package.value != 0) {
// They selected something so we can set the form action method
switch(i.package.value) {
case '1':
i.action = '[URL unfurl="true"]https://www.2checkout.com/2co/buyer/purchase?sid=100402&quantity=1&product_id=5';[/URL]
break;
case '2':
i.action = '[URL unfurl="true"]https://www.2checkout.com/2co/buyer/purchase?sid=100402&quantity=1&product_id=6';[/URL]
break;
case '3':
i.action = '[URL unfurl="true"]https://www.2checkout.com/2co/buyer/purchase?sid=100402&quantity=1&product_id=7';[/URL]
break;
case '4':
i.action = '[URL unfurl="true"]https://www.2checkout.com/2co/buyer/purchase?sid=100402&quantity=1&product_id=8';[/URL]
break;
case '5':
i.action = '[URL unfurl="true"]https://www.2checkout.com/2co/buyer/purchase?sid=100402&quantity=1&product_id=9';[/URL]
break;
}
// It worked, return to form and submit
return true;
} else {
// If the radio button hasn't been set throw an alert and return
alert('Please select a package!');
return false;
}
alert('Something else is broke...');
return false;
}
I have a feeling the form action isn't getting set in FF, but then why is it working in IE?
KizMar
------------