943,789 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 27th, 2006
0

Redirect with pre-sized pop-up code help

Expand Post »
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!
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Jul 27th, 2006
0

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

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jul 27th, 2006
0

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

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Jul 28th, 2006
0

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

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 3rd, 2006
0

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

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.
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Aug 3rd, 2006
0

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

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Aug 3rd, 2006
1

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

Well crap...that only works in IE.

The latest Netscape and FireFox browsers won't let javascript close a window it did not open.
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Aug 3rd, 2006
0

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

Quote 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.
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Aug 3rd, 2006
0

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

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>
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Aug 3rd, 2006
0

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

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?
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: need help with large anchor
Next Thread in HTML and CSS Forum Timeline: table shrinking





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC