For example, the button to add a customer calls:
window.open("AddCustomerToDatabase.pl", "right frame");
I also have a "show all customers" button that loads another Perl script which will retrieve all customers from a database and display them in nice table on the screen. This script also loads into the right frame, replacing the existing content.
The problem I have is that I notice that the window.open() function does not load a FRESH page. (Evidently, I dont see the IE status/progress bar at the bottom showing any activity).
For example, first I click "show all customers" and I see a table with 4 customers. Then I click "add customer" which loads a form (into the same right frame) in which I fill out the new customer information, and then submit it. Then when I click "show all customers" again, I still see the same table with only 4 customers, and not 5. Only when I click IE's "refresh" button will the updated table be displayed. I am using MySQL database, and I am positive that the submitted customer info is updated in the database immediately when i clicked submit. (I have checked that).
I find it weird that window.open() doesnt load a fresh page each time. It only loads a fresh page during that page's first load. Can someone suggest me a way to force a fresh load each time?
I thought about using window.location = http://blahblahblah.pl, but then there is no way to specify the target frame. Please help. Thanks.
Actually, I mentioned above that I used buttons just to make my explanation more simple. But I guess, it wasnt a good idea. Ok, so here's what I am REALLY trying to do.
My Menu.html (in left frame) has 2 sets of radio buttons:
@ 1 O A
O 2 @ B
O 3 O C
Currently, script 1B.pl is currently loaded in the right frame and shown on the screen because 1 and B were selected. Now, when I click on C, script 1C.pl should be loaded. After that, if I click on 3, then script 3C.pl should load. And so on...
This is why I cannot use regular HTML links for this purpose.