How to open new browser window on click of command button

Hi,
We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
Thanks in Advance,
Pradeep

Hi,
I have to load an applet viewer in the new browser window. I have URL to the PDF.
I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
How do i update the session scope variable using javascript?
Thanks and Regards,
Pradeep

Similar Messages

  • Opening New Browser window for click event on an image

    hi all,
    I want someone to help me out solving the problem of opening
    a new browser window on the mouse click event of an image or a
    button etc.... The new window would contain the datagrid details
    from the main window, but in an expanded form. If at all there is a
    solution, I even want to know whether there is anyway for sizing
    the poped up window,because I dont want the new poped up window to
    cover the entire screen.
    For getting better idea of my problem, the best example I
    could give is the popup window that appears when we click on the
    preview button while posting the message to the forum.
    Someone please do help me out in this regard.
    Thanks,
    amar.

    I'd definitely try to use a Flex popup... but the
    flash.net.navigateToURL method is a simple way to open a popup
    window in a new browser. You can pass any data needed by the new
    page using the URLRequest and/or URLVariables. The URL you navigate
    to could, of course, be another Flex application if necessary. I
    use this only when I need to open a popup window on another site,
    or an HTML formatter report or something similar.
    Concerning yourself with the size of the popup window may be
    a bad design choice also. I, for example, have my browser
    configured to open all popups in a new tab regardless of sizing
    constraints imposed by the designer. If it is absolutely necessary
    for you to have control over the size of your popup window, you
    should follow the advice given by others and use a Flex
    popup.

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Opening new browser window

    Hi,
    this piece of code use to work for opening a new browser, but now it has problem in opening browser window. There is no exception thrown, can anyone has suggestion whats wrong in this. I am using JRE1.3. I have a feeling that something is conflicting with IE (I tried on 5.0,5.5,6.0)
    thanks
    Syed
    try
    URL url = new URL(urlString);
    applet.getAppletContext().showDocument(url, "_blank");
    } // End of Try
    catch(MalformedURLException e)
    logs("Exception in opening new browser window: " + e);
    } // End of Catch

    Same here.
    Worked fine under IE5.x to IE6, JRE 1.3.x to 1.4. OS used were W2k and WinXP, no prob here.
    Now on some PCs the windows don't pop up anymore. No exception, no indicator of what's going wrong.
    Any hints?
    J�rgen

  • Open a new browser window when click a button

    Hi,
    I am working on Apex - 3.2.0.00.27.
    I want that when I click on a button, it should open a new browser window. I have tried to set property on the button , direct to url , html = _blank.
    but somehow it is not working.
    can you suggest something ?
    Thanks in advance.
    -Jasmine

    Hi,
    Even if i create different regions , it is not possible for me to place them between items.
    But anyways, I created a separate button in the same region and it works fine.
    Thanks Jari for your help.
    -Jasmine

  • Open new browser window after insert

    I am having a problem with form data being errased when users
    go back to a form after after the insert command. I have been
    trying to get the insertGoTo page to be opened in a new browser
    window. The tail end of the insert command code looks as follows.
    $Result1 = mysql_query($insertSQL, $squirrelcart) or
    die(mysql_error());
    $insertGoTo = "new_page.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    I have tried modifying the page name to:
    $insertGoTo ="MM_openBrWindow('new_page.php','page_name','
    This didn't work. Any suggestions on how to put the new_page
    in its own window, or is there a way to suppress the form page
    reload when going back ?

    Cody,
    It sounds like you are using <a href="#"
    Try using <a href="javascript:;"
    Or better yet, use David Powers' Smart Link:
    http://japan-interface.co.uk/webdesign/tools/index.html
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "csnodgr2" <[email protected]> wrote in
    message
    news:fmc4tf$feq$[email protected]..
    > I've got a site that has a list of names of deceased
    people. When a
    > viewer
    > clicks on a name I have a new browser window open that
    is a small memorial
    > page
    > specific for that person. This list is fairly long so
    the viewer has to
    > scroll
    > down a ways to get to the bottom. If the viewer clicks a
    name towards the
    > bottom and then closes that new browser window they have
    to scroll all the
    > way
    > back down and find where they left off. This of course,
    is assuming they
    > are
    > going in order to view the memorial pages for each
    person. Is there a way
    > to
    > make the "original page (with the list of names)" not
    refresh to the top
    > of the
    > page? I'm using and would like to continue using tables
    and not layers or
    > styles.
    >
    > Information can be sent onto [email protected]
    >
    > Any help would be much appreciated!
    >
    > Thanks,
    > Cody
    >

  • Open new browser window without buttons, menus or URl-field

    Hi All
    How do you make an APEX-link open a new browser window with no toolbar?
    Brgds
    Helge

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

  • Open new browser window without bookmark

    when i open a new browser window (from a bookmark or using cnt N) it opens with the list of my bookmarks along the left side of the screen forcing me to x out of the bookmark list so i can have a full browser window page.
    how can i get new pages to open without the list of bookmarks on the left side of the screen?
    thanks,
    todd

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

  • Send e-mail action sometimes opens new browser window w/error

    In a captivate 5 tutorial, to encourage feedback, I've added a click box with the action to send email. On Preview and Publish, this does open a new message in Outlook (if I have Outlook open) but sometimes it also opens a new browser window with the message "Navigation to the web page was canceled". Anyone have ideas on why this is occurring and how it can be avoided? Thank you.

    Hi there
    See if the link below helps
    click here
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Open New Browser Window Behavior Issue

    I've got a site that has a list of names of deceased people.
    When a viewer clicks on a name I have a new browser window open
    that is a small memorial page specific for that person. This list
    is fairly long so the viewer has to scroll down a ways to get to
    the bottom. If the viewer clicks a name towards the bottom and then
    closes that new browser window they have to scroll all the way back
    down and find where they left off. This of course, is assuming they
    are going in order to view the memorial pages for each person. Is
    there a way to make the "original page (with the list of names)"
    not refresh to the top of the page? I'm using and would like to
    continue using tables and not layers or styles.
    Information can be sent onto [email protected]
    Any help would be much appreciated!
    Thanks,
    Cody

    Cody,
    It sounds like you are using <a href="#"
    Try using <a href="javascript:;"
    Or better yet, use David Powers' Smart Link:
    http://japan-interface.co.uk/webdesign/tools/index.html
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "csnodgr2" <[email protected]> wrote in
    message
    news:fmc4tf$feq$[email protected]..
    > I've got a site that has a list of names of deceased
    people. When a
    > viewer
    > clicks on a name I have a new browser window open that
    is a small memorial
    > page
    > specific for that person. This list is fairly long so
    the viewer has to
    > scroll
    > down a ways to get to the bottom. If the viewer clicks a
    name towards the
    > bottom and then closes that new browser window they have
    to scroll all the
    > way
    > back down and find where they left off. This of course,
    is assuming they
    > are
    > going in order to view the memorial pages for each
    person. Is there a way
    > to
    > make the "original page (with the list of names)" not
    refresh to the top
    > of the
    > page? I'm using and would like to continue using tables
    and not layers or
    > styles.
    >
    > Information can be sent onto [email protected]
    >
    > Any help would be much appreciated!
    >
    > Thanks,
    > Cody
    >

  • Open new browser window

    it also opens in the parent window at the same time. For
    instance, I have a home page and when you click on a link I want it
    to open up in a new browser window. so i set the behavior to do
    this and it works. However, the first window also changes to the
    new link so I then have two windows open with the same link I just
    clicked on. The main window doesn't stay as the home page. any
    suggestions? Thanks.

    Also David Powers' Smart Link extension may come in handy:
    (2nd extension on the page)
    http://japan-interface.co.uk/webdesign/tools/index.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    Forum Posting Guidelines:
    http://www.adobe.com/support/forums/guidelines.html
    CSS Tutorials for Dreamweaver:
    http://www.adobe.com/devnet/dreamweaver/css.html
    ": Nadia : ** Adobe Community Expert **"
    <[email protected]> wrote in message
    news:[email protected]...
    > You need to add a "return: false" statement to the link
    so that it
    > doesn't open onto itself....
    > A better explanation can be found here:
    >
    http://apptools.com/rants/popups.php
    >
    >
    > Project seven has this niftly little app available
    (commercial - but it's
    > served me well over time :)
    >
    http://www.projectseven.com/products/prodtools/powertoys/powertoys_retfalse.htm
    >
    >
    > --
    > Nadia
    > Adobe® Community Expert : Dreamweaver
    > ----------------------------------------
    > CSS Templates |Tutorials |SEO Articles
    >
    http://www.DreamweaverResources.com
    > ~ Customisation Service Available ~
    >
    http://www.csstemplates.com.au
    > ----------------------------------------
    > Forum Posting Guidelines:
    >
    http://www.adobe.com/support/forums/guidelines.html
    > CSS Tutorials for Dreamweaver:
    >
    http://www.adobe.com/devnet/dreamweaver/css.html
    >
    >
    >
    >
    > "Alexandra Christensen"
    <[email protected]> wrote in message
    > news:[email protected]...
    >> it also opens in the parent window at the same time.
    For instance, I have
    >> a
    >> home page and when you click on a link I want it to
    open up in a new
    >> browser
    >> window. so i set the behavior to do this and it
    works. However, the first
    >> window also changes to the new link so I then have
    two windows open with
    >> the
    >> same link I just clicked on. The main window doesn't
    stay as the home
    >> page. any
    >> suggestions? Thanks.
    >>
    >
    >

  • Cache problem for servlet opening new browser window

    Requirement:
    I have JSP page say summary.jsp with link "print account summary"
    When user clicks on this link, new browser open with PDF document of summary.jsp
    This new browser window should not have address bar and toolbar.
    Solution:
    Servlet called PrintSummary which sets contenttype=application/pdf and sends the data to outputstream.
    href of link is
    Java script function is:
    function openWindow(url){
    window.open(url,'blank','toolbar=no')
    Problem:
    Since the URL of this new window is
    http:// host:portnumber/PrintSummary
    Even if I click the "Print summary" link for account2,
    being the same URL (http:// host:portnumber/PrintSummary) it accesses the existing page in the cache which is created for account 1.
    In href if I just use servlet url as
    I get the expected behaviour but then I don't have control on browser appearance and browser window will be with address bar and toolbar.
    The only option I could think of was changing URL as follows:
    <% String url ="javascript:openWindow('PrintSummary? var1="+ Math.random()+"')";
    So that URL is different all the time
    Is there any way to solve this problem?
    Thanks in advance
    M.

    I'd definitely try to use a Flex popup... but the
    flash.net.navigateToURL method is a simple way to open a popup
    window in a new browser. You can pass any data needed by the new
    page using the URLRequest and/or URLVariables. The URL you navigate
    to could, of course, be another Flex application if necessary. I
    use this only when I need to open a popup window on another site,
    or an HTML formatter report or something similar.
    Concerning yourself with the size of the popup window may be
    a bad design choice also. I, for example, have my browser
    configured to open all popups in a new tab regardless of sizing
    constraints imposed by the designer. If it is absolutely necessary
    for you to have control over the size of your popup window, you
    should follow the advice given by others and use a Flex
    popup.

  • Opening new browser window from View Library links

    On some of the documentation pages, e.g. http://www.oracle.com/technology/documentation/ias.html , a new browser window is opened using target=new_win in the HTML code. This window will be re-used if the user goes back and clicks on another, similar link. It's better to use target=_blank for this purpose, because that would ensure that a new browser window is opened every time.

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Opening new browser window from image swaps

    Hi all, does anyone know if it is possible to set a swapped
    image to open a new browser window on a click command? Any help
    woul dbe much appreciated. thank you in advance. :)

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Open New Browser window with "Server Behavior"

    I know how to open a link in a new browser window by going to
    the Behaviors panel. The site I'm working on is using PHP, so
    instead of a Behaviors panel all it shows is a "Server Behaviors"
    panel. Under the "Server Behaviors" there is't an option to open a
    link in a new browser window. Should I be looking someplace
    different or is there another way to add this function to a link?
    Thanks in advance for any help!

    horsethiefbasin wrote:
    > I know how to open a link in a new browser window by
    going to the Behaviors
    > panel. The site I'm working on is using PHP, so instead
    of a Behaviors panel
    > all it shows is a "Server Behaviors" panel. Under the
    "Server Behaviors" there
    > is't an option to open a link in a new browser window.
    Should I be looking
    > someplace different or is there another way to add this
    function to a link?
    >
    > Thanks in advance for any help!
    >
    Makes no difference whether youre working on a php site or an
    ordinary
    htm site you still open a new browser window in exactly the
    same way.
    windows>behaviours>open browser window

Maybe you are looking for