I'm using javascript client side routing/ajax. So when the page loads and Dropbox's drop-in api scans the page for buttons like this:
<a href="https://dl.dropboxusercontent.com/s/deroi5nwm6u7gdf/advice.png" class="dropbox-saver"></a>
The DOM for the a
has not yet been drawn.
Is there a way to get the Drop-in API to rescan the page after the page has loaded correctly so that the button can appear?
I don't think there's a way to cause the library to re-scan the page, but you can always create the Saver button yourself, eg Dropbox.createSaveButton(url, filename);
. (See https://www.dropbox.com/developers/dropins/saver#creating-buttons for details.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.