Try this

<cfset usedOldData=false>
<cflock name="TwoForOne" timeout=...>
  <cfif NOT IsDefined("session.mySharedData")>
    <cfquery name="myQuery">
      ...
    </cfquery>
    <cfset session.MySharedData=myQuery>
  <cfelse>
    <!--- use old data and discard when done --->
    <cfset myQuery=session.mySharedData>
    <cfset usedOldData=true>
  </cfif>

  ... do your processing

  <!--- Dispose of shared data --->
  <cfif usedOldData>
    <cfset StructDelete(session, "mySharedData")>
  </cfif>
</cflock>




--- Dave Carabetta <[EMAIL PROTECTED]> wrote:
> I'm trying to do something here that I don't think
> is possible, but thought 
> I'd throw it out there to confirm.
> 
> Quick Overview:
> I'm building an app that has a frames-based module.
> The frames are split 
> 50-50 horizontally -- nothing complex. In the top
> frame, the user makes any 
> appropriate modifications to data. On submission,
> the lower frame (which 
> contains an ongoing report) auto-refreshes to
> reflect the new data.
> 
> The problem:
> On submission, both the top frame and the bottom
> frame make the same exact 
> call to the server to get the new data. I know that
> may sound strange, but 
> believe me, it does make sense for me. I'm wondering
> if it's possible to 
> make this call to the server and have the resulting
> record set available to 
> both pages in the frame set so that I only have to
> make the call once 
> instead of twice per refresh?
> 
> Any ideas? I've been thinking along the lines of a
> hidden frame that makes 
> the call, but I can't quite put my finger on how
> that helps my situation 
> any.
> 
> Thanks in advance,
> Dave.
> 
>
_________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
> 
>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to