¡@

Home 

2014/10/16 ¤W¤È 12:02:19

jquery Programming Glossary: callserver

Promote callback onSuccess return value to the Caller Function return value

http://stackoverflow.com/questions/768457/promote-callback-onsuccess-return-value-to-the-caller-function-return-value

I get is always 'undefined'. A super simplified version of the generic function without all my logic would be function CallServer urlController .ajax type POST url urlController async false data form .serialize success function result if someLogic .. function errorThrown return false And the function calling it would be something like function Next var result CallServer Signum TrySave if result true document.forms 0 .submit The result variable is always 'undefined' and debugging it I can.. executed. Any ideas of why this is happening How could I bubble the return value from the callback function to the CallServer function Thanks javascript jquery ajax jquery ajax share improve this question Just in case you want to go the asynchronous..

Calling a server side function using a javascript

http://stackoverflow.com/questions/9908210/calling-a-server-side-function-using-a-javascript

a client side event you could use JQuery and then use the following JavaScript function to contact the Server function CallServer .ajax url 'webserviceURL' type POST datatype json success function result if result.Success else share improve this..