I have an SVG generated on a webpage. Is it possible to add a link that someone could click on to open the svg in google drawing without having to download it? Ideally it would send the user here: https://docs.google.com/drawings
I have enabled Drive UI integration using https://developers.google.com/drive/v3/web/enable-sdk and I believe I have credentials. I'm not sure how to get a file on Google Drive though & provide a link to a user.
Related
I want to build an application that opens pdf in web view. For that i need a embedded link of google docs. The link should be like this https://docs.google.com/viewer?embedded = true&url. But I am not able to make it cam someone tell how can I make it.
I am using a custom font for a web page with font-face.
I use node as a back-end with express and I have the custom font in a "public" folder. Is it possible to hide somehow the font from the user to be able to download it?
Is it possible to hide somehow the font from the user to be able to download it?
No, it is not. If the font is usable in the user's browser, then by necessity, the browser downloaded the font. If the browser downloads the font, so can anyone else.
This is the architecture of the web. The same is true for images displayed in the browser, HTML displayed in the browser or Javascript code run in the browser or any resource used in the browser. All are available to the end user if they so choose to access them directly.
Good morning, eveyrone
I'm working on an application using Google Earth and I had two questions.
The first question involves the pop up window. I want to get an external website to appear in this bubble. I can either hardcode the website into the description of the placemark or use an iFrame. Are there any other options I can use to get a website into Google Earth?
Second question: I want to ensure that the user, at all times while using my kml, has access to certain buttons. Is there a way without querying web application every few seconds to ensure that the button remains available to the user?
Thank you for your time.
The answer to you first question is no - other than loading the html directly or using an IFRAME there is no way to display markup in the content balloons.
I am not sure what you mean in you second question, are you developing a web-based application using the Google Earth Plugin - or a kml layer for use in the google earth application. Either way you should not have to query anything to make sure a button is visible.
i'm trying to build a batch image downloader in chrome. Basically, i will overlay a small download square to each image on the page and user clicks on it to download. Or the user can click to download all images on a page. I'm currently stuck on figuring out how to download the images. The best i can come up with is to use XHR to send the image to another server, the user can then retrieve it there.
If anyone have a solution for me. It would be much appreciated!
Jason
I believe you can XHR the images and using the File API you can store them locally.
Take a look at the following site http://www.html5rocks.com/features/file there are additional resources on the right column that has detailed examples and tutorials. Such as http://www.html5rocks.com/tutorials/file/filesystem/
Mohamed Mansour
This code will do the trick for you: https://gist.github.com/1049553
It's very simple usage of a 'feature' in chrome when you open an image in a new tab.
We have a requirement for people to be able to look at documents people have uploaded to us (mainly word, possibly some rtf) via our web app. We want the user to be able to open the docs inside the browser, but keep the original formatting and not have the need for another application (like word, acrobat etc).
We thought about using google docs to do this, there appears to be some batch uploading options to get stuff in there but does anyone know if we can use the API's to keep the user on our site without them having to login to google docs themselves, and keep them still on our website with re-directing to google docs to view them.
Cheers
There's an option to make documents public (Somewhere in Share->Advanced Options).
Using api you can get list of documents in your google docs account, you can even search em. In your app you could make a link to the document in google docs which opens in a new window. That way your user will never navigate away from your page. An alternative would be to use an IFrame, but it's considered bad practice.
A completely different approach could be to automatically generate and host a pdf each time someone uploads a file. There are scripts/programs which can do that, just call them after you receive a file.