HighDots Forums  

Hey, Mick, one more time, please? (popup closer)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Hey, Mick, one more time, please? (popup closer) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jerry McEwen
 
Posts: n/a

Default Hey, Mick, one more time, please? (popup closer) - 06-10-2004 , 03:05 PM






Quote:
onblur="top.close()"
Mick
WAH! It's not working, Mick. The top frame body tag is now <body
onblur="parent.close()" leftmargin="8" topmargin="2" marginwidth="8">


It's at http://www.coolcats.com/flash.html, thanks!


Reply With Quote
  #2  
Old   
Mick White
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-10-2004 , 07:16 PM






Works for me.
What browser are you using?
Mick

Jerry McEwen wrote:

Quote:
onblur="top.close()"
Mick


WAH! It's not working, Mick. The top frame body tag is now <body
onblur="parent.close()" leftmargin="8" topmargin="2" marginwidth="8"


It's at http://www.coolcats.com/flash.html, thanks!

Reply With Quote
  #3  
Old   
Jerry McEwen
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-10-2004 , 09:59 PM



On Thu, 10 Jun 2004 19:16:57 -0400, Mick White
<mwhite13 (AT) BOGUSrochester (DOT) rr.com> wrote:

Quote:
Works for me.
What browser are you using?
Mick

Wow, no kidding! I'm using IE 6.0.2800.1106 and Firefox 0.8 on Win2000
Prof.

Just to make sure we are talking about the same thing: If a viewer
opens the popup window form the link at
http://www.coolcats.com/flash.html and then loses focus on the popup,
I want it to close. And you are seeing this happen?

I've seen IE break in several places on different computers, maybe
this is one of those times. Thanks again!


Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-10-2004 , 11:24 PM



"Jerry McEwen" <no.m (AT) il (DOT) thanks> wrote

Quote:
Just to make sure we are talking about the same thing: If a viewer
opens the popup window form the link at
http://www.coolcats.com/flash.html and then loses focus on the popup,
I want it to close. And you are seeing this happen?

What he was saying that "parent.close()" is not the same thing as
"top.close()". The latter is what he said to use, but you are using the
former.

Now, that said, if you click on the top frame of the popup window, it will
then work. This is just another case of frames being a morass of grief. The
frame cannot "blur" until it gets focus.

Gary




Reply With Quote
  #5  
Old   
Jerry McEwen
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-11-2004 , 08:49 AM



On Thu, 10 Jun 2004 22:24:45 -0500, "Gary White"
<reply (AT) newsgroup (DOT) please> wrote:

Quote:
"Jerry McEwen" <no.m (AT) il (DOT) thanks> wrote in message
news:e94ic05d5vlqqkkcmc2ij1f38v1k5ul840 (AT) 4ax (DOT) com...

Just to make sure we are talking about the same thing: If a viewer
opens the popup window form the link at
http://www.coolcats.com/flash.html and then loses focus on the popup,
I want it to close. And you are seeing this happen?


What he was saying that "parent.close()" is not the same thing as
"top.close()". The latter is what he said to use, but you are using the
former.

Now, that said, if you click on the top frame of the popup window, it will
then work. This is just another case of frames being a morass of grief. The
frame cannot "blur" until it gets focus.

Gary

Oops, thanks, so I was. I have two copies of these files and was
changing the wrong ones. I now have top.close, but it still fails for
me in both browsers. However, I can view source on the top frame
(opens in Notepad) and, when I close Notepad, it also closes the
popup; but if I just view the popup and then put focus on the original
window, the popup remains.

I hear what you are saying about the particular frame needing focus,
but it's just not working from here...but thanks for pointing out
that, that's a very good point I hadn't considered. Frames seemed
harmless enough in this circumstance, but I'm spending a lot of time
trying to get them to behave. I think I'll ditch the frames, thanks!


Reply With Quote
  #6  
Old   
Gary White
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-11-2004 , 11:19 AM



On Fri, 11 Jun 2004 07:49:46 -0500, Jerry McEwen <no.m (AT) il (DOT) thanks> wrote:

Quote:
I hear what you are saying about the particular frame needing focus,
but it's just not working from here...but thanks for pointing out
that, that's a very good point I hadn't considered. Frames seemed
harmless enough in this circumstance, but I'm spending a lot of time
trying to get them to behave. I think I'll ditch the frames, thanks!

The reason why it worked after viewing the source is that you had to
have given it focus to view the source. ;-) The frames just add another
level of complexity, without any real benefit here. I think you've made
a wise decision and your close routine should function properly now.


Gary


Reply With Quote
  #7  
Old   
Les Matthews
 
Posts: n/a

Default Re: Hey, Mick, one more time, please? (popup closer) - 06-11-2004 , 11:27 AM



You might be interested in trying Massimo's Windows Suite extension. It a
great extension for help to define interactivity between windows.

http://www.massimocorner.com/ (look under Dreamweaver behaviors)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.