cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Triggering the Embedder using JavaScript

Triggering the Embedder using JavaScript

IceManLoneWolf
Explorer | Level 3
Go to solution
var options = {
      // Shared link to Dropbox file
      link: "https://www.dropbox.com/sh/keptcjl08q3wsid/AACui966iXcXPbagCJ2py2L-a?dl=0",
      file: {
        // Sets the zoom mode for embedded files. Defaults to 'best'.
        zoom: "best" // or "fit"
      },
      folder: {
        // Sets the view mode for embedded folders. Defaults to 'list'.
        view: "list" // or "grid"
        headerSize: "normal" // or "small"
      }
    }
    Dropbox.embed(options, element);

In addition to the above code and the embed code snippet is there anything else I need to get the dropbox embedder to work? Embedding via anchor links works, but I can't trigger it using the javascript code above in order to customize it a bit.

11 Replies 11

Bryantsssss
Explorer | Level 4
Go to solution

No worries, is it possible to pass the folder password directly through the link? I would like to embed it on a webpage where users can see it, but prevent random people from stumbling upon the link.

Greg-DB
Dropbox Staff
Go to solution

@Bryantsssss No, unfortunately there isn't a way to do that either, but we'll consider it a feature request.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Bryantsssss Explorer | Level 4
What do Dropbox user levels mean?