Forum Moderators: open

Message Too Old, No Replies

Need help to open new browser page

new page

         

schroder

10:28 pm on Jan 30, 2008 (gmt 0)

10+ Year Member



We have a need to open a second browser(IE) page and then display a wmv file in it. We would like this page to open at a specific time into the primary page then close after completion. Also we would like all controls removed.

Our clients are medical professionals that are viewing a presenter with audio and synched sides. Now they want to see video of the procedures.

Rick

BlobFisk

1:21 pm on Jan 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld schroder.

Opening a new page (with controls removed) can be done using javascripts window.open and you can time it using javascript setTimeout. It's not particular reliable if you're looking for accurate timing.

Would it be better to open it on a click rather than a specific time?

schroder

2:22 pm on Jan 31, 2008 (gmt 0)

10+ Year Member



Thanks for reply.

I think maybe opening a link with no controls and display at 400X400 is better. We have set html files that play at right size but the IE window opens at full screen with all contols.

Rick

Fotiman

6:07 pm on Jan 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here's an old thread with some valuable information:
[webmasterworld.com...]

Note, I would avoid trying to size the window. As mentioned in the thread, it will not be the correct size for all of your visitors depending on their personal browser settings.

Also, I would not hide any browser controls. It's bad for usability.

schroder

10:10 pm on Jan 31, 2008 (gmt 0)

10+ Year Member



Ok I have it working but I need the command for stoping it I would like to send you the line of code to look at but don't know if its acceptable here.

Thanks for your help

tedster

12:18 am on Feb 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Code can be helpful and very appropriate. Please replace any real domains with "example.com", remove other identifying specifics, and reduce the code down to the minimum needed for discussion. See LINKS and posting CODE- our policies [webmasterworld.com] for more detailed information (it's always pinned to the top of this forum's index page.)

schroder

2:28 am on Feb 1, 2008 (gmt 0)

10+ Year Member



<a href="001.htm" onClick="javascript:parent.NewWindow('001.wmv');return false;"><img src="video.jpg" alt="Click to Play Video" border="0" onMouseOver="this.src='actvideo.jpg'" onMouseOut="this.src='video.jpg'" /></a>

This is the code we are using. A user clicks on it and it plays the second video. We allow users the ability to choose if they want the second video or not depending on their bandwidth. What we would like is to have the program not loop and when its done for the widow to close and go back to our orginal program.

I've search using Google but can not find any codes.

Thanks again,

Rick