Here's what I'm trying to do:
--Create a popup window from the main window.
--Populate a text input field in a form on the popup with a value passed from the main window.
Here's my function, which is called by an onClick event in the main document:
Here's the link in the main document that calls the function
Here's the code from "inputtest.php"
The code works fine some of the time. However, sometimes I get the error message 'document.formID.endline is Null or not an Object'. There doesn't seem to be any pattern to the occurance of these errors.
I've been testing with I.E. and Mozilla. The code never works in Mozilla.
Ideas?
Thanks--
JL
--Create a popup window from the main window.
--Populate a text input field in a form on the popup with a value passed from the main window.
Here's my function, which is called by an onClick event in the main document:
Code:
function defineSelectionLimit(input){
var newwindow=window.open('inputtest.php', 'newwindow', 'width=550,height=550top=666,left=666');
newwindow.document.formID.endLine.value=input;
}
Here's the link in the main document that calls the function
Code:
<a href="#" onClick="defineSelectionLimit('$row[1]');"> $line </a>
Here's the code from "inputtest.php"
Code:
<Form NAME="formID" type="submit">
<Input TYPE="text" NAME="endLine">
</Form>
The code works fine some of the time. However, sometimes I get the error message 'document.formID.endline is Null or not an Object'. There doesn't seem to be any pattern to the occurance of these errors.
I've been testing with I.E. and Mozilla. The code never works in Mozilla.
Ideas?
Thanks--
JL