Author |
Topic |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 19 December 2000 : 02:49:06
|
When using the Preview function, usually you have to "Refresh" the Preview window to see the true Preview if you make changes rather quickly and then click Preview to see how your change affected the look of the message. By inserting the following code in to pop_preview.asp , the page won't be cached and you won't have to keep "refreshing" the preview window to see your latest changes.
Insert this:
<% Response.Buffer = True Response.Expires = -1 Response.AddHeader "Pragma", "no-cache" Response.AddHeader "cache-control", "no-store" %>
right after this:
<!--#INCLUDE FILE="inc_functions.asp" -->
(at least this works for me, YMMV)
(as noted below, Netscape has problems with this.... )
Edited by - Richard Kinser on 19 December 2000 04:40:45 |
|
Kat
Advanced Member
United Kingdom
3065 Posts |
Posted - 19 December 2000 : 04:27:26
|
hmm great for IE but have you tried it on netscape? it squashes the window!!!!! any solutions?
KatsKorner http://just-auto.com/forums/
Edited by - kat on 19 December 2000 04:27:38 |
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 03 January 2001 : 00:28:32
|
Richard,
can you confirm or deny this?
Thanks!
Reinsnitz (Mike) ><)))'> "The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 03 January 2001 : 00:34:53
|
It worked ok for me on Netscape 6 but I don't have any other version of Netscape to test it with. One thing I did notice is that even without adding this code, Netscape only shows the necessary lines in the window (is this the squashing Kat was talking about?), where IE shows the full size of the window even if you only have 1 line of text.
Edited by - Richard Kinser on 03 January 2001 00:35:33 |
|
|
Kat
Advanced Member
United Kingdom
3065 Posts |
|
barky81
Junior Member
USA
166 Posts |
Posted - 04 January 2001 : 16:35:18
|
quote: ...By inserting the following code in to pop_preview.asp , the page won't be cached and you won't have to keep "refreshing" the preview window to see your latest changes.
Insert this:
<% Response.Buffer = True Response.Expires = -1 Response.AddHeader "Pragma", "no-cache" Response.AddHeader "cache-control", "no-store" %>
right after this:
<!--#INCLUDE FILE="inc_functions.asp" -->
(at least this works for me, YMMV)
(as noted below, Netscape has problems with this.... )
Edited by - Richard Kinser on 19 December 2000 04:40:45
Is there any reason that this code cannot/should not be incorporated into every snitz.asp page? When could/would this cause a problem?
And is the actual location of the insertion critical? I thought the response.buffer statement had to be the FIRST thing on the page?
In part, I ask because I am already trying to incorporate some other new include code onto all the snitz.asp pages.... (and, not surprisingly, having problems.)
Thanks!
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 04 January 2001 : 16:58:46
|
I believe that you can use the Response.Buffer=True at different places in the page. Like at the top you could have Response.Buffer=True and then later in the page you could put Response.Buffer=False and then again Response.Buffer=True further down the page. |
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 04 January 2001 : 17:00:42
|
Barky,
Apparently it would cause a problem if you were using netscape (25% of your user base on the internet)
Reinsnitz (Mike) ><)))'> "The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
|
|
|
barky81
Junior Member
USA
166 Posts |
Posted - 04 January 2001 : 17:32:49
|
quote:
Barky,
Apparently it would cause a problem if you were using netscape (25% of your user base on the internet)
Reinsnitz (Mike) ><)))'> "The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
Hey, I hate to say it, but at this point, if I can get my forum to work, I just don't care about the netscape issue anymore. I was asking the question within the context of this other discussion, detailing some significant problems I am having.
What makes it problematic for me is trying to limit access to the forum's pages UNLESS the user is logged into the site. Thus I have to get the redirect in before the page loads (especially in those cases where the url might include parameters leading to a specific message). In other words, putting a redirect test into post.asp does not work when this is passed (unless it's buffered true):
post.asp?TOPIC_ID=3437&FORUM_ID=34&CAT_ID=10&etc....
Between that and the response.expire stuff, it seems my site doesn't work.
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 26 February 2001 : 10:02:12
|
<-bump->
Reinsnitz (Mike) ><)))'> Need a Mod? "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 30 January 2002 : 01:21:26
|
we are using a form redirect for the pop_preview.asp page, so the data will alwasy be current (no more cached data in the preview window).
fixed in v3.4 |
|
|
|
Topic |
|