Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I can display a nice folder list for a Google Docs folder via a link like:

https://docs.google.com/folder/d/ID/preview

(where ID is replaced by the Google assigned id of the folder)

But when when I attempt to embed that on my web site in an iframe, I get a blank iframe. Is there a solution?

share|improve this question
    
I note that other URLs ending in /preview, such as for a Google Doc word processing file, display fine in a frame. So why not folder listings? –  Victoria Dec 13 '12 at 21:05
    
That requires authentification. In Google Sites it would be do-able. –  Jacob Jan Tuinstra Dec 14 '12 at 7:40
    
@Jacob Indeed. All the browsers that would want to do this for my application would already be logged in to Google, and have share permission on the folder. I can embed a Doc fine, why not a Folder? What is the security issues that permits one, but not the other? –  Victoria Dec 14 '12 at 20:36
    
Perhaps this is of use: sites.google.com/site/appsscriptexperiments/home/…. See the item below this one as well. –  Jacob Jan Tuinstra Jan 27 '13 at 11:29
    
Well, that might have possibility, if the App Script document (a spreadsheet I guess) can be embedded... A lot of overhead to do something that should be simple, though. –  Victoria Jan 28 '13 at 5:33
add comment

1 Answer 1

up vote 2 down vote accepted

Somewhere along the line, I finally stumbled across some documentation or sample code that led me to this answer, which has been working a few months now:

https://drive.google.com/embeddedfolderview?id=......#grid

(in the above example, replace the ...... with the id of the folder you wish to display)

Once you know the magic incantation, then you can find the documentation for it...

This isn't the official documentation for the feature, but it is a useful one: https://sites.google.com/site/mori79/html-gadgets/how-tos/google-drive#TOC-Folders

I don't know where the official documentation for the feature is, nor if there is any.

Searching now, I find this answer in a stackoverflow question, although it hasn't been uprated (until I did): http://stackoverflow.com/questions/21367610/showing-documents-from-google-drive-on-webpage And also this one: http://stackoverflow.com/questions/20681974/how-to-embed-a-google-drive-folder-in-a-website

share|improve this answer
    
Your first link doesn't work –  Eight Days of Malaise Jun 26 at 2:56
    
It isn't supposed to be an active link, but rather an example. Replace the ...... with the id of the folder you wish to display. –  Victoria Jun 26 at 5:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.