Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 9:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Sizing Browser Window
PostPosted: June 8th, 2006, 6:54 am 
Offline

Joined: January 24th, 2006, 7:37 pm
Posts: 14
Location: Washington, DC Area - USA
I have a client who frequently puts slideshows of company events on their web site. They would like me to launch some of these from the Opus presentation.

On the web page, I use a simple javascript "new window" script to size the new window:
<a href="#" onClick="window.open('www.dsoftware.biz/slideshows/baseball/slide1.htm','bigPic','width=640,height=550')" title="Slide show of DSI at the Nationals game.">slideshow</a>

I would like to size the window from Opus so that when the Web page opens, it doesn't fill the screen but just a portion of the screen.

Anyone else successfully size external browser windows? Can't seem to find this in Help or Archives. Can I add these parameters to the Action or can I add my little script some where some how to the Action?

Thanks much!

_________________
margaret
Washington, DC area, USA
www.connect-points.com
Amazed by Grace


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 8th, 2006, 11:31 am 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
I'm afraid you cannot specify the size or position of externally launched applications . The code you are using is only valid within a browser which can control its own child windows.

The best solution would be to have a chapter set to open in a window of the correct size and a Browser object on the page in that chapter which displays the desired web page.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 8th, 2006, 12:42 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Margaret,

What you want to do is possible, and relatively easy too!

Here is what I did to achieve what you want to do.

In the HTML editor of your choice, create a small, blank HTML file. In the body tag of the HTML page place your javascript window code.
Code:
<body onload="javascript:window.open('http://www.yahoo.com','bigPic','width=640,height=550')">


Save the file.

In Opus create a browser object and set it to initially hidden. Also make sure it doesn't connect automatically when the page loads. I also unchecked the Outline border and status bar checkboxes. I make this browser object 1x1. Next I created a button with a couple of actions.
The first action is to show the browser. The second action navigates to the HTML file that acts as a launcher. You could also set up variables to contain the names of various launcher pages and then use the Navigate Browser to Variable action. Then I put in a Delay action to delay .05. This gives time for the browser to do its thing. I follow that up with a Hide action on the browser. I now have an external browser window sized to the size I specify and has gone to the location I want. :D

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject: Two Tricks to Open Browser
PostPosted: June 8th, 2006, 12:50 pm 
Offline

Joined: January 24th, 2006, 7:37 pm
Posts: 14
Location: Washington, DC Area - USA
Thanks so much!

I will try these and come back if I have questions. Much appreciated.

_________________
margaret
Washington, DC area, USA
www.connect-points.com
Amazed by Grace


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group