Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Submit additional form data on DELETE #2656

Closed
jesus-curiel opened this issue Oct 11, 2013 · 4 comments
Closed

Submit additional form data on DELETE #2656

jesus-curiel opened this issue Oct 11, 2013 · 4 comments

Comments

@jesus-curiel
Copy link

Can i send additional data on DELETE action?
Im trying to catch the database name where the file is stored (dynamic db_table).

@blueimp
Copy link
Owner

blueimp commented Oct 11, 2013

The destroy handler will pick up any attributes set as data-attribtutes on the delete button and use them as options for the $.ajax call:

<button class="delete" data-url="/delete-url/file.jpg" data-data='{"db_name":"your_db"}'>Delete</button>

Please post further support requests to the support forum: #2190

@blueimp blueimp closed this as completed Oct 11, 2013
@ve3
Copy link

ve3 commented Apr 4, 2014

Thank you. I'm looking for this!

@paulercommunications
Copy link

Perfect! Thanks much!

@sky94132003
Copy link

anyone can example the $.ajax call for it ?

I need to delete the dynamically folder

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

No branches or pull requests

5 participants