Results 1 to 4 of 4

Thread: How to get working extra close-button on popup?

  1. #1
    Join Date
    Nov 2007
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default How to get working extra close-button on popup?

    L.s.

    I use the dd-DHTML Window widget (v1.1) for my popups. My problem is to get the popup closed. I have two buttons aside of each other, one to get back, the other to close the pop up. These two in this specific way construct the basic yes or no question of the popup. Hence, the X-mark in the upper right corner may stay where it is and work.

    I am using the following lines of code inside the popup:
    Code:
    <div id="somediv" style="display:none"><p class="popup2">Text</p>
    <form>
    <input type="button" value="Terug" onclick="history.go(-1);" />
    <input type="button" value="Verder" onclick="close()" />
    </form>
    </div>
    
    <script type="text/javascript">
    var googlewin=dhtmlwindow.open("divbox", "div", "somediv", "Welkom", "width=400px,height=150px,resize=0,scrolling=0,center=1", "recal")
    </script>
    The first button works well, the second fails. Is there anybody who can tell me what to put in the onclick="close()" line? I tried everything there. Many thanks!

    Rob

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  3. The Following User Says Thank You to molendijk For This Useful Post:

    Oosterhoff (09-22-2014)

  4. #3
    Join Date
    Nov 2007
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Ha ha ha, I rejected a view on Feijenoord-Ajax yesterday trying almost all combinations with close, googlewin, () and other variables, feeling it must be easy but lacking the necessary knowledge. You're completely right. It works. Thank you very much.

    Rob

  5. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

Similar Threads

  1. DHTML Window Close Button/Back Button
    By riospace in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-18-2012, 11:21 PM
  2. Window Widget hide close button, close with esc
    By twright6 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-03-2012, 03:00 PM
  3. Replies: 1
    Last Post: 04-23-2011, 04:15 AM
  4. Button to loose focus after close of popup window
    By ismailc in forum JavaScript
    Replies: 2
    Last Post: 10-21-2009, 01:32 PM
  5. Replies: 0
    Last Post: 01-30-2006, 12:14 AM

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
  •