Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handler for "onAfterSend" #329

Closed
Mik4sa opened this issue Jan 15, 2019 · 3 comments
Closed

Add handler for "onAfterSend" #329

Mik4sa opened this issue Jan 15, 2019 · 3 comments

Comments

@Mik4sa
Copy link

Mik4sa commented Jan 15, 2019

Hello DevExpress,

for a project I need to have access to the generated xhr object.
I'm talking about the response from this call:

$.ajax(ajaxSettings)

Directly after it is created. Something like a "onAfterSend" event.
Knowing by which operation it was created is also necessary for this project. Since I want to process them only, if it was created by a load operation.

Is there a way that you (or me by a pull request?) can add this?

Sincerely,
Kai

@AlekseyMartynov
Copy link
Contributor

Hello

If you are using the jQuery version of the client script you can intercept XHR objects via jQuery AJAX events.

#311 seems related.

@Mik4sa
Copy link
Author

Mik4sa commented Jan 15, 2019

Actually we are using it in an angular app without jQuery.
Even though, I wouldn't know the actual load operation. Whether it's "load", "update", "insert" or "delete"

@AlekseyMartynov
Copy link
Contributor

Got you.
We'll prioritize #311. Please subscribe to that ticket.

For now, please use a manually-patched version of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants