Click to See Complete Forum and Search --> : how to call a page from cgi


zwirley
03-12-2003, 02:41 AM
Was wondering if this is allowed:
window.parent.location = "/cgi-bin/transList.cgi"

I want to load the page from cgi when the user presses a button. I know I can specify it on the action attribute of form tag but I'm calling another cgi on the action.

Is this possible or only the action attribute accepts the "cgi" call??

Thanks.

gil davis
03-12-2003, 06:10 AM
Was wondering if this is allowed:It is valid syntax.but I'm calling another cgi on the action.Then you have created a race condition for the window. Each command is trying to load a new page. The action of the form will load in the current window, but you are also trying to load a different page in the window's parent. Any page load woould destroy the "parent" relationship.