Thanks for the reply, Barney...

While it could be a race condition, I think it's more likely that it has
to do with how the content is being returned to the calling page.

The calling page isn't refreshing, it's just having the content *added*
to the page via jquery.  I'm not sure about that either, because it just
seems that if the cfdump of the session values is one thing when
dumped from inside the cfc after setting them, they should be the same
when dumped when the code returns to the calling page.

I don't know...this is driving me crazy, but it's a pretty involved to solve
on the list...

Rick

On Wed, Apr 29, 2009 at 4:25 PM, Barney Boisvert <[email protected]>wrote:

>
> To answer your core question, yes, you can set session variables
> inside CFCs and they'll be set just as effectively as setting them
> anywhere else.
>
> I didn't quite follow what you're doing, but it sounds like you
> probably have a race condition somewhere.  Logging is often the best
> way to find those, because you can see when stuff happens out of
> order.
>
> cheers,
> barneyb
>
> On Wed, Apr 29, 2009 at 1:13 PM, Rick Faircloth
> <[email protected]> wrote:
> >
> > I'm trying to create a "preview" setup via cf, jquery, and ajax for
> > a form.
> >
> > Before I get too deep into all this code, let me just ask this:
> >
> > Can I set session variables in the cfc method to the values of the
> > form variables and use those back on the calling page?  I'm doing it
> > this way to prevent having to write the preview values to the database.
> >
> > I can cfdump the session and see that the session variables are
> > getting set to the proper values in the method, but when they
> > are sent back to the calling page (via a cfsavecontent method
> > to handle an image involved) and jquery displays them, the values
> > are not the current session values that were set back in the method.
> >
> > Anyone worked with this method?  (I know Ben Nadel coded it and
> > I adapted it, but I can't figure out why this isn't working.)
> >
> > Thoughts?  Suggestions?
> >
> > Thanks,
> >
> > Rick
> >
> > --
> >
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
> > "It has been my experience that most bad government is the result of too
> > much government." - Thomas Jefferson
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322064
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to