Forum Moderators: open
function checkInput() {
var authors = "";
var middlename = "";
var lastname = "";
var option1 = getObject("option1");
var option2 = getObject("option2");
var option3 = getObject("option3");
var option4 = getObject("option4");
var option5 = getObject("option5");
var option6 = getObject("option6");
var option7 = getObject("option7");
var option8 = getObject("option8");
var option9 = getObject("option9");
var optionR = getObject("optionR");
var optionO = getObject("optionO");
var boxchecked = 0;
var category_list = '';
var current_category = '';
if (option1.checked ) {
boxchecked = 1;
category_list = 'NLP and Ontologies in Biomedicine';
}
if (option2.checked) {
boxchecked = 1;
current_category = 'Information Extraction in Biomedicine';
if (category_list == '') {
category_list = current_category;
} else {
category_list = category_list + ',' + current_category;
}
}
..."
with this code going on like this for a bit.
the error is on the line that is italicized. here is the error:
Error: option1 has no properties
Source File: file:///e:/www/dataentry.html
Line: 29
why is it doing this and how can i get around this? It seems to work fine in IE, but firefox refuses to run this script.
Lemme know if you guys need me to post up all the code, there's just a lot.
Thanks a lot for anyone that can help!
Anirudh
now, i realise that document.all does not work for firefox now but how do i change this to 'modernize' this code?
as you can tell, i'm quite new at javascript (as in started today).