Results 1 to 9 of 9

Thread: DHTML Window Widget: minimized/create(open) conflict

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

    Default DHTML Window Widget: minimized/create(open) conflict

    1) Script Title: DHTML Window Widget

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: oddball effect when clicking link to open a 'pop-up' window that has been minimized...

    ________________________________

    from the demos provided at the DHTML Window Widget's page the following oddball effect can be 'demonstrated' - at least for "Window 3 (Ajax content)" and "Window 4 (Content from a DIV on the page)"

    [ don't know if effect would be present in "Window 1 (iframe content)" and "Window 2 (inline content)" examples IF they didn't open upon page load - didn't test such ]
    ________________________________

    EFFECT:
    when link is clicked to "Create/ Open Window" for a window that has already been opened and has a current state of 'minimized' the window is essentially 'restored' - BUT the 'restored' window still displays the 'restore' control button when it should be displaying the 'minimize' button > so a user has to "waste" a click on the displayed 'restore' button to get it to properly display (with associated functionality) the 'minimize' button...

    did that make sense?
    - here - i'll spell it out...

    --- in demo click link to "Create/ Open Window 4"
    --- then minimize the 'popup' window that opened
    --- now click link to "Create/ Open Window 4" again
    as you see it essentially 'restores' the 'popup' window but now with a defunct 'restore' button where a 'minimize' button should be...


    __________________________________________________
    possible solution....
    in the "open" function first (or a.s.a.p.) run a check to see if window is currently 'minimized' if so jump to 'restore' function - else run rest of open's function...

    - hope this helps

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm aware of this bug actually, though at the time was distracted and never got to fixing it. Most likely it'll be fixed the next time the script is updated.

  3. #3
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi there - any idea when update to include this fix might be released?

    OR...

    could you help me figure it out...

    early on in the open function i tried running a check (IF) on t.state=="minimized"
    - then IF is, tried to jump to restore function
    - and IF is NOT finish open function

    tried many different ways - but so far, none did the trick - any ideas?

  4. #4
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is my question directly above not understandable?????????

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by ooop View Post
    is my question directly above not understandable?????????
    So sorry king boss sir, we will get right on it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Lol at John. To the OP, yep, your question was understood, though you must realize script updates don't happen immediately. You'll just have to be patient. What you're asking in terms of the "OR" part is basically the same as addressing the bug, which as mentioned I plan to once I get the time.
    Last edited by ddadmin; 03-16-2007 at 10:54 AM.

  7. #7
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    much thanks - i'll be patient (btw > great work)

    _____________king ooop

  8. #8
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Just a heads up that the bug has just been fixed: http://www.dynamicdrive.com/dynamici...ndow/index.htm

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Weird functionality there, though.

    If it minimizes, you can still drag it around, but then if you reenlarge it, it jumps to the original spot, rather than expanding at the newly chosen spot.

    I'd disable dragging if minimized (or at least vertical dragging... maybe horizontal should remain).

    Additionally, to function like a real window, double clicking on the bar at the top would make it maximize/minimize, so you might want to add that functionality as well. Just on double click, do the same as the current existing button.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •