Close popup window for swf file

The captivate movie plays properly in the popup window. The
"Close Movie" command does not automatically close the popup window
on some computers. Any sugestions?

You said, "Some customers?" does it work for other customers?
Is there a difference between the way two customers are viewing the
file? Compare the two, and you may get some hints.
thanks

Similar Messages

  • Popup window for downloading a file

    Hi,
    my dear users want me to do the impossible possible. My code generates an XML file which in time I displayed it in an Iframe in the application. When the standard popup window shows up, they can either Open, Save or Cancel it. This was allright.
    Now they want the file in a new window displayed (when they press Open), because opening the file in the same window means they leave the application and after reading the file, they have to start the application again. I do it like this:
    The code works perfect only with the Alert instructions. Once I delete it, the window is opened and inmediately closed. The popup window for the file does not show up.
    Thanks for your ideas.

    here is the code sample.
    1. user clicks a button in the main page , which will generate xml and show the same in a new window.
    page attributes
    display_url     TYPE     STRING                                                                
    file_mime_type     TYPE     STRING                                                                
    flights     TYPE     FLIGHTTAB     Table for SFLIGHT
    wf_xml     TYPE     XSTRING
    layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
          <%
      IF  display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
            window.open("<%= display_url%>").focus();
          </script>
          <%
      ENDIF.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    oninputprocessing code.
    data: cached_response type ref to if_http_response.
    data: guid type guid_32.
    CALL TRANSFORMATION (`ID`)
                SOURCE flights   = flights[]
                RESULT XML wf_xml.
    file_mime_type = 'text/xml' .
    create object cached_response type cl_http_response exporting add_c_msg = 1.
      cached_response->set_data( wf_xml ).
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = file_mime_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 180 ).
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate runtime->application_url '/' guid into display_url.
      cl_http_server=>server_cache_upload( url      = display_url
                                           response = cached_response ).
      return.
    2.user clicks a button in the main page , which will generate xml and present the user with a option to save locally or cancel. (in this case no additional browser window will be opened - only a popup and also the main page is not affected)
    layout code:
    same as option 1.
    oninputprocesing code.
    everything is same except change
    file_mime_type = 'text/xml' .
    to
    file_mime_type = 'application/oct-stream' .
    Note: wf_xml is of type xstring which holds the xml stream.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • How to disable Ctrl+W or Ctrl+C and Tab for .swf file

    How to disable Ctrl+W or Ctrl+C and Tab for .swf file
    ctrlKey = false; in KeyBoardEvents but how to apply it to the stage.

    Hello siva,
    Can I have what code return on your file..So that I can help some what
    Regards
    Kiran

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        DATA lo_window_manager TYPE REF TO if_wd_window_manager.
        DATA lo_api_component  TYPE REF TO if_wd_component.
        DATA lo_window         TYPE REF TO if_wd_window.
        lo_api_component  = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window         = lo_window_manager->create_window(
          window_name          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          button_kind          = if_wd_window=>co_buttons_yesno
          message_type         = if_wd_window=>co_msg_type_none
          default_button       = if_wd_window=>co_button_yes
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • How to display the Get info window for a file or folder

    Hello,
    How can I display the Get Info window for a file or folder using Applescript - instead of selecting it in the finder and using Command-I ?
    Thanks.
    lenpartico

    The item property that the Get Info was opened for is read only, so it doesn't look like you can just throw a file path at it. You could do something like telling the Finder to reveal the item, then keystroke the command, e.g.:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    reveal "Path:to:your:file"
    activate
    end tell
    tell application "System Events" to keystroke "i" using {command down}
    </pre>
    ... but this doesn't seem to be much different than the regular method. There are other methods to get various information, what are you wanting to do?
    Edit:
    Hmmm, I could have sworn (I do a lot of that these days) I tried Hiroto's method, but that does work. It still seems to be a roundabout way of doing something though.
    Message was edited by: red_menace

  • Popup window for data selection in maintenance view

    Hi,
    How to create popup window for data selection in maintenance view. For example when you go to view v_t510 in se16, there you will see a popup window to enter values. after you enter the values in that window, then data related to those values that you entered in the popup window will displayed.
    How can we do that for the custom maintenance view?
    Thanks in advance for your help guys.
    Regards,
    Srinivas.

    In your custom maintainace view, if you select the Data browser / Table view maintainace under the tab "Maint Status" as "Dispaly maintanence allowed with restriction" than system will give you popup to restrict by selection.
    Regards,
    Naimesh Patel

  • Window.print() not working for swf file in webpage?

    I have used the javascript window.print() function to print a webpage. But when i click a button to invoke this function the swf file stops then the screenshot is taken and then it resumes playing,, thus resulting in a blank page to be printed... What to do??

    Since it is not clear what your intentions are for wanting to print the screen, you could try just using the Print Screen of your keyboard (pc) and then paste the resulting screen capture into an image using Photoshop or Fireworks.

  • Save and close popup window

    I have a typical popup window launched using the builtin javascript:popupURL().
    I would like a Save and Close button on this popup window that does
    1. Submits the popup page so that changes are saved into session state
    2. Close the popup window
    3. Refresh the parent window so that updates in (1) are reflected
    What is the recommended way of doing this? I was thinking of the following URL redirect on the Save & Close button
    doSubmit('SAVE');
    window.opener.location.reload();
    window.close();Do I need a same-page branch on the popup page? If so, why? If not, why? ;-)
    Comments?
    Thanks

    This is a bit of javascript that I nicked which works well for me:
    -- 1. Add the folowing to your page header or create a new page template --
    -- (popup window template) and put it in the header section. --
    SCRIPT LANGUAGE="JavaScript">
    function loadinparent(url, closeSelf){
         self.opener.location = url;
         if(closeSelf) self.close();
    </SCRIPT>
    -- 2. Use the following to call the function. the true and false keeps the parent--
    -- window open or closed. Obviously set any values in the URL. --
    javascript:loadinparent(''<URL>'', true)
    eg. javascript:loadinparent(''f?p=&APP_ID.:40:&SESSION.::NO::P40_ID:'||ID||''', true)
    -- Inc the following comment in your header --
    -- Version 1.0
    -- Last Updated: May 18, 2000
    -- Code maintained at:
    -- http://www.moock.org/webdesign/javascript/
    -- Copy permission granted any use provided this notice is unaltered.
    -- Written by Colin Moock.
    Simon

  • How to make the stage transparent for SWF file being used in Dreamweaver

    I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given:
    in your html embedding code you need to set the wmode parameter to be "transparent"
    I'm wondering if this is the code in Dreamweaver or is this done in Flash. I'm working with CS5. Below is the code that matches the SWF file in Dreamweaver. I did change the wmode value from "opaque" to "transparent" and it didn't work.
    Thanks for any assistance.
    Sherri
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="650" height="400" id="FlashID" title="Convergence Gathering Title">
                 <param name="movie" value="Flash/gold_dust_title.swf" />
                 <param name="quality" value="high" />
                 <param name="wmode" value="opaque" />
                 <param name="swfversion" value="6.0.65.0" />
                 <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                 <param name="expressinstall" value="Scripts/expressInstall.swf" />
                 <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                 <!--[if !IE]>-->
                 <object type="application/x-shockwave-flash" data="Flash/gold_dust_title.swf" width="650" height="400">
                   <!--<![endif]-->
                   <param name="quality" value="high" />
                   <param name="wmode" value="opaque" />
                   <param name="swfversion" value="6.0.65.0" />
                   <param name="expressinstall" value="Scripts/expressInstall.swf" />
                   <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                   <div>
                     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                   </div>
                   <!--[if !IE]>-->
                 </object>
                 <!--<![endif]-->
               </object>

    Yes, change this to "transparent" in ALL the places where wmode is shown
    <param name="wmode" value="opaque" />
    Second, be sure that there is in fact nothing covering the entire stage, like a big white rectangle.
    Also, what is directly behind the .swf once it's on the Web page? If the background color of that page or the <div> that the .swf is in is white..... well then then .swf can have a transparent background but then the white from the Web page just shows thru.... so there's still a white background.
    Be sure there is a non-white background on the Web page...
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • Close popup window

    Hi experts,
    There is a popup window, with two button:
    SAVE
    CANCEL.
    i create the popup in this way:
    lr_popup = lr_window_manager->create_window(
        modal               = abap_true
        window_name         = 'WND_POPUP'
        title               = lv_text
        close_button        = abap_true
        button_kind         = if_wd_window=>co_buttons_yesno
        message_type        = if_wd_window=>CO_MSG_TYPE_NONE
        close_in_any_case   = abap_true
    lr_view_controller = wd_this->wd_get_api( ).
       lr_popup->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_yes
                       button_text       =  'Save'
                       action_name       = 'SAVE'
                       action_view       = lr_view_controller
                       is_default_button = abap_true ).
       lr_popup->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_no
                       button_text       = 'Cancel'
                       action_name       = 'CANCEL'
                       action_view       = lr_view_controller
                       is_default_button = abap_true ).
       lr_popup->open( ).
    My problem is that, if the user press the SAVE button,  then I have to make some checks, and if they don't pass, an error message should be created, and the popup shouldn't close.
    My question is: How can I do that?
    It's ok that if I use the paramter:
    close_in_any_case   = abap_false
    then the popup isn't closed, but how can I close it in the action handler method of the Close button (or the save when the cehcks are fine)
    Thnaks.
    N.

    Hi,
    When there are errors do you want to display them on popup. If there are errors and user closes the window(click on close) button then these errors are shown in parent view rather on popup window.
    Do you want to handle this also..
    In addition to making that close_button as abap_false. there is a method to handle on button close in if_wd_window interface.
    Try to use and write the close window code.
    If you donot want to show the errors in parent view, In the abobe metthod for window close, clear all the messages and then close the window.
    check out this link -
    Re: Form field validation messages in pop-up window
    Regards,
    Lekha.

  • Opening New Window for the file

    Hi Everyone,
    I have a requirement, where in the client has policy file, which is made to display when clicked on a link.
    But the problem is, the pdf policy file opens in the same window. If the user closes the pdf policy file window, the connection to the application will be lost and the data that is entered in the previous page is also lost.
    For the above reason, the client wants the file to open in a new window instead of in the same window. So that the connection to the application is not lost, even if the Policy file window is closed.
    Can anyone help me in accomplishing the above with list possible customization.
    Thanks in Advance.
    Regards,
    Pavan

    Hi!
    I have the same problem. I'm using a commandButton on af:table row that opens the file, stored in a column of that row.
    <af:column>
    <af:commandButton text="Show attachment"
    actionListener="#{backing_FileUpload.downloadFile}"/>
    </af:column>
    The code I'm using is:
        response.setHeader("Content-Disposition",
                           "attachement; filename=\"" + lsFilename + "\"");
        response.setContentLength((int) length.intValue());
        response.setContentType("application/x-download");
        try {
            InputStream in = loBlob.getBinaryStream();
            OutputStream out = response.getOutputStream();
            byte[] buf = new byte[1024];
            int count;
            while ((count = in.read(buf)) >= 0) {
                out.write(buf, 0, count);
            in.close();
            out.flush();
            out.close();
            loFC.responseComplete();
        } catch (IOException ex) {
            System.out.println(ex.getMessage());
            ex.printStackTrace();
        }This gets the file opened in the same window on the same jspx page. Ehat I would like to do is to open this file in a pop-up or a new browser window so the user can simply get back to the page from where he opened the file.
    I'm thinking about creating another empty jspx page just for showing files and send the file to this page but I would like to know if there is a better and more simple way to do that.
    Thank you!
    BB

  • Player for .swf files?

    Yes, I know that flash has its own .swf player the code of which can be got with the Publish function. However I wanted to ask if anyone knows of a player with controls (think Window media player or Youtube) which reads .swf files? The ones I have found so far really only read .flv file, to which I can't convert mine since my version (Flash 8) does not export to .flv, and any conversion attempt resulted in terrible loss of quality.
    So does anyone know if there's such a thing that can be embeded in HTML pages (not CMS)?

    The Flash Player is made for playing swf files.  What you said about publishing applies to html web page code, which embed Flash content and play it using the Flash Player that is made for the browser.  If you can view Flash in your browser, you can open an swf file in it as well, just as if you have the Flash player, you can play Flash files in it.
    The player itself is in your browser already (if you can view Flash content in web pages, your browser has the player).  The code you put in the web page simply tells the browser to play the file using the Flash player--and that is what Flash publishes... the code, not the player.  The web page does not have the Flash player published in it.

  • Javascript popup window for updatable report

    We have an updatable report and would like to have a pop-up window on one of the fields. What parameters do we pass to the pop-up so it can return the selected value to the correct row and column in the would report? What is the code in the pop-up to set the correct row/column in the updatable report?
    We are familiar with the process for form elements, but not for updatable reports.

    Hello,
    YOu just have to save the current working form field as a variable. So the popup javascript would look something like this.
    var gReturnElement;
    function customPopUp(pThis){
    gReturnElement = html_CascadeUpTill(pThis,'TD').getElementsByTagName('INPUT')[0];
    /*popup code here*/
    Then from the popup window you would use something like
    function customSetValue(pText){
    window.opener.gReturnElement.value = pText
    window.close();
    Is there a specifc reason you can't use the built in ones? It would be much easier for you to mantain compared to custom code.
    Carl
    Message was edited by:
    Carl Backstrom

  • Open a URL link in the same window as SWF file in indesign CS5

    Hello,
    I am trying to create a SWF file using indesign CS5.  I have created buttons and placed in URL links but they always open another window.  I would like to know if there is a way to have the URL open in the same window that the SWF file has been created.  I tried, putting "_self" to target it in the URL bar, but nothing works.
    Thanks in advance
    TK

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

Maybe you are looking for

  • How to block CIFed Transportation lane from ECC to APO

    Dear all, I want to know if there is any way to stop automatic creation of Transportation lane in APO when material master records, with  procurement type F: External Procurement and special procurement U, are registered or modified in ECC. Although

  • Proxies in XI

    Hi Experts Can anyone provide me some information on when and how to use proxies with XI. Waiting for your replies. Nalin

  • Differences between Headstart Oracle Designer and Headstart for Apps

    Hello, I would like to know where i can find an online demonstration of the product "Headtsart for Apps 11i" ? I have found the online demonstration of the product "Headtsart Oracle Designer" at the url : http://otn.oracle.com/products/headstart/head

  • Database adapter: how to invoke database functions

    Hi there, i'm new in this forums. My name is Giulio and i work in Italy. I'm trying to invoke a database functions inside a bpel process. The function is very simple, this is the source code: create or replace function FNC_WriteSailing(PEventCode in

  • Following a moving object with a mask

    Has anyone out there tried to follow an object with a mask in FCP? bascially I transferred a CAD video into MOV and imported it into FCP to edit it. NOw i have a "flickering"occuring over some of the objects in the video that I have been masking with