Event for web page unload

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Event for web page unload

    I have a flex application that needs to do a little clean up (acutally do a
    server post) when the user leaves the webpage. In java I could do it when
    getting an Applet Stopped. In ActiveX, I would just do it when the activeX
    window received the WM_CLOSE event. Is there anyway to do it from a flex
    application?

    markdemich Guest

  2. Similar Questions and Discussions

    1. CF code in unload event
      I have some CF code that I want to execute when a user leaves a page. I put it in a javascript OnUnload routine. However the code seems to be...
    2. datagrid page event not firing
      I am having trouble with a datagrid as part of a composite web control. In CreateChildControls, I rebind the datagrid to a datatable in a session...
    3. UnLoad Event
      Does a page either dump all control rendering html to the response buffer prior to the UnLoad event? Basically I want everything sent to the...
    4. how to add a page-event using C#
      When you select a control on page press f4 for properties list. Between all buttons on property you will see button events (it is 4 button from...
    5. Page Load Event Fires Twice
      This is a classic asp newsgroup. While you may be lucky enough to find a dotnet-savvy person here who can answer your question, you can eliminate...
  3. #2

    Default Re: Event for web page unload

    You will need to use a browser event, like onBeforeUnload, to call into the flex app through ExternalInterface.

    Google this, it is a common requirement. You will surely find some code.

    Tracy
    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139