Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2004, 02:48 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default The "Meta Refresh Tag" method

Hi,
Scenario:
1- User fills in form.
2- On submit is redirected to po-up confirmation page which is refreshed with new html page (requiring resizing of that op-up to fullscreen.
In other words:
I'm trying to redirect the end-user to another page after 10sec. the problem is that this is called in a pop-up window with set dimensions, and no scrollbars, toolbars etc.

The page I'm redirecting to has to be in "full-size" window.
My question is; How can I tell the pop-up window to resize itself to accomodate the new page?

Thanks for all your help,
nancy
 
Old October 27th, 2004, 04:30 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

To resize a window to fill the screen, use this:

window.resizeTo(screen.width,screen.height);

HTH!

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
 
Old October 28th, 2004, 08:38 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Snib!
Can I also re-call the toolbars, scrollbars, etc (like the default browser properties) ?
 
Old October 28th, 2004, 09:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Nope. Your best option is probably to not take those features away in the first place.

BTW, this 10 seconds redirection... Me, I close thank-you popups and the like in half a second. Probably most people will never get to the second page.

(o<
//\ =^..^=
 
Old October 28th, 2004, 09:41 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Snib, I'm confused as to where the recommended snippet of code goes??

Here's my Meta "refresh" portion:

<META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://www.mycompany.ca/mydirectory/myfile.asp">

How does the javascript fit in? Or does it?

Thanks again, Snib.
 
Old October 28th, 2004, 04:43 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

In the next page, the one that you're redirecting to, place the code I gave you in <script type='text/javascript'></script> tags in the <head> element.

HTH!

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.





Similar Threads
Thread Thread Starter Forum Replies Last Post
meta tag rajuru Beginning PHP 1 January 30th, 2005 10:27 AM
Get meta tag from current page? PHP 4.x jefferis PHP How-To 2 September 15th, 2004 08:06 PM
How to dynamically insert <META> tag in .HTML? Abdul Hameed Javascript 1 August 11th, 2004 10:03 AM
Need meta tag help, please larry HTML Code Clinic 1 January 6th, 2004 08:45 AM
Meta tag problem? KHarrington HTML Code Clinic 4 November 5th, 2003 12:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.