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

Need a pop-up on "navigation->goto_page()

Hi All,

I would like to open a new window when the following code is executed:

navigation->goto_page( 'test.htm' ).

Right now, this just takes to 'test.htm' within the same Internet Explorer window. Is there a parameter I can use in this context to actually open a new (pop-up) window on navigation->goto_page command?

Thanks!

Roman D.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2005 at 07:12 AM

    Hi Roman,

    i am not really sure, but i think that there is no parameter which you can use (in your case with ...->goto_page). I solved this by using a button

    <htmlb:button id = "g_list"

    onClientClick = "window.open('fg.htm')" />

    Maybe this is a start for your solution.

    Thorsten

    PS

    If you have to deliver parameters to the new side, than you can use it like this:

    <htmlb:button id = "g_list"

    onClientClick = "window.open('fg.htm?PARAM_NAME=<%= PARAM_VALUE %>')" />

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2005 at 05:07 AM

    hi,

    Using the navigation component you'll not be able to open the page in a new window, a new window is primarily a client side function.

    Alternatively the target in the form tag has to be specified as = “_new” this will open a new window every time the form is submitted.

    In case you are using a button to trigger the said event you could consider using the OnClientClick as well as the OnClick event available…

    In the on client click event call the JavaScript as under.

    window.open('../ / test.htm,'_new' ,'width=380,height=155,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');

    and in the OnInputProcessing event, if it is required, you could navigate to some other page in the main window, or in the window your event was triggered in.

    *****************Example*************

    function open()

    {

    window.open('../ / test.htm>’,'_new' ,'width=380,height=155,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');

    }

    *********The HTMLB tag for the same

    <htmlb:button id="btn_text" text="go" onClientClick = "open();" onClick="btn_go"/></htmlb:form>

    *************OnInputProcessing********

    DATA: id TYPE string.

    IF event_id = cl_htmlb_manager=>event_id.

    DATA: htmlb_event TYPE REF TO cl_htmlb_event.

    htmlb_event = cl_htmlb_manager=>get_event( runtime->server->request ).

    id = htmlb_event->if_htmlb_data~event_id .

    CASE id.

    WHEN 'btn_text'.

    navigation->goto_page('SomeOtherPage.htm').

    ENDCASE.

    ENDIF.

    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.