Redirect with pre-sized pop-up code help

Reply

Join Date: Jan 2005
Posts: 32
Reputation: Mighty_Squid is an unknown quantity at this point 
Solved Threads: 0
Mighty_Squid Mighty_Squid is offline Offline
Light Poster

Redirect with pre-sized pop-up code help

 
0
  #1
Jul 27th, 2006
This is for work and I'm just not that good at coding.

The simple redirect code I know:

HTML and CSS Syntax (Toggle Plain Text)
  1.  
  2. <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

What I need is for the redirected page to be presized (width=800,height=564). I only know how to do it when a user pushed a button not on a redirect.

The problem is this is a webcast that they are putting on plasma screens so there will be no user interaction.

Using the hardware/software they are trying to use they just put a link in and it goes.

I am sure this is a simple thing.

Any help would be apreciated.

Thank you!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Redirect with pre-sized pop-up code help

 
0
  #2
Jul 27th, 2006
You cannot force a page to be a certain size.

The only way to resize a page is to control the window in which it appears, which you already know how to do "when a user pushed a button", meaning, using the window.open() method, I presume.

When you redirect, you aren't creating a new window. You lose control over the window. The new page owns it, so that page will need to contain its own resize code.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 32
Reputation: Mighty_Squid is an unknown quantity at this point 
Solved Threads: 0
Mighty_Squid Mighty_Squid is offline Offline
Light Poster

Re: Redirect with pre-sized pop-up code help

 
0
  #3
Jul 27th, 2006
Thank you for the reply.

I was hoping there was something I could do.

I can't build a whole new page for these plasmas in time and my prebuilt (by my now deceased predecessor) webcast template isn't full screen. I can give them the direct link to the frameset but without controling the window size everything is distorted.

I thought a redirect may work but I guess not.

Does anyone have any suggestions for a quikish work around?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Redirect with pre-sized pop-up code help

 
0
  #4
Jul 28th, 2006
Perhaps I wasn't very clear: only the "current page" can resize and/or open a window. Once the web server redirects to a page, only THAT PAGE can resize its window.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Redirect with pre-sized pop-up code help

 
0
  #5
Aug 3rd, 2006
You could open the page in a new window of the specified size and close the old window behind you.

It's not the best solution, but it will work in a pinch.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 32
Reputation: Mighty_Squid is an unknown quantity at this point 
Solved Threads: 0
Mighty_Squid Mighty_Squid is offline Offline
Light Poster

Re: Redirect with pre-sized pop-up code help

 
0
  #6
Aug 3rd, 2006
I'll give it a try Deacon. It's better then having to reprogram a whole new webcast template from scratch.

What would be the code for that?
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Redirect with pre-sized pop-up code help

 
1
  #7
Aug 3rd, 2006
Well crap...that only works in IE.

The latest Netscape and FireFox browsers won't let javascript close a window it did not open.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 32
Reputation: Mighty_Squid is an unknown quantity at this point 
Solved Threads: 0
Mighty_Squid Mighty_Squid is offline Offline
Light Poster

Re: Redirect with pre-sized pop-up code help

 
0
  #8
Aug 3rd, 2006
Originally Posted by Deacon J
Well crap...that only works in IE.

The latest Netscape and FireFox browsers won't let javascript close a window it did not open.
Well this is just for one box so the browser can be whatever I need it to be so I think that code would work.

Let me know what your using and I'll give it a try.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Redirect with pre-sized pop-up code help

 
0
  #9
Aug 3rd, 2006
Well, for IE, use

HTML and CSS Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. window.open("test2.html",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
  3. self.close();
  4. </script>
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Redirect with pre-sized pop-up code help

 
0
  #10
Aug 3rd, 2006
I guess I'm having a hard time picturing what you are trying to do?

How it the webcast accessed in the first place? By a link from another page? Through a frameset?

It seems like you should be able to contain it inside a div element and set the height and width using css.

Is this something I can look at on the Web to get an idea of what you are working with?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum


Views: 4315 | Replies: 13
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC