0

I use Angular.js and this github.com example to invoke remote action

 Visualforce.remoting.Manager.invokeAction.apply(
            Visualforce.remoting.Manager, args);

I need to 'hook' all this SF requests/responses on a page to save arguments.
Like:
Add a “hook” to all AJAX requests on a page or
catch all ajax requests in jquery

I don't want to save arguments before .apply line:

saveArguments(args);
Visualforce.remoting.Manager.invokeAction.apply(
            Visualforce.remoting.Manager, args);

I need to make separated service/module.

I'm going to override the native invokeAction(). Is it good way? If invokeAction uses AJAX, I can't find anything in Visualforce.remoting.Manager.invokeAction related with AJAX.

So could you give me some tips how I can... maybe... only override the native invokeAction() or you know better way.

Thanks.

1 Answer 1

0

I just used these approaches Add a “hook” to all AJAX requests on a page.
jQuery approach catch all ajax requests in jquery don't work for me.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .