Ah, I get ya ... I think ... So the API frame calls a 'communication' frame with a URL/form submission that sets some variables by doing a frame.location.href or something like that. At that point your API frame goes on to its next command, but the communication frame may not have finished loading. Is that the right scenario?
Can you do a setInterval() or similar and keep checking to see if a variable in the communication frame has been defined yet? CF could return JS that sets a variable at the end of the page, so your caller would know it was done and could then retrieve the data it needs? Or the communication frame could call a function in your API frame telling it that it was done? Sorry if I'm totally missing what you are doing and being no help! Dan -----Original Message----- From: Matthew Friedman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 3:20 PM To: CF-Talk Subject: RE: Callling Client or Session varibles from a javascript I got that, but how do I call the other frame as a read only and then pull the data back to the first frame to report back to the caller. -----Original Message----- From: Dan Haley [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 6:04 PM To: CF-Talk Subject: RE: Callling Client or Session varibles from a javascript Sounds like you've got the Javascript figured out pretty well, so the following should give you an idea of how to get it back ... this is from CF4.5, not sure how things have changed ... tried to find the WDDX serializer and deserializer JS objects out on the web and most of the links were broken ... <cfset x = structnew()> <cfset x.myvar = 8> <cfwddx action="CFML2JS" input="#x#" output="y" toplevelvariable="z"> <script language="javascript"> <cfoutput>#y#</cfoutput> </script> Dan -----Original Message----- From: Matthew Friedman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 3:01 PM To: CF-Talk Subject: Callling Client or Session varibles from a javascript I have a need to read and set client or session variable from javascipt. I am working on a project that has to intergrate content that uses a standard set of calls to an api to send and recieve data. I have set up the system to use a frame with the API name to recieve the calls and I can catch request and send them back to the object calling, but I need the ablity to call and update client or session variabled. Setting the varibles is easy, I set up another frame and the first frame calls the second frame that runs cf code to process the request. The question is how do I retrieve "get" client varible information back from the second frame to return back to the object. Any help would be great. Matt ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists