Chikara
12-14-2006, 04:44 PM
http://www.sbts-marketplace.com/BrianNewFeature/stepbased/java.asp
I'm attempting to use javascript to jump to fieldset tags on that page. Basically, the page is part of a registration form. That page has around 250'ish check boxes. The idea is to use the select feature at the top of the page to quickly jump to a major category. The problem is that it seems to work correctly in IE7 but not FF2. If I change the fieldset tages to anchors, it works in FF2 but not IE7. I'm completely out of ideas on this one. Here is the script that I'm currently working with.
function pageJump()
{
var arr = new Object();
arr = document.testing.pagejump.selectedIndex;
alert("The selected value is : " + document.testing.pagejump[arr].value);
alert(document.testing.pagejump[arr].value);
var lll = new Object();
lll = document.testing.pagejump[arr].value;
alert(lll);
document.getElementById(lll).focus();
}
Please note the alert()'s are just to make sure that it's looking at the correct element. I'm completely out of ideas here and really appreciate any help!
Thanks!
I'm attempting to use javascript to jump to fieldset tags on that page. Basically, the page is part of a registration form. That page has around 250'ish check boxes. The idea is to use the select feature at the top of the page to quickly jump to a major category. The problem is that it seems to work correctly in IE7 but not FF2. If I change the fieldset tages to anchors, it works in FF2 but not IE7. I'm completely out of ideas on this one. Here is the script that I'm currently working with.
function pageJump()
{
var arr = new Object();
arr = document.testing.pagejump.selectedIndex;
alert("The selected value is : " + document.testing.pagejump[arr].value);
alert(document.testing.pagejump[arr].value);
var lll = new Object();
lll = document.testing.pagejump[arr].value;
alert(lll);
document.getElementById(lll).focus();
}
Please note the alert()'s are just to make sure that it's looking at the correct element. I'm completely out of ideas here and really appreciate any help!
Thanks!