raoul
12-18-2002, 10:36 AM
Hi,
I have a page with 2 comboboxes. The items of combobox 2 depend on the selected item of combobox 1. Because there are over 50 options and each of them have over 30 options I decided to use a framed page and have the options for combox 2 loaded dynamically through an invisible page. When the form is submitted the next page opens at the top location (not in framed page!).
This all works fine. The problem is that when the user clicks the back button on the next page he will get errors. What happens is that the invisible page is trying to update combobox 2 while this part of the mainpage is not yet loaded (error message: top.mainpage.form1.cities is null or not an object).
I tried to put this part of the script in the invisible page in an if-condition:
if(top.mainpage.form1.cities ){
// code to update the combobox on the mainpage
}
but this has no effect, I still get the message?
Anyone knows how to fix this
Thanks,
Raoul
I have a page with 2 comboboxes. The items of combobox 2 depend on the selected item of combobox 1. Because there are over 50 options and each of them have over 30 options I decided to use a framed page and have the options for combox 2 loaded dynamically through an invisible page. When the form is submitted the next page opens at the top location (not in framed page!).
This all works fine. The problem is that when the user clicks the back button on the next page he will get errors. What happens is that the invisible page is trying to update combobox 2 while this part of the mainpage is not yet loaded (error message: top.mainpage.form1.cities is null or not an object).
I tried to put this part of the script in the invisible page in an if-condition:
if(top.mainpage.form1.cities ){
// code to update the combobox on the mainpage
}
but this has no effect, I still get the message?
Anyone knows how to fix this
Thanks,
Raoul