This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > June 2004 > Resizing a Browser Window
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Resizing a Browser Window
|
|
| trapmike 2004-06-11, 12:14 pm |
| When clicking on a button for a file transfer, I would like another browser
window to appear containing a form to be filled out before the download begins.
I would like to resize this new browser window to fit better the dimensions of
the form content and measurements.
Any help will be appreciated. Thanks. Mike.
I have opened the "form" page in Dreamweaver and used the bahavours to try and
do this, but I'm having problems. When I test, two browser windows open up. One
without my new resize measurements and a second window on top of that (at the
new measurements) which continually looks for data (something keeps it looping
for info).
| |
| E Michael Brandt 2004-06-11, 12:14 pm |
| Add DW's "Open Browser Window" behavior to the link on your page that will
open the popup window.
--
E. Michael Brandt
www.valleywebdesigns.com
"trapmike" <webforumsuser@macromedia.com> wrote in message
news:cac46s$d99$1@forums.macromedia.com...
> When clicking on a button for a file transfer, I would like another
browser
> window to appear containing a form to be filled out before the download
begins.
>
> I would like to resize this new browser window to fit better the
dimensions of
> the form content and measurements.
>
> Any help will be appreciated. Thanks. Mike.
>
> I have opened the "form" page in Dreamweaver and used the bahavours to
try and
> do this, but I'm having problems. When I test, two browser windows open
up. One
> without my new resize measurements and a second window on top of that (at
the
> new measurements) which continually looks for data (something keeps it
looping
> for info).
>
| |
| trapmike 2004-06-11, 7:15 pm |
| When I choose the link as the place to add the behavour code for the new window
to open, I get two windows. One (I guess) opening a new browser window from the
link I specified and a second new browser window with the new measurements
(from the bahavour panel imput info). It seems to me that the page is reading
both and running the two. I'm probably just missing an easy step to stop this.
Accepting advice. Mike.
| |
| Josh Johnson 2004-06-11, 7:15 pm |
| Go to your code for that link, it'll look something like this:
< a href="foo.html"
onclick="MM_openBrWindow('foo.html','window','width=900,height=650')>popup
foo< /a >
Change the reference in the onclick to refer to 'this' (no quotes), and
add a 'return false;' to the end so it looks like this:
< a href="foo.html"
onclick="MM_openBrWindow(this,'window','width=900,height=650');return
false;" >popup foo< /a >
This will not only make the popup work, but will make the link
accessible to those that have javascript turned off.
- Josh
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|