Skip to Content
avatar image
Former Member

Display one the popup

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 16, 2005 at 09:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded