Stephanie
09-19-2002, 10:04 PM
Hello...thanx for taking the time to look at this post. Here's my question:
My page (index.htm) has a form (named "calc") that contains mortgage variables (ie. term, ammortization, interest, price, etc.) The user has the options to change the variable to be whatever they want but the textboxes have default values in them. The ONCLICK method of the SUBMIT button opens a popup window (calculator.html).
The ONLOAD method of the BODY tag in calculator.html calls "CalcPayment" which needs to reference the form variable in index.htm and then calculate the monthly mortgage payments.
I am using"opener.document.calc.variablename.value" and while it works, I can't seem to change the value from the default. If I do the browser will either give me a javascript error:
"Line8: Error: opener.document.calc.variablename.value is null or not an object"
And then sometimes it will display the default value, or sometimes it will display only one of the changed variables.
BUT that's the big thing! I want the user to be able to change the variables, push the Calculate(SUBMIT) button, and update the popup window without having to close it....but I get errors like above.
I've put the page off of a site for you to take a look at...feel free to check out the source code, and ANY suggestions would be greatly appreciated. I apologize if anything is unclear...let me know and I'll do my best to clarify...
http://www.darinbaxandall.com
Thanx,
Steph
My page (index.htm) has a form (named "calc") that contains mortgage variables (ie. term, ammortization, interest, price, etc.) The user has the options to change the variable to be whatever they want but the textboxes have default values in them. The ONCLICK method of the SUBMIT button opens a popup window (calculator.html).
The ONLOAD method of the BODY tag in calculator.html calls "CalcPayment" which needs to reference the form variable in index.htm and then calculate the monthly mortgage payments.
I am using"opener.document.calc.variablename.value" and while it works, I can't seem to change the value from the default. If I do the browser will either give me a javascript error:
"Line8: Error: opener.document.calc.variablename.value is null or not an object"
And then sometimes it will display the default value, or sometimes it will display only one of the changed variables.
BUT that's the big thing! I want the user to be able to change the variables, push the Calculate(SUBMIT) button, and update the popup window without having to close it....but I get errors like above.
I've put the page off of a site for you to take a look at...feel free to check out the source code, and ANY suggestions would be greatly appreciated. I apologize if anything is unclear...let me know and I'll do my best to clarify...
http://www.darinbaxandall.com
Thanx,
Steph