Sending jQuery $.ajax POST requests without invoking function objects -


so i'm using jquery's $.ajax function send data web service. have code this:

var updatemodule = function (module) {    return $.ajax(moduleserviceurl + "/updatemodule/" + module.workflowmoduleid,    {       type: "post",       data: module    }); }; 

"module" javascript object has fields, , update function update fields input.

the problem facing $.ajax call invoking update function. think understand reason this, assuming functions getters, undesirable in case.

is there way tell jquery ignore fields functions, rather invoking them? or should serialize object string or data-only object myself, rather relying on jquery it?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -