How to handle a JSON callback response?
Posted: Sun Sep 27, 2009 4:19 am
Hi
In PHP, I setup through a JSON endpoint to request a callback using a JavaScript function labeled MyJavaScriptCallback.
And the JSON response after execution is a long string that contains JavaScript, for example:
In PHP, how do I handle this callback response?
Thanks
Jeff in Seattle
In PHP, I setup through a JSON endpoint to request a callback using a JavaScript function labeled MyJavaScriptCallback.
And the JSON response after execution is a long string that contains JavaScript, for example:
Code: Select all
if(typeof MyJavaScriptCallback == 'function') MyJavaScriptCallback(...);Thanks
Jeff in Seattle