Doh!  I'm an idiot!

I typed
"components/siteManagerData.cfc?method=mGetManagerPermissions&returntype=json",

Notice the end..."returntype" where it should be "returnformat=json"...

jQuery uses datatype: "json"... I just transferred the "type" part to the
CF.

I caught this earlier but, gmail doesn't display the original post until
someone responds...annoying.
I could have saved you some time, Ray...

But thanks for the reply!

Rick

On Sat, Jun 6, 2009 at 5:26 PM, Raymond Camden <[email protected]> wrote:

>
> Is it CF8? ReturnType was added in CF8.
>
> On Fri, Jun 5, 2009 at 11:13 PM, Rick Faircloth<[email protected]>
> wrote:
> >
> > Before I get into code, I thought I'd just ask if there is a usual reason
> > why a jquery ajax function
> > (which I have used successfully on other sites) would be returning this
> > mesage in Firebug:
> >
> >
> > <wddxPacket version='1.0'><header/><data><struct><var
> > name='LOGIN'><string>Login Successful</string>
> > </var></struct></data></wddxPacket>
> >
> > Instead of the json formatted data I'm expecting?
> > Is is something typical and obvious usually?
> >
> > If not, I'll start supplying code.
> >
> > Well, I will share this much to get started so you'll see that json is
> > specified as the returntype and dataType:
> >
> >     $.ajax   ({  cache:    false,
> >                     type:      "post",
> >                     url:
> >
> "components/siteManagerData.cfc?method=mGetManagerPermissions&returntype=json",
> >                     dataType:   "json",
> >                     data:    values,
> >                     success:   function(response){
> >
> > Thanks for any feedback.
> >
> > Rick
> >
> >
> ----------------------------------------------------------------------------------------------------------------------------------------
> > "Ninety percent of the politicians give the other ten percent a bad
> > reputation."  Henry Kissinger
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to