Close popup window from loaded movie

I have an html link which launches a flash movie into a
separate html window. The flash movie then loads another movie into
level 10. from this level, I am trying to close the flash movie and
its associated html page using the code:-
javascript:window.close();
This doesn't work. It closes level 10, but leaves level 0 and
the html page intact. How can I resolve it?
Any help would be very much appreciated.

I have carried out a simple test using the above code to
close a single swf with no loaded movies. This works. However, when
I try to load a movie into a higher level and close the whole movie
together with its html page from there, it doesn't work.
Thanks

Similar Messages

  • Html Popup window from shockwave movie.

    I want to open a .html page from a button in a director
    movie.
    I want to be able to specify the dimensions of the html popup
    in the script and specify it to have no toolbars or the like.
    Thanks for helping.

    In the HTML file that contains your Shockwave movie, put a
    JavaScript handler for the pop-up window. Then call the JavaScript
    Handler from the movie.
    Worked for me.
    /Rob

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

  • Photoshop cs6 popup windows can't move

    i installed photoshop cs6 than i open 2 document,when i drag out one ,the popup windows cant't move.
    it still keep in the Original place.
    i try reinstall also can't fix this problem,how can i fix it?

    Hi,
    I believe that was a bug in the windows version of photoshop 13.0, the original release, when using floating document windows and having the windows taskbar at the top or left side of the monitor.
    If you go to to Help>Updates from within photoshop cs6 to update to 13.0.1.2, then that should take care of it.

  • Reg: Internal popup window from multiple Views

    HI All,
        I have a Internal Popup window() from 5 views, I am able to open a window and close from view1(according to the docs from SDN).
    I tried using the same logic in remaining views(2,3,4,5).
    I am able to open but while closing the window event fired is going to CompController and return to the "Parent window" of the Popup. For view2,3,4,5 this not taken as a parent window. Please help me
    Thanks
    Nagaraju

    Hi Naga,
    Disable the parent iviews message area before calling the child(popup) window. Then you can get the message in the child(popup) window.
    According to documentation, oldest (parent) message area would be used if there are more than one windows (in a layout).
    see this thread also How to display messages in pop up windows?
    PradeeP

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • Open popup window from non graphic window

    Hi All,
    i'm trying to open a popupwindow of one of my classes, but i
    have no parent reference in the current class that i'm working
    with, how can i refer to the main application window?

    If you have a model for your application state, use this:
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="this.onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private function onApplicationComplete():void
    // Component map
    this.model.map["app"] = this;
    ]]>
    </mx:Script>
    </mx:Application>
    You will be able to refer to this.model.map["app"] as the
    parent of your popup window from anywhere in the application.

  • Open a Form in a popup window from a PL/SQL portlet

    Hi,
    I have a form that I want to open in a popup window from a URL in a PL/SQL portlet. What is the easiest way to do this? Are there any examples in here or on Metalink as to how to achieve this?
    Thanks,
    Steve West

    Is it a HTML page somewhere on a server with a HTML form on it? You can use javascript tags in ur link to do this maybe?
    javascript:window.open('http://<server name>/page.htm','mywindow','width=400,height=200')
    Obviously if this is a portal form you can also link directly to the show procedure no problems.

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • To close popup page from parent page .

    HI ,
    I want to close the popup page when my parent page is redirected to login page when session gets invalidated.
    with out calling any onload or any kind of functions in popup jsp page.
    In my application when i open a popup page from the main page ,when the session is getting expired parent page is redirected to login ,but still the popup page is in active state.i want it to be closed when the redirect happen for the parent page.
    Please help me in this matter.
    Thanks in advance.

    This is a Javascript question, not a JSP question.
    I'll give only a hint then: get hold of the handle of the popup window so that you can call close() on it.
    If you stucks, please continue at a JS forum. There are ones at webdeveloper.com and dynamicdrive.com. Once again: JSP is completely irrelevant in this question. Just base the problem on the HTML and JS output generated by JSP.

  • Close Popup window in webdynpro abap.

    Hi,
    Can anyone tell me ...how to close the popup window through the action in webdynpro abap . In my popup window there is a button(i.e 'UPDATE') apart from that  default 'OK' button , I want that when 'UPDATE' button is pressed, along with the action window should be closed. I dont want to close the window by pressing 'OK' button at the botton
    I have used following code to open the popup window.
    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            = 'POP_UP  WINDOW'
                       title                  = ''
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).

    Hi Dear,
    please try this code,
    DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.
    data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.
    data lo_window  type ref to if_wd_window.
    lv_view = wd_this->wd_get_api( ).
      lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).
       lo_window =  lv_wc ->GET_WINDOW( ).
       lo_window->CLOSE( ).
    Message was edited by: kumar.k kulanthaivel
    Regards,
    K. Karthikeyan

  • Popup window from webview

    When the user clicks on a link, the link won't open because the creator made it so that it opens in a new window. (popup window)
    set somes to "http://openwebim.org/webim"
    try
    loadPage from somes
    on error
    return
    end try
    that code is what i have. It loads the website on the webview. Now i need to have it open those links... somehow.

    You need to start at the beginning. We can't see your application, the window, webview, or your AppleScript from here. It is difficult to determine your question without a little bit (OK, a lot) of background information.

  • Don't close popup window on action

    Hello!
    I have a popup window, which contains another window from my component. I assigned actions to buttons. I need not to close popup after action in some cases. I want to decide in action's method. How can I avoid closing the popup?
    Edited by: Konstantin Milutin on Feb 24, 2010 12:55 PM

    Hi,
    when u are creating the pop up window then there is a parameter close_in_any_case set its value as abap_false.

  • 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

  • Closing browser window from Flash movie on CD

    I have to put a flash lesson I created on a cd for a client and while testing it I noticed that my exit button in the movie no longer seems to function.
    This is my close window function
        function closeWindow(evt:Event)
            var url:String = "javascript:window.opener=self; window.close()";
            var request:URLRequest = new URLRequest(url);
            try
                navigateToURL(request, "_self");
            catch (e:Error)
                trace("Error occurred!");
    Can anyone tell me why this wouldn't work when the movie is launched in a browser window from a CD?

    Fi it is at all possible you cannot do that with url request.
    Try using ExtrenalInterface class:
    ExternalInterface.call("javascript:...");
    It may not waork though depending on security settings and embed parameters.

Maybe you are looking for

  • Issue about 10.1 Sync with google contacts

    here's the situation: i bought my Q10 came with OS238, when i set google account up with IMAP, all the email, calendar, and contacts would sync ONCE, which means i got all my contacts from google on my Q10. however, when i add or modify any contact o

  • PO Approval workflow error

    I customized POAPPRV (PO Approval Workflow) and uploaded it successfully to DB. Now when I try to view the workflow for a new PO it gives following error Failed Activity PO Approval Top Process (Custom) Activity Type Process Error Name WFENG_ACTID Er

  • Turn off light icons in viewport

    Here's the quick 'n dumb question of the day:  How the heck do I turn off the light icons in the viewport?

  • Function and formula

    Hello Gurus,          for crystal report,  what is the difference between formula and custom function for returning value? Many thanks,

  • Index coalesce

    hi masters., this is egarding index management. i am facing the problem regarding one sql query with union and order by clause. when i remove order by clause, the query runs faster,than with order by clause. is this the problem regarding index???? i