dillieo
08-08-2002, 03:42 PM
Greets all,
I have a page that has a couple forms hidden within layers. I use these multiple forms to funnel to a centralized form, which then calls the primary script to grab stuff from a database.
I'm trying to get the data of a form (via simple JavaScript) from the 'biblenav' form in the 'openmenu' layer and pass it to the root form 'query'. Here's what my JavaScript looks like:
function start_nav()
{
bookindex = document.openmenu.biblenav.book_select.selectedIndex;
chapterindex = document.openmenu.biblenav.chapter_select.selectedIndex;
versionindex = document.openmenu.biblenav.version_select.selectedIndex;
commindex = document.openmenu.biblenav.notes_select.selectedIndex;
book = document.openmenu.biblenav.book_select[bookindex].value;
chapter = document.openmenu.biblenav.chapter_select[chapterindex].value;
verse = 0;
version = document.openmenu.biblenav.version_select[versionindex].value;
commtype = document.openmenu.biblenav.comm_select[commindex].value;
document.query.book.value = book;
document.query.chapter.value = chapter;
document.query.verse.value = verse;
document.query.version.value = version;
document.query.commtype.value = commtype;
document.query.submit();
}
Problem is that when I start the function. I get the error message "document.openmenu.biblenav is null or not an object"
Any thoughts would be greatly appreciated.
I have a page that has a couple forms hidden within layers. I use these multiple forms to funnel to a centralized form, which then calls the primary script to grab stuff from a database.
I'm trying to get the data of a form (via simple JavaScript) from the 'biblenav' form in the 'openmenu' layer and pass it to the root form 'query'. Here's what my JavaScript looks like:
function start_nav()
{
bookindex = document.openmenu.biblenav.book_select.selectedIndex;
chapterindex = document.openmenu.biblenav.chapter_select.selectedIndex;
versionindex = document.openmenu.biblenav.version_select.selectedIndex;
commindex = document.openmenu.biblenav.notes_select.selectedIndex;
book = document.openmenu.biblenav.book_select[bookindex].value;
chapter = document.openmenu.biblenav.chapter_select[chapterindex].value;
verse = 0;
version = document.openmenu.biblenav.version_select[versionindex].value;
commtype = document.openmenu.biblenav.comm_select[commindex].value;
document.query.book.value = book;
document.query.chapter.value = chapter;
document.query.verse.value = verse;
document.query.version.value = version;
document.query.commtype.value = commtype;
document.query.submit();
}
Problem is that when I start the function. I get the error message "document.openmenu.biblenav is null or not an object"
Any thoughts would be greatly appreciated.