• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do pop-up window in a form?

 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specify target="_blank" in the html:form tag.
 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic