DMXzone DropZone Add-on Support Product Page
Update a list after dropping?
Asked 01 Sep 2016 07:18:57
1
has this question
01 Sep 2016 07:18:57 Brad Lawryk posted:
I am still looking for a way to run a refresh of a list after uploading images with drop zone .... is this possible to run a list after insert? Replies
Replied 25 May 2017 06:42:45
25 May 2017 06:42:45 Ben Pleysier replied:
Brad, I have managed to refresh the list by adding an onSuccess event to the constructor. My constructor now looks like
jQuery("#dropzone".dmxDropzone(
{"siteName": "classiccars", "url": "../dmxConnect/api/Images/ImagesDropzone.php", "maxFilesize": 2, "acceptedFiles": ".gif,.jpg,.jpeg,.bmp,.png", "onSuccess": "dmxServerActionControl('run','execImagesList',{},this);"}
);
jQuery("#dropzone".dmxDropzone(
{"siteName": "classiccars", "url": "../dmxConnect/api/Images/ImagesDropzone.php", "maxFilesize": 2, "acceptedFiles": ".gif,.jpg,.jpeg,.bmp,.png", "onSuccess": "dmxServerActionControl('run','execImagesList',{},this);"}
);