Thanks Jared, that helped me a lot. It's all about syntax...
On Tue, Dec 1, 2009 at 4:00 PM, Jared Rypka-Hauer
<[email protected]>wrote:
> Well, if event.getValue("user") is returning a CFC, you're not going to get
> what you want because CF is going to treat that CFC as a struct and send you
> back what amounts to this:
>
> {"getFirstName":"";"getLastName":""}
>
> where the key names are the funcitons and the values are all empty because,
> well, that's what CF does.
>
> If event.getValue("user") is a struct, then your syntax should actually
> work pretty well, you might try using FireBug to see what the result
> actually looks like... in your callback, do something like myUser = d; and
> then after the AJAX call has been made to the remoting service and the
> myUser variable should exist within the page, try going into Firebug's
> console and just type "myUser". It should then expose the myUser variable to
> you in a way that you can see it and its content.
>
> J
>
> On Dec 1, 2009, at 4:44 PM 12/1/09, Chuck Savage wrote:
>
> > Basically I want
> >
> > function handleCallback(d){
> > alert("Email: "+d['USER.EMAIL']);
> > }
> >
> > though in the end that value will go into a div. I've tried using the
> > example I found on Ray Camdon's site, but he also gives the example of
> > a query, and parsing it into a struct.
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>
--
Chuck Savage
SeaRisen LLC
6292 Arapahoe Rd. #7
Boulder, CO 80303 USA
(303) 931-9556
Website: http://www.SeaRisen.com
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en