Skip to Content
author's profile photo Former Member
Former Member

Open iview in a popup

I created one jsp page. In this one user can enter a search term and click on the submit button, it will search in the data base and display the matching terms from the database. This will take care of one jsp page and some java programs.

Now my problem is when the user click on the submit button, I need to display the result in a popup. I tried some thing but it is not working. is there any way somebody can help me.

at last I did this way.

<hbj:button id="search"

text="Search"

onClick="onSearchButtonClicked"

onClientClick="window.open()"

Thsi will give me the result on the same screen and will open a new blank screen. I need to display the result in the new screen.

I was trying to give

onClientClick="window.open(result.jsp)" but it gives me error. result.jsp is my jsp page

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 04:58 PM

    There is probably more than one way to get that accomplished but here is a simple one.

    public void onSearchButtonClicked(Event event) {

    myForm.setAction("");

    myForm.addRawText("<script>");

    myForm.addRawText("window.open('irj/servlet/prt/portal/prtroot/project.component','newwindow','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,directories=yes,menubar=yes,copyhistory=yes,width=800,height=600')");

    myForm.addRawText("</script>");

    }

    Stephen

    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.