Just use aUPSprice[0].PRICE and you should be fine. :o)
Cheers,
Chris
On Thu, Feb 12, 2009 at 9:30 AM, josegura93 <jsegura01@...> wrote:
I having a tough time trying to access a value from my return. Below
is my ajax call:
$.AjaxCFC({
url: '/cfc/ups.cfc',
method: 'getShippingOptions',
data: {'shiptozip': zipVal,'weight': weightVal,
'serviceCode': servCodeVal},
unnamedargs: false,
serialization: 'json',
success: function(aUPSprice){
alert(aUPSprice[0].price); /* looking for
price value but alert displays "Undefined" */
$.dump(aUPSprice);
}
});
})
The dump:
array
0[object]
object
PRICE [number] 6.89
OPTION [string] Ground
1[object]
object
PRICE [number] 7.32
OPTION [string] 3 Day Select
--
http://cjordan.us