on 02-16-2005 8:20 PM
I am opening a new window(Popup) when click on the submit button. My question is, is there any way I can open the popup in the first time itself and the submit button on the popup? it is a JSP page. I need the whole thing in the new window.
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="contactSearchBean" scope="request" class="SearchBean" />
<hbj:content id="myContext" >
<hbj:page title="Initial Page">
<hbj:form>
<hbj:gridLayout>
<hbj:gridLayoutCell rowIndex="1" columnIndex="1">
<table>
<td>
<hbj:label
id="lblSearchTerm"
required="FALSE"
text="Enter Subject of Interest"
design="LABEL"
labelFor="inptSearchTerm"
/>
/>
. button
onClientClick="window.open('com.Search','newwindow','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,directories=yes,menubar=yes,copyhistory=yes,width=800,height=600')"
.
.
.
.
Is there any way some body can help me.
Hi TT,
I'm not sure about your aims, but if it is the simple question how to get a JSP to automatically pop up a new window when it is rendered for the first time, just put the JS code <i>window.open(...)</i> unconditioned into a <i><script language="javascript">...</i> block.
Hope it helps
Detlev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.