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">
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
Don't see what you're looking for? Try a search.
|