Solved

How Do I Specify the Size of a Browser Window?

Posted on 2007-03-26
16
253 Views
Last Modified: 2010-04-25
I want a Flash Video on our site to open in a separate, small window. How can I specify the size of the browser window in DW8?

Is this something that I'd have to do in the actual page, or in the page from which the video is linked?

Thx.
0
Comment
Question by:mksalva
  • 6
  • 3
  • 2
  • +2
16 Comments
 
LVL 9

Accepted Solution

by:
pmagony earned 42 total points
ID: 18794644
Make sure you select your anchor tag "<a>" prior to executing the following instructions:

Window -> Behaviors (the panel title will read: Tag <a>, letting you know you are applying the behavior to that tag.)

Click the + sign and choose "Open Browser Window"

From there you will be able to specify window dimensions that match your Flash presentation, along with the destination page.
0
 

Author Comment

by:mksalva
ID: 18794802
Thank you for your reply.

Is there a way to make the Javascript link work if the HTML remains within the <body> and the </body> tags?

If not, is there a way that the targeted page can contain its own parameters for the window dimensions?

Thx
0
 
LVL 9

Expert Comment

by:pmagony
ID: 18794847
The only way it will work is if the anchor tag remains between the body and body tags.  There's just no other way for it to be.  Your going to see javascript in the head of your document, and in the body.

Your intention is to allow someone to click a link, that pops-up a fixed window with your flash.  My initial response states, highlight your link (<a>) and then proceed with the instructions, that will ensure that your pop-up function is associated to the link you want to apply the functionality too.
0
 

Author Comment

by:mksalva
ID: 18794887
Our web site is set up so that page content is contained between the <body> and </body> tags. Everything outside of that is pre-set for each page. Javascript in the head of a document will not work.

Does this mean that I am out of luck?
0
 
LVL 9

Expert Comment

by:pmagony
ID: 18794938
No, you can take the same <script> function and add it just above the hyperlink in the body of your html.  It will just load when that code is read instead of in the head.
0
 
LVL 9

Expert Comment

by:pmagony
ID: 18794966
Example:

This part is usually in the head:
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>

Just place it above your link.
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<a href="javascript:;" onclick="MM_openBrWindow('http://www.cnn.com/','test','width=500,height=500')">Test Pop-Up</a>
</div>
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 25

Assisted Solution

by:Rouchie
Rouchie earned 42 total points
ID: 18798422
There is a way to achieve this with no editing to the HEAD tags being required, and no SCRIPT tags being needed either.

Visit this web site and key in the size and other details of your new window.  The code for a hyperlink is generated for you...

http://www.ricocheting.com/js/popup.html
0
 
LVL 3

Assisted Solution

by:vncmrc12
vncmrc12 earned 41 total points
ID: 18806294
Try this.
<a href="javascript:window.open('Default.htm','myWindow','width=200,height=200')">Test</a>
0
 
LVL 3

Expert Comment

by:vncmrc12
ID: 18806333
Sorry Try this one:
<a  href="#" onClick="javascript:window.open('Default.aspx','myWindow','width=200,height=200');">Test</a>
0
 
LVL 2

Expert Comment

by:rwbaskette
ID: 19304416
stick this at the bottom of the page before the end body tag...

<script type="text/javascript">

self.resizeTo(1024, 768)

</script>

0
 
LVL 9

Expert Comment

by:pmagony
ID: 22084714
This question was answered by various EE members.  What was not answered was whether or not our suggested solutions worked/failed.
0
 

Author Comment

by:mksalva
ID: 22085938
I don't remember what happened. I think I posted this a year-and-a-half ago. For some reason, it didn't work, since I didn't wind up closing the question.

I just asked that this be deleted, since I keep getting the e-mails that say "You Have Open Questions."
0
 
LVL 9

Expert Comment

by:pmagony
ID: 22087833
Right, there's actually a programmatic flow to the system.  It has to be in place in order for it to be effective.  

You may have to choose who best supported you or leave it to the moderators to distribute points as they see fit.

-Good luck!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Non-Cloud Bookmark Manager 3 55
use of cookies and regulations 1 76
Annoying "thing" blocks my view 4 82
WCAG (Web Content Accessibility Guidelines) levels 3 67
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now