Professional Web Applications Themes

Close window without warning dialogue? - Macromedia Dreamweaver

I have a flash movie in a HTML page. When one button is clicked, it launches a blank window and loads another html page. That html page has a form on it, that submits data to a database and then redirects to a 'thankyou' page. I want the thankyou page to close after 10 seconds. The code I have tried always pops up the warning (this page is trying to close... blah blah) but I want to close the window without the warning. I was under the impression that this sub window (spawned frmo the main window) would be ok ...

  1. #1

    Default Close window without warning dialogue?

    I have a flash movie in a HTML page.
    When one button is clicked, it launches a blank window and loads another
    html page.
    That html page has a form on it, that submits data to a database and then
    redirects to a 'thankyou' page.
    I want the thankyou page to close after 10 seconds.
    The code I have tried always pops up the warning (this page is trying to
    close... blah blah) but I want to close the window without the warning.
    I was under the impression that this sub window (spawned frmo the main
    window) would be ok to do that with - but my code doesn't seem to agree.
    Can anyone offer me a pointer on how to do this?

    My code:

    function closeMe(){
    var timeval = 5000;
    var t = setTimeout("this.close()",timeval);
    }

    <body onLoad="closeMe()">


    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  2. #2

    Default Re: Close window without warning dialogue?

    Hi Chris,
    Actually, it works perfectly in Mozilla!
    Just not Explorer then... dammit!

    Oh well, I guess it will have to do.
    Unless you have any suggestions?
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  3. #3

    Default Re: Close window without warning dialogue?

    Wish I did. Sorry about that :-(

    Best regards,
    Chris

    "RobGT" <roblighthouseuk.removeme.net> wrote in message
    news:bf6iqi$7f1$1forums.macromedia.com...
    > Oh well, I guess it will have to do.
    > Unless you have any suggestions?

    Chris In Madison Guest

  4. #4

    Default Re: Close window without warning dialogue?

    Does this help?
    [url]http://www.macromedia.com/cfusion/tipsubmission/tip_detail.cfm?tipid=511[/url]


    "RobGT" <roblighthouseuk.removeme.net> wrote in message
    news:bf6iqi$7f1$1forums.macromedia.com...
    > Hi Chris,
    > Actually, it works perfectly in Mozilla!
    > Just not Explorer then... dammit!
    >
    > Oh well, I guess it will have to do.
    > Unless you have any suggestions?
    > Rob [url]http://robgt.com/[/url]
    > Extensions: [url]http://robgt.com/products/index.asp[/url]
    > Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    > Blog: [url]http://blog.robgt.com/[/url]
    >
    >

    Les Matthews Guest

  5. #5

    Default Re: Close window without warning dialogue?

    Without trying that code (I have done this a different way now) I would say
    that it would definitely help!
    Many thanks!
    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

Similar Threads

  1. Close window
    By wilco in forum Dreamweaver AppDev
    Replies: 4
    Last Post: April 29th, 09:16 PM
  2. close my project that is in a browser window (close this window)
    By Carlos Gonçalves in forum Macromedia Director Lingo
    Replies: 2
    Last Post: November 14th, 02:24 PM
  3. MIAW forget window vs. close window
    By Mythic Wave in forum Macromedia Director Lingo
    Replies: 2
    Last Post: October 7th, 01:16 AM
  4. Show Message close dialogue "X"
    By stuff@fxgroup.ltd.uk in forum FileMaker
    Replies: 5
    Last Post: July 25th, 08:50 PM
  5. window sizing & close this window code
    By Evertjan. in forum ASP
    Replies: 0
    Last Post: July 16th, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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