If "dat" is already an object literal (as below), why do you need to serialize
it? Doesn't the the ajax() data take care of that for you if passing an object?
> If I use serialize I get nothing passed as a post argument. I am
> requiring all args and I get the error as normal, "...required but not
> passed in".
>
> var dat = {
> 'OBJ': obj,
> 'VAL': val,
> 'ATTR': attr,
> 'TIMESTAMP': time
> };
> return $.ajax({
> url: "mycfc.cfc?method=dbupdate",
> dataType: 'json',
> data: $("dat").serialize(),
> type: 'post',
> success: callBack
> });
>
> Serialize() seems to return nothing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:333246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm