House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Force Refresh

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stan Winchester
05/07/2004 03:35 PM

I've developed a routine for form submission authorization. A random alphanumeric string is generated and stored as a session variable. The string is also used to generate an image showing the string. A user inputs the string as shown in the image and on submission if the user input matches the session variable, then we have a match. The problem is that if a test fails, the image does not refresh for the following browser/OS combinations: Mac 10.2 IE 5.2 Mac 10.2 Safari Seems to work fine in all browsers on my XP box. I have not been able to test on Linux yet. Sample: http://www.aftershockweb.com/test/ I'm using CFCONTENT to display the image through an iframe; I'm also using: <CFHEADER NAME="Expires" VALUE="Sun, 06 Nov 1994 08:49:37 GMT"> <CFHEADER NAME="Pragma" VALUE="no-cache"> <CFHEADER NAME="cache-control" VALUE="no-cache, no-store, must-revalidate"> The only way I am able to get the image to reload is to use the browser refresh button. Does anyone have an idea how to force the page to refresh the image? Thank you, Stan Winchester

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Doom
05/07/2004 04:20 PM

Try using a randomly generated number (not necessarily the same one you're using for validation) in the image href, like: fred.jpg?bob=123215134 Hopefully, the browser will realize that's a dynamic image and not use the one from the cache. --Ben Doom Stan Winchester wrote: > Mac 10.2 IE 5.2 > > Mac 10.2 Safari > > The only way I am able to get the image to reload is to use the browser > refresh button. Does anyone have an idea how to force the page to refresh > the image?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stan Winchester
05/07/2004 05:26 PM

Adding another randomly generated number and passing it as a url variable worked for both browsers! Thanks! ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Arden Weiss
05/07/2004 10:42 PM

What works for me is to add at time string down to the nearest second to insure uniqueness -- easier than using a random number...     <CFSET mT_NAIL = "INBOX\" & #CLIENT.USER_ID# & "\" & #INBOX.NAME# & "?time=" & #timeformat(now(),"hhmmss")#>     <IMG SRC="#mT_NAIL#" WIDTH="135" HEIGHT="100" BORDER="2">


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

February 09, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29