If the client vars are stored in db then u can manipulate the db directly. For complex vars just store them as wddx or json.
Russ -----Original Message----- From: Dominic Watson [mailto:[email protected]] Sent: 08 December 2010 20:56 To: cf-talk Subject: Re: CF and a Remote PHP Site... Yeh, sounds fun ;) On 8 December 2010 20:42, Che Vilnonis <[email protected]> wrote: > > Thanks Dominic. Yeah, that helps. > I think the hardest part might be the session mgmt. with the client vars > that the legacy CF app uses. > > -----Original Message----- > From: Dominic Watson [mailto:[email protected]] > Sent: Wednesday, December 08, 2010 3:18 PM > To: cf-talk > Subject: Re: CF and a Remote PHP Site... > > > So it sounds like the data will need to be processed in the same request as > the user visiting some page on your site (so that you can associate the > data > with the client in session / client scope). > > Something that occurs to me off the top of my head: > > * User finishes with 3rd party site and ready to return to you with the > details... > * 3rd party sends the user to your page, providing some token with which > to > fetch the data, e.g. locate to: > yoursite.com/some.cfm?thirdPartyToken=3535A6F4587395EB5B > * the cfm page that the user lands on makes a request to 3rd party, > supplying the token, 3rd party responds with all the relevant data that can > then be stored in the client/session scope as you are still within the > clients visit request > > Alternatively, the url to which the 3rd party redirects your user could > have > all the neccessary data, e.g. locate to: > yoursite.com/some.cfm?width=487height=48&picture=9734857 etc. > > HTH > > Dominic > > On 8 December 2010 18:27, Che Vilnonis <[email protected]> wrote: > > > > > Thanks Russ. Let me explain further. The third party PHP site would > > mimic the entire line of products that the picture framing company > > sells. (IDs and SKUs would be the same.) I would then pass a "Frame > > ID" to the third party PHP site. Over a period of time, the customer > > would build his/her frame. > > Once he/she hits "add to cart", the third party PHP site would pass > > back several variables such as the selected frame width, frame height, > > mat width, mat height, second mat width and height, mat style, mat > > cut, plexiglass width and height, foam core width and height, etc. > > Basically, I would need to get back 15-20 variables of data to create > > one custom picture frame. > > Does > > that make more sense? > > > > Would a simple CF "listener" page work where all the data is passed > > back in the query string and then parsed? Would that be the best way to > do > this? > > > > Thanks, Che > > > > -----Original Message----- > > From: Russ Michaels [mailto:[email protected]] > > Sent: Wednesday, December 08, 2010 1:13 PM > > To: cf-talk > > Subject: RE: CF and a Remote PHP Site... > > > > > > >From what you have said this sounds really simple to achieve. > > You presumably have pictures of the frames. > > User chooses the frame. > > User uploads their photo > > Resize the photo to fit in the frame, and overlay it on top of the > > frame image using a div and position it. > > > > Russ > > > > -----Original Message----- > > From: Che Vilnonis [mailto:[email protected]] > > Sent: 08 December 2010 17:19 > > To: cf-talk > > Subject: CF and a Remote PHP Site... > > > > > > We have a client that sells custom built picture frames on an older CF > app. > > His competition uses software that allows customers to upload photos > > and to "visually" see the picture frames they are building. He wants > > to add this functionality to his web site. > > > > I was put in touch with a company that sells this type of software. It > > is written in PHP. The PHP developer thought we'd be able to "pass > > data" from my site to his. Once the "visualized" frame was built, he'd > "pass data" > > back > > to me and I would add the custom built frame to the shopping cart. > > > > Sending data to the remote site (via XML and CFHTTP) is not an issue. > > > > I'm looking for a solution on how to best "receive" the data. Keep in > > mind, the CF site runs on a CFMX 6 shared server that uses client > > variables for storage. > > > > I realize this is not the best way to do things and there would be > > pitfalls with session timeouts, etc. Any advice would be appreciated. > > > > Thanks, Che > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

