Author |
Topic  |
|
Nertz
Junior Member
 
Canada
341 Posts |
Posted - 11 August 2004 : 12:35:51
|
On one of my sites, I have a default.asp whose only line of code is a redirect to david's portal page. Prior to the redirect, I would like to maximize the browser window to full screen if possible.
I have successfully used in the past this little javascript from dynamicdrive to do just that, placing it within the <HEAD> </HEAD> tags of the initial intro page. In this case it won't work, the script is ignored and the redirected page loads fine in the initial sized window without any error returned. My guess being the lack of <HTML> and <HEAD> tags in the redirect page.
Putting this script in the inc_header.asp works on the initial load, but errors on subsequent page changes.
Anyone have any idea how I can do this without using an intro page? Any suggestion would be greatly appreciated. Thanks....
cheers, Nat |
Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers that use our children unjustly as "instruments" of power.
www.fathers-4-justice-canada.ca |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 12 August 2004 : 04:39:35
|
Interesting point here - at what point does the cache write to the client? The redirect will flush the cache, so maybe this stuff is never actually reaching the client, as the isapi will cache the page as it builds it up, then drop it all when it hits the response.redirect
I cannot remember the full syntax, but something along the lines of cache.sendtobrowser (ok so I completely forgot the syntax) should sent the partial page before the response.redirect, however I still doubt there will be an event to fire the script? Ideas, anyone? |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 12 August 2004 : 05:31:22
|
I advise you that messing with the window size is going to anger a portion of your audience. |
Nathan Bales CoreBoard | Active Users Download |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 12 August 2004 : 06:53:52
|
I'm with Nathan on this; any script that causes a vistor's browser/system to do something unexpected like this is one sure fire way of driving them away. If they want a maximised window; they'll hit the little square in the top-right of their browser window.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 12 August 2004 : 07:27:09
|
thirded - i feel the browser is *MINE* as it's on *MY* PC, so if I wanted it big, I'd ask for it  |
 |
|
Nertz
Junior Member
 
Canada
341 Posts |
Posted - 12 August 2004 : 08:15:03
|
All, thanks for the comments. I know some may have objections to resizing the window, and I have taken those concerns in consideration... perhaps the subject of another discussion but the point is well taken. Onewaymule, thanks for the example. Been so caught up into ASP that I had never thought of using meta http-equiv for the redirect. You're a genius!!!
cheers, Nat |
Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers that use our children unjustly as "instruments" of power.
www.fathers-4-justice-canada.ca |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
|
Topic  |
|