Clickable url variable open new browser

Below put the variable floorplan[p] as the address in the url
and made
it clickable. Works fine.
I would like to open a new browser window when it is clicked.
Can't get "_blank" to work. Not sure where to place it or use
some other
code instead of "_blank"?
I used:
if(floorplan[p] != "none") {
myText = myText + "<b>floorplan:</b>" + (url =
"<a
href='"+floorplan[p]+"'>"+floorplan[p]+"</a>");
Thank you

Thanks for your response.
I'm learning actionscript and I'm not sure how to call the
link:
if(floorplan[p] != "none") {
myText = myText + "<b>floorplan:</b>" + (url =
"<a
href='"+floorplan[p]+"'>"+floorplan[p]+"</a>");
"kglad" <[email protected]> wrote in message
news:epog89$g0$[email protected]..
> use the asfunction to have your link call a flash
function that executes:
> getURL(url,"_blank");

Similar Messages

  • Open URL in a new browser from a JSF backing bean

    I want to use commandButton action in jsf to launch a new browser instead of using commandLink.
    How do you launch url in a new browser window by firing up a method in backing bean?
    So far I am able to launch a URL within the same browser window. Here is my code:
    In jsp file:
    <h:commandButton rendered="#{openDataList.valueModifiable}" value="link" action="#{openDataList.link}" />
    In backing bean:
    public void link()
         try{
         FacesContext faces = FacesContext.getCurrentInstance();
         faces.responseComplete();
         ExternalContext context = faces.getExternalContext();
         context.redirect("http://www....");      }
         catch(java.io.IOException e)
    ...

    with a commandButton i dont belive you can
    well there are ways you can use javascript window.open
    or you can use a commanLink ans set the target
    but from my understanding there is no way to open a new browser from the backing beans ( this is because this is a client function and your backing beans are on the sever )

  • Opening a URL in a new browser window

    Hello Experts,
    I am trying to open a dynamic url in a new browser window from a Portal application (travel and expenses). Basically, when a user clicks on the submit button, Badi IF_EX_TRIP_WEB_CHECK~USER_CHECK_CHANGES is called. In the BaDI, we have added code to concatenate a parameter to a url and then open a new browser window with that url. This works perfectly in r/3 using a tcode (pr_web_1200) but when I use the portal application under ESS, the window does not open and no error message is issued. We are using METHOD cl_gui_html_viewer->detach_url_in_browser. Any idea why this is not working through ESS in Portal? Is there some other method that we need to use? Any help is appreciated.
    Regards,
    Sal

    check....
    Re: Open Portal Transaction iView in new window *without* Browser window
    for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size.

  • 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

  • Encoder url not opening in browser.

    dear all,
    i have the link
    When i try to open this link the corresponding file is not opening in browser
    String file_str="http://www.testdomain.com/Test/TestFolder/12-Mar-2009/New Test File-Feb 09-Issue-6-v4-web.pdf"
    after encodeing using
    file_str = java.net.URLEncoder.encode(file_str);
    output is :
    http%3A%2F%2Fwww.testdomain.com%2FTest%2FTestFolder%2F12-Mar-2009%2FNew+Test+Fil
    e-Feb+09-Issue-6-v4-web.pdf
    but this is url not opening in browser (browser not decoding).
    plz suggest.
    thanx

    URLEncoder class is not meant to encode complete URLs. Checkout this ...

  • 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

  • Open URL Link in new browser window

    Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
    Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

    Jono, if you are still out there.  I am also having trouble with this function.  The button works just fine, but it does not open another browser window.  I am trying to keep my pdf open, and send them to a url.  That way they can come back to the form. Like you would with the target="_blank" function in javascript.
    What am i doing wrong?  I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect.  I put target="_blank" and set it to javascript on just about every option.  I have tried to go into the code on the xml source tab, no luck anywhere.  I have tried to just use a text field, no luck.
    Seems like everything I have tried has no effect.
    Hopefully you can tell me it is something simple...
    Thanks in advance.
    Jodi

  • Open url in a new browser via a button

    I have created a button within a region and set request='go'. I then have a branch that when request='go', it branches to a url. Is there a way to open a new window when it branches to that url? Basically, I'm trying to open a new browser to go to a specified url when a button is clicked.

    Yes no problem,
    call an javscript function, which open the new window. that function can get as parameter the item value (eg. the URl text)
    function callMyPopupTest(url)
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=1100,height=350");
    if (w.opener == null) w.opener = self;
    w.focus();
    this should work
    In this excample the URL is static for the button.
    If not you have to solve the problem inside the javscript function with getting the value of the item (the url text)
    document.getElementById('P21_URL').value;
    for that the javascript function parameter has to be the id(eg. name: P21_URL).
    hope that helps
    thorsten

  • 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

  • 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

  • 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.

  • Open new browser window from an Applet

    I have an applet that needs to initiate a new browser window to open and go to a specified URL. Can anyone help me with this?? Thanks in advance.

    http://developer.java.sun.com/developer/qow/archive/48/index.html

  • Opening new browser using button

    Hi there:
    I am trying to insert a link to a webpage which I would like
    to have open in a new browser. I selected 'Open URL or file',
    entered the URL [complete with http] and then selected 'New' from
    the drop down list. When I run the file [I have done this locally
    from my hard drive and am wondering if that may be the issue] and
    click on the button nothing happens.
    As a test I changed the URL to be the location for file and
    it opens the file fine. Do I need to wait until the video is
    implemented on the web before the link will work?
    Thanks!

    public class WindowsProcess
         public static void main(String[] args)
              throws Exception
              String[] cmd = new String[3];
              cmd[0] = "cmd.exe";
              cmd[1] = "/C";
              cmd[2] = "start";
              Process process = Runtime.getRuntime().exec( cmd );
              process = Runtime.getRuntime().exec( cmd );
    }When you run the above code you should get two open dos windows.
    Now just just enter some html filename and hit enter in each window. IE should start up separately in each window.
    Thats also what should happen if you specify the html file as the fourth parameter. A new process should be created and two separate windows should open with a browser in each.

  • 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.

  • Display PDF on opening new browser

    Hi Experts,
    Requriement: We need to open a new browser for dispalying PDF format converted from custome smartform. Currently I am able to view the PDF format on a new screen with the following code, but user want to see the same PDF format on new browser so that they can toggle between the screens for comparing data.
    Your answers would be really helpful. Please guide me how to achieve this through ABAP, we are using 4.7 version.
    Current code looks like this
    *--- convert OTF data
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
          IMPORTING
            bin_filesize          = lv_pdf_size
          TABLES
            otf                   = wa_job_info-otfdata
            lines                 = lt_pdf
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 3
            OTHERS                = 4.
    *--- convert RAW type to Unicode format - hexadecimal format
        LOOP AT lt_pdf INTO wa_pdf.
          ASSIGN wa_pdf TO <fs_line> CASTING.
          APPEND <fs_line> TO lt_pdf_uc_data.
        ENDLOOP.
    *--- load data to prepare URL
        CALL METHOD gv_html_viewer->load_data
          EXPORTING
            url          = gc_x
            type         = 'application'
            subtype      = 'pdf'
            size         = lv_pdf_size
          IMPORTING
            assigned_url = lv_url
          CHANGING
            data_table   = lt_pdf_uc_data
          EXCEPTIONS
            OTHERS       = 1.
    *--- display smart form
        CALL METHOD gv_html_viewer->show_url
          EXPORTING
            url = lv_url.
    Regards,
    Suman

    What you can do is create a new program just to display the PDF and attached a transaction code to it. In your main program, call the FM ABAP4_CALL_TRANSACTION ... STARTING NEW TASK to call it in the new session.
    You may use the FM DY_IS_EXTRA_IMODE_AVAILABLE before starting a new session to check if any session available.
    CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
      STARTING NEW TASK 'ZZ01'    " << Task Name
      EXPORTING
        tcode                         = 'ZZ01'.  "  << New Tcode
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Manipulation of Print form after generation

    I am using Adobe Forms as print forms within the SAP ERP 5.0 without WebDynpro. I have requirement that I need to manipulate the generated PDF file by adding additional attachment files to the PDF generated by the function module. Technically this se

  • Locks file on a file server

    Under Captivate 3 (as part of the full Tech. Comm. Suite), I'm authoring Captivate presentations on a Windows XP PC, and storing archive copies of the resultant .cp and stand-alone .exe files on a file server. These server copies are never opened/edi

  • Problem with navigateToURL to a certain frame

    Hi! I'm kinda new with Flash but I've managed to create a menu for a homepage. Now when I click on one of the menu links - the page opens up in a new window. But I don't want that at all. I want the page to open up in another frame called mainframe.

  • RFC as webservice and wild cards

    Hi experts, We have a custom RFC that fetches employee data based on import parameters like PERNR,FIRSTNAME,LASTNAME etc.This RFC is exposed as a WS by default(we are on ECC6.0) and is consumed by a non-SAP application. The problem is when the callin

  • Smart Forms with editable fields and signature field provided by Webdynpro ABAP

    Hi, i've created an interactive smart form.. Everything fine. The preview of the adobe livecycle designer looks excellent, every field is editable, the signaturefield is signable... But when i try to test my form using transaction SE80 i'll get a pdf