Hi to all i found a working solution for that problem but i have a feeling that i am missing something(may be)
instead of using a object option i created a function and that returned the object options : fuction(){ return { beforeSubmit: > SocialSite.Home.UserInfo.friendRequest, success: SocialSite.Home.UserInfo.friendResponse } } and while using it call the options fucntion $('#addasfriendform').ajaxSubmit(SocialSite.Home.UserInfo.options()); if anyone got some more elegant solution please post if