Hi Douglas,
> and then uses the <cflocation> to return to the EditEmployeeForm.cfm page.
> My problem is that upon returning to the EditEmployeeForm.cfm page the
> changes are not reflected (the old data appears). Checking the database
> shows that the changes have been made there. If I hit refresh after
> returning to the EditEmployeeForm.cfm page the changes are reflected after
> the refresh.
>
I know exactly what your problem is... I had exactly the same problem on a
project about 9 months ago....
I'm not entirely certain which of the following is true...
1) The cflocation happens quicker than the update to the data.
2) The query on the edit employeeform.cfm is looking at cached data.
3) I'm sure there were more possible senarios..... :o)
Anyway, what I ended up doing was not using cflocation, but doing a redirect
with JS instead. This actually gave me more powerful functionality with the
redirects (ie. I could target frames, windows, whatever...), but also
allowed me to put a short delay in before the re-direct occured. If I
remember correctly I stuck something like a 500ms delay in and that seemed
to do the trick....
I'm sure there is a more elegant and better solution, which I look forward
to hearing, but the above worked...
Hope that helps
Regards
Stephen
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.