HighDots Forums  

Window Size on Popup

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Window Size on Popup in the Macromedia Dreamweaver forum.



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

Default Window Size on Popup - 07-18-2004 , 07:50 PM






Hey everyone,

I'm building a website that includes both a Fair Use and Privacy Policy
Statement. I'd like both pages to popup after being clicked in a window size of
my discretion. I rather have both window sizes fit to the image/text than open
as an entirely new large window.

What's the HTML or process in dreamweaver behind this?

Thanks,
Benjamin


Reply With Quote
  #2  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Window Size on Popup - 07-18-2004 , 09:12 PM






You would use a null link "javascript:;" as your link (without the quote
marks) and attach an open browser window behaviour to that link. use the
settings to define the size of the window to open.

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Ecommerce - YVStore : SEO Articles :
:Table Tutorials, Background image Tutorials:
------------------------------------------------

"BeniFxTrader" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hey everyone,

I'm building a website that includes both a Fair Use and Privacy Policy
Statement. I'd like both pages to popup after being clicked in a window
size of
my discretion. I rather have both window sizes fit to the image/text than
open
as an entirely new large window.

What's the HTML or process in dreamweaver behind this?

Thanks,
Benjamin




Reply With Quote
  #3  
Old   
BeniFxTrader
 
Posts: n/a

Default Re: Window Size on Popup - 07-19-2004 , 02:19 AM



I understand what you mean with the Open Window Behaviors. I can get my page
to open...and then it automatically displays the URL at the window size I set.

I want the URL to not open automatically upon load...rather when someone
clicks on that link. I have the following HTML involved:

<body
onLoad="MM_openBrWindow('file:///D|/BenjaminFolder/WebSites/ProfessorWilliamsWeb
Site/FairUse.html','FairUse','scrollbars=yes,width=250, height=388')">
<a
href="file:///D|/BenjaminFolder/WebSites/ProfessorWilliamsWebSite/FairUse.html">
FairUse </a>


Thanks,
Benjamin


Reply With Quote
  #4  
Old   
seb
 
Posts: n/a

Default Re: Window Size on Popup - 07-19-2004 , 02:48 AM



you're on the wrong track(s).
Problem ONE:
you applied the open window behavior to the body tag. You want to apply
it to a link: select whatever you want to link to it, and in properties
inspector, in link block, write

javascript:;

THEN, apply the behavior.

Problem TWO:
you're linking to your hard drive
('file:///D|/BenjaminFolder/WebSites/...).
When files will be uploaded on the web, none off the links will work
because they link to YOUR computer hard drive.
You need to change that ASAP, before your whole site is screwed up.
ALL links should be relative to the site root folder, not your hard drive.

BeniFxTrader wrote:

Quote:
I understand what you mean with the Open Window Behaviors. I can get my page
to open...and then it automatically displays the URL at the window size I set.

I want the URL to not open automatically upon load...rather when someone
clicks on that link. I have the following HTML involved:

body
onLoad="MM_openBrWindow('file:///D|/BenjaminFolder/WebSites/ProfessorWilliamsWeb
Site/FairUse.html','FairUse','scrollbars=yes,width=250, height=388')"
a
href="file:///D|/BenjaminFolder/WebSites/ProfessorWilliamsWebSite/FairUse.html"
FairUse </a


Thanks,
Benjamin


Reply With Quote
  #5  
Old   
BeniFxTrader
 
Posts: n/a

Default Re: Window Size on Popup - 07-19-2004 , 02:45 PM



I tried attaching a behavior to the link...but when I click on the link and/or
highlight the entire link, the behaviors options within the behaviors window
become limited to nearly nothing.

Only when I click on the body can I attach a behavior such as the window
behavior. Why is this? Is there a way to get the behaviors to work when
clicking on a link as you suggest? or must I type the HTML in manually?


Reply With Quote
  #6  
Old   
David Plank
 
Posts: n/a

Default Re: Window Size on Popup - 07-19-2004 , 03:22 PM



TRy this

Put a # in the link box of the properties window.

In the Behavior window select "Open Browser Window"

This will give you a number of options that you can specify for
the window.

dp

BeniFxTrader wrote:

Quote:
I tried attaching a behavior to the link...but when I click on the link and/or
highlight the entire link, the behaviors options within the behaviors window
become limited to nearly nothing.

Only when I click on the body can I attach a behavior such as the window
behavior. Why is this? Is there a way to get the behaviors to work when
clicking on a link as you suggest? or must I type the HTML in manually?


Reply With Quote
  #7  
Old   
seb
 
Posts: n/a

Default Re: Window Size on Popup - 07-19-2004 , 07:48 PM



you have not followed my instructions:
if you had written
"javascript:;" (without the quotes)
in your link box in properties panel, you would then see all the
behaviors available, when you select this link.
You have to make sure you select the actual link (with your text link
selected, click on the little <a> at the bottom of your design window).
Then all behaviors will be available.

BeniFxTrader wrote:
Quote:
I tried attaching a behavior to the link...but when I click on the link and/or
highlight the entire link, the behaviors options within the behaviors window
become limited to nearly nothing.

Only when I click on the body can I attach a behavior such as the window
behavior. Why is this? Is there a way to get the behaviors to work when
clicking on a link as you suggest? or must I type the HTML in manually?


Reply With Quote
  #8  
Old   
BeniFxTrader
 
Posts: n/a

Default Re: Window Size on Popup - 07-20-2004 , 03:24 PM



WONDERFUL, I finally got it to work . One last problem to figure out. I can
get my policy window to popup "onclick" with the right window size...but
another window opens after it with the address "javascript:;"

Here's the HTML:

<a href="javascript:;" target="_blank"
onClick="MM_openBrWindow('FairUse.html','','scroll bars=yes,width=560,height=367'
)"><font color="#000000">FairUse</font></a>

I appreciate all the help,
Benjamin


Reply With Quote
  #9  
Old   
Mad Dog
 
Posts: n/a

Default Re: Window Size on Popup - 07-20-2004 , 03:58 PM



I'm jumping into the middle of this, but have you tried taking out the
target="_blank"? It looks like you're opening a new window that way AND with
the Open Window behavior.

MD



BeniFxTrader wrote:
Quote:
WONDERFUL, I finally got it to work . One last problem to figure
out. I can get my policy window to popup "onclick" with the right
window size...but another window opens after it with the address
"javascript:;"

Here's the HTML:

a href="javascript:;" target="_blank"

onClick="MM_openBrWindow('FairUse.html','','scroll bars=yes,width=560,height=
367'
Quote:
)"><font color="#000000">FairUse</font></a

I appreciate all the help,
Benjamin



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.