Here's the structure of my page:
***myASPpage.asp***
(contains a frame inclosed in a div)
<frame id=myFrame>
|
V
***mySearch.asp***
(contains a form with two select fields)
<form id=searchForm>
fields: model & serial
|
V
***myScript.asp***
(a script that populates the serial field with distinct serial numbers based on the model number choosen)
On this page, I'm trying to reference the "serial" field from "searchForm" and get it's length using this code:
Expand|Select|Wrap|Line Numbers
- parent.frames['myFrame'].document.form('searchForm').getElementById('serial').options.length;
But, it gives me "null or object not found". Oddly, I've gotten my code to work perfectly fine if I don't use an iFrame and keep all the code from "myScript.asp" on the same page as "mySearch.asp". So, I'm thinking I'm not doing something correctly due to the frame.