| Author |
How to do pop-up window in a form?
|
michelle Wang
Ranch Hand
Joined: Jan 12, 2004
Posts: 65
|
|
I have a form with 1 textfield and a button. When I click on the button, the system will base on the input of the textfield to search for result. The search result will be displayed in a pop-up window and the parent window does not change. I need to do nullable validation for the textfield. Now my code the function can work, but the search result display in the same parent window.How to make it to be a pop-up window? <html:form action="/action/CreateInvoiceRefQuotationAction" method="POST"> <logic:messagesPresent message="true"> <ul> <html:messages message="true" id="msg"> <li><bean:write name="msg"/></li> </html:messages> </ul> </logic:messagesPresent> <table> <tr> <td>Quotation Reference No.</td> <td><html:text property="ufQuotationID" size="25" maxlength="20" styleClass="normal"/></td> <td><html:submit styleClass="buttons">View Quotation</html:submit></td> </tr> </table> </html:form>
|
michelle Wang <br />SCJP 1.4
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
|
Specify target="_blank" in the html:form tag.
|
A good workman is known by his tools.
|
 |
michelle Wang
Ranch Hand
Joined: Jan 12, 2004
Posts: 65
|
|
Hi, thanks ! I change the validation from display error msg to display a error pop-up page, it works. [ December 07, 2005: Message edited by: michelle Wang ]
|
 |
 |
|
|
subject: How to do pop-up window in a form?
|
|
|