The previous time in the project to use the foreground frame Easyui, the various components are almost all with JS to render, so that some page requests must be written with JS code.
But the JS request is not the same as the HTML request, such as I want to send a request to the server and then let the server to the client a new page, HTML request to complete such a request is very convenient but with JS is a little different, here is a way:
JS Code
- Window.location.href = "Adminaction_login.action?" + name + ' & ' + password;
In this way, you can convert to a new page.
This kind of JS to achieve the page jump way is very practical, but also can be used in other aspects:
JS Code
- window.parent.location.href= Address
This way you can jump out of the frame and go to other interfaces. For example, click "Logout Login" to return to the login screen.
JS requests the server and makes the page jump (GO)