Groups | Blog | Home
all groups > coldfusion flash integration > january 2007 >

coldfusion flash integration : Form data has expired


Ghis
1/12/2007 1:26:30 PM
I have a Grid using onChange as below:
onchange="getUrl('SpecificAccount.cfm?count_id=' +
getTodaysGrid.dataProvider[getTodaysGrid.selectedIndex]['count_id']);"

Once the item is selected, the SpecificAccount.cfm page is opening properly.
So far it's working great. Now if I am going back to the previous page using a
cfinput type='submit'. The page keeps saying: 'The form data has expired,
Please reload this page in your browser.'

How to have to page reloaded properly?

main.cfm
<cfform name="form1" method="post" format="flash">
<cfformgroup type="panel" label="Today's Call Backs
(#getTodays.recordCount#)">
<cfgrid name="getTodaysGrid"
query="getTodays"
onchange="getUrl('SpecificAccount.cfm?count_id=' +
getTodaysGrid.dataProvider[getTodaysGrid.selectedIndex]['count_id']);">

SpecificAccount.cfm:
<cfform format="flash" action="act_specificAccount.cfm" >
<cfgrid name="grid1" query="getDetails" />
<cfform>

act_specificAccount.cfm:
<cflocation url="main.cfm">
Dinghus
1/18/2007 7:59:01 PM
CoffeeCup
1/19/2007 7:55:51 AM
I use the following code;

<!--- DO NOT CACHE THE PAGE --->
<cfoutput>
<cfheader name="expires" value="#now()#">
<cfheader name="pragma" value="no-cache">
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
</cfoutput>

I place it just below my <body> tag. - It seem to work pretty well
Dinghus
1/19/2007 7:53:52 PM
cesarmejia
2/4/2007 8:52:25 PM
MeltdownMX
3/10/2007 8:26:03 PM
AddThis Social Bookmark Button