Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-2008, 08:51 PM
AustinBrad
 
Posts: n/a
Stop the Pop Ups!!!

Hey,

Newbie Dreamweaver user here. I'm working my way thru the Classroom in a Book
tutorial and I'm on Chapter 8. I followed the instructions that tell me how to
use Adobe Behaviors to open a larger photo in a new browser window when I click
on a thumbnail. The problem is, when I close the pop up window, it re-opens
again.
I can't figure out why it would do that. I had to set the preferences in
FireFox to allow pop ups so that I could view the page I'd created. Here's the
code that DreamWeaver created:

<td class="overlay"><a target="">?&nbsp;&nbsp;</a></td>
<td class="enlarge"
onfocus="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=82
0,height=550')"><a href="javascript:;" target="">+</a></td>
</tr>

Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 08:58 PM
E Michael Brandt
 
Posts: n/a
Re: Stop the Pop Ups!!!

The problem is the onfocus event. Here's what happens: you click the
link, the popup window opens and gets focus. You close the popup and
focus returns to the link, which starts the process over again.

So, change that event to onclick and all should work fine.

--


E. Michael Brandt

www.divahtml.com
http://www.divahtml.com/products/scr...extensions.php
Standards-compliant scripts and Dreamweaver Extensions

www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia

--
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 09:12 PM
Alec
 
Posts: n/a
Re: Stop the Pop Ups!!!

You've also applied the behavior to the table cell (the TD tag) instead
of the anchor (A tag). You may want to fix that while you're addressing
the onFocus thing.


--
Alec
Adobe Community Expert
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 09:19 PM
Murray *ACE*
 
Posts: n/a
Re: Stop the Pop Ups!!!

Classroom in a book tells you to do THAT? Wow....

<td class="enlarge" onfocus="MM_openBrWindow

Seems weird to me.

It's the reason your popup keeps popping. The table cell still has focus
when you close the previously opened popup. I believe it would be much
better to have this -

<td class="overlay"><a target="">?&nbsp;&nbsp;</a></td>
<td class="enlarge"><a href="javascript:;"
onclick="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=820,h eight=550')">+</a></td>
</tr>

I'm not going to comment on the empty target attribute. Who wrote this?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"AustinBrad" <webforumsuser@macromedia.com> wrote in message
news:fqhoc4$lq6$1@forums.macromedia.com...
> Hey,
>
> Newbie Dreamweaver user here. I'm working my way thru the Classroom in a
> Book
> tutorial and I'm on Chapter 8. I followed the instructions that tell me
> how to
> use Adobe Behaviors to open a larger photo in a new browser window when I
> click
> on a thumbnail. The problem is, when I close the pop up window, it
> re-opens
> again.
> I can't figure out why it would do that. I had to set the preferences in
> FireFox to allow pop ups so that I could view the page I'd created. Here's
> the
> code that DreamWeaver created:
>
> <td class="overlay"><a target="">?&nbsp;&nbsp;</a></td>
> <td class="enlarge"
> onfocus="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=82
> 0,height=550')"><a href="javascript:;" target="">+</a></td>
> </tr>
>


Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 11:00 PM
AustinBrad
 
Posts: n/a
Re: Stop the Pop Ups!!!

Thanks guys! Issues resolved:

1) Classroom in a Book didn't say anything about On Focus vs. On Click. Don't
know why it defaulted to On Focus.

2) I applied the behavior to the anchor tag and it defaulted to On Click.
Maybe applying the behavior to the table cell defaulted to On Focus?

3) Don't know enough HTML to say anything about the empty Target attribute or
other Dreamweaver weirdness. This is the code that Dreamweaver created when I
followed the CIB instructions. It seems to do what I want it to do, so I'll go
with it. Hope it's not violating any web standards.

Thanks for the quick help!

Brad


Reply With Quote
  #6 (permalink)  
Old 03-03-2008, 11:31 PM
Murray *ACE*
 
Posts: n/a
Re: Stop the Pop Ups!!!

Good luck. You done good....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"AustinBrad" <webforumsuser@macromedia.com> wrote in message
news:fqhvv8$f0$1@forums.macromedia.com...
> Thanks guys! Issues resolved:
>
> 1) Classroom in a Book didn't say anything about On Focus vs. On Click.
> Don't
> know why it defaulted to On Focus.
>
> 2) I applied the behavior to the anchor tag and it defaulted to On Click.
> Maybe applying the behavior to the table cell defaulted to On Focus?
>
> 3) Don't know enough HTML to say anything about the empty Target attribute
> or
> other Dreamweaver weirdness. This is the code that Dreamweaver created
> when I
> followed the CIB instructions. It seems to do what I want it to do, so
> I'll go
> with it. Hope it's not violating any web standards.
>
> Thanks for the quick help!
>
> Brad
>
>


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:10 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
MPAA | Birthday Gifts | Mobile Phones | Internet Advertising | Remortgaging



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