Coldfusion.Navigate loading cached info into cfdiv
I have a cfdiv binded to a cfc or url (same issue with both scenarios). its a basic list with a link to open a cfwindow with a form to edit the details of the record. When your done editting the record, you press a submit button which does a Coldfusion.Ajax.Submit form and runs an update script. On the callback of the update script, I have it close the cfwindow and then do a Coldfusion.navigate back to the cfc or URL to refresh the main cfdiv...
For some strange reason, the cfdiv keeps showing the same info. If I refresh the entire page I get the updated info. Tried on multiple browsers.
Any ideas? I'm gathering its either cached info, or its refreshing to fast. I put the update script in the callback of the submit form thinking the refresh wouldnt trigger until the update is ran...
any thoughts would be appreciated...
I've done a number of applications where I've never seen this issue... and then all of a sudden a few apps have... and its basically the same code on all the apps.
main page:
<script>
function addItem(bondid) {
ColdFusion.navigate('_activityform.cfm?bondid='+bondid,'activityWindow');
ColdFusion.Window.show('activityWindow');
}
function editItem(bondid, bond_activityid) {
ColdFusion.navigate('_activityForm.cfm?bondid='+bondid+'&bond_activityid='+bond_activityid,'activityWindow');
ColdFusion.Window.show('activityWindow');
}
function activitySubmit(bondid) {
// ColdFusion.Ajax.submitForm('activityForm','_activitySubmit.cfm');
ColdFusion.Ajax.submitForm('activityForm','_activitySubmit.cfm', closeActivityWindow(bondid));
}
function closeActivityWindow(bondid) {
ColdFusion.Window.hide('activityWindow',1);
ColdFusion.navigate('/cfc/bond.cfc?method=getBondActivityTable&returnFormat=plain&bondid='+bondid,'activityDiv');
}
</script>
<cfwindow center="true" closable="true" draggable="true" modal="true" resizable="false" initshow="false" refreshonshow="false" height="400" name="activityWindow" title="Activity Window" width="650"></cfwindow>
<cfdiv id="activityDiv" bind="cfc:cfc.bond.getBondActivityTable('#bondid#')">
