 |
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
|
|
|

October 27th, 2004, 02:48 PM
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

October 27th, 2004, 04:30 PM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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.
|

October 28th, 2004, 08:38 AM
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Snib!
Can I also re-call the toolbars, scrollbars, etc (like the default browser properties) ?
|

October 28th, 2004, 09:40 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
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<
//\ =^..^=
|

October 28th, 2004, 09:41 AM
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 28th, 2004, 04:43 PM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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.
|
|
 |