Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default window closed?

    Hi, I'm developing an application, in one component I need to be able to tell
    if a window is open or closed. Basically I need to monitor when a user opens a
    hyperlink that opens an embedded PDF. I need to keep track of how simultaneous
    viewings of a particular PDF. So, I open a window, I increment a counter, easy
    enough. The user closes the window, how do I know he closed the window? in
    order to decrement the counter? any pointers appreciated.

    deadlikeme Guest

  2. Similar Questions and Discussions

    1. insert a frame or window into adobe acrobat or reader window
      Using Windows OS XP or Vista. Can you ad a frame or window into the main window to allow saving a document through another application? I have an...
    2. Child window property window.opener null after postback
      I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the...
    3. LocalConnection : to affect a closed window
      I'm new to LocalConnection function. I need to know if it's possible to use the LocalConnection to affect a closed window. ie. If the...
    4. dlopen is failing on Window XP works great on Window 2000
      Michael Davis <mdavis@sevasoftware.com> writes: Check the permission of the so file: $ ls -l...
    5. Refresh Parent window from child window causes problems
      Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence...
  3. #2

    Default Re: window closed?

    This code opens a window a writes to it:
    --------------------------------------------------- <script
    language='JavaScript'> function open_it() { var winpleasewait3; winpleasewait3
    = window.open('', 'win', 'width=250,height=120');
    winpleasewait3.document.open();
    winpleasewait3.moveTo(screen.width/2-150,screen.height/2-60);
    winpleasewait3.document.write('<html><head><title> Management Simulations
    Inc.</title><link rel=\'stylesheet\' href=\'/includes_cfm/MSI.css\'
    type=\'text/css\'></head><body><table><tr><td colspan=\'2\' class=\'table12\'
    align=\'center\'><strong>Now loading Today\'s Events</strong></td></tr><tr><td
    colspan=\'2\'>&amp;nbsp;</td></tr><tr><td colspan=\'2\'
    class=\'table14\'>Depending on the speed of your Internet connection, this may
    take 10 - 15 seconds. Please wait.........</td></tr><tr><td
    colspan=\'2\'>&amp;nbsp;</td></tr></table></body></html>'); } </script> Next,
    this codes checks to see if the above window (winpleasewait3) is open and
    closes it, if it is open. ---------------------------------------------------
    <script language='JavaScript'> if (winpleasewait3) winpleasewait3.close();
    </script> I hope this helps some. P.S. If you are using frames, address the
    name of the frame using 'parent' ('content' is the name of the frame in the
    code below):
    --------------------------------------------------------------------------------
    ------ <script language='JavaScript'> if (parent.content.winpleasewait3)
    parent.content.winpleasewait3.close(); </script>

    capsim1 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