The hidden frame technology has four steps:
1. the user interacts with the page through a visible frame, but cannot realize the hidden frame. When the user requests data from the server, the JavaScript function calls the hidden frame, which redirects the hidden frame to another page, more complicated: posting form data.
2. transmit data to the server.
3. Accept the server response. Because you are dealing with frames, this response is another page that includes the data returned by the request and some JavaScript to convert the data into a visible frame.
4. after the returned page is fully loaded, call the function in the visible frame to convert the data to the visible frame. when the data is in the visible frame, the display format is determined by frame.
Example of a hidden frame POST request:
Database creation:
CREATE TABLE Customer( CustomerId INT(11) NOT NULL AUTO_INCREMENT, Name VARCHAR(255) NOT NULL DEFAULT ‘‘, Address VARCHAR(255) NOT NULL DEFAULT ‘‘, City VARCHAR(255) NOT NULL DEFAULT ‘‘, State VARCHAR(255) NOT NULL DEFAULT ‘‘, Zip VARCHAR(255) NOT NULL DEFAULT ‘‘, Phone VARCHAR(255) NOT NULL DEFAULT ‘‘, Email VARCHAR(255) NOT NULL DEFAULT ‘‘, PRIMARY KEY(CustomerId) )ENGIN=MYISAM COMMENT=‘Sample Customer Data‘;
View code