Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.