google-docs

Google Spreadsheets retrieving JSON feed

大憨熊 提交于 2019-12-04 13:29:34
问题 I recently started using the "New Google Sheets" (spreadsheets) and they changed the URL to a shared public spreadsheet and I am unsure how to obtain a JSON feed of the spreadsheet data. Based on data from this URL: https://developers.google.com/gdata/samples/spreadsheet_sample I can obtain the JSON data from an older version spreadsheet using the key parameter found in a URL of this format: http://spreadsheets.google.com/feeds/feed/key/worksheet/public/basic?alt=json-in-script&callback

google docs textcursor

杀马特。学长 韩版系。学妹 提交于 2019-12-04 12:36:31
I need to create an application which is similar to google docs. I have seen that google docs doesn't use any textarea but regular divs to create pages. But what I don't know is how they manage to get a text cursor. Is it an image blinking? cause I didn't see any image when i tried to see the webpage code with chrome developer tools. How do they do it? Google Docs uses unique editing method. There is no text ares with contentEditable on, but everything is rendered using DOM. It listens for keystrokes and manipulates DIVs. Cursor is just absolute positioned DIV which is programatically hidden

Can I submit form info to Google Spreadsheets with jQuery's AJAX?

空扰寡人 提交于 2019-12-04 11:04:45
问题 I like being able to use google spreadsheets, but it's tricky to integrate into my site visually. So I was thinking that I would recreate their form (an easy cut/paste), submit the form via AJAX, the data would go to the spreadsheet and I could redirect my user to something more pretty than google's default 'thank you for doing whatever you just did' page. But i'm having a lot of trouble submitting the form. I've got my js to the point where the url that the submission goes to (and the get

Google Docs viewer in IE

 ̄綄美尐妖づ 提交于 2019-12-04 10:15:34
I've searched high and low for a solution, but can't find one. I'm using Google Docs Viewer to view PDF files. It's a great tool, but I can't seem to get it working in Internet Explorer (7 or 8). All my images come up as a 'missing' icon. If I view the file externally, it seems to load fine and it will start working (I'm assuming because the images are being cached). The document is being displayed in an iframe and works in all other browsers. Has anyone come across a solution to get it to work in IE? If not, is there an alternative that can display PPT and PDF files? The only solution I've

Google Docs iFrame: How to customize the css of an embedded Google Docs iFrame

末鹿安然 提交于 2019-12-04 09:34:00
问题 I have this code of an iframe displaying a google docs document: <div itemprop="description" class="col-xs-12 no-h-padding" id="article_desc" style="margin:0 auto; width:90%; float:none;"> <iframe src="https://docs.google.com/viewer?url=http://example.com/docs/1.pdf&hl=ar&embedded=true" scrolling="no"></iframe> </div> The iFrame works great and display the following iFrame: Now i want to change the grey background as seen in the picture above into a white background color, i've been searching

Google Docs viewer disable download

无人久伴 提交于 2019-12-04 07:50:22
Please take a look at this link http://jsfiddle.net/C7Py6/3/ The last icon on google viewer's toolbar - enables user to view on new browser window and download PDF. The question is, how can I make it view only and disable download (At least disable this toolbar item). Is that possible with google viewer? or is there any other viewer that works like Google Viewer but view-only? You can host your PDF files on Google Docs and prevent viewer downloads. To do this do followings: Once you login into your Google Docs account at docs.google.com website, you should see listing of documents in your

Google Multiple Sign-ins - Is there a way to specify the account in the URL?

不羁的心 提交于 2019-12-04 07:43:12
We recently switched our team to Google Apps and with that, everyone got a Google Apps account . However, for those of us with a GMail account as well, this makes it so that bringing up Gmail in your browser opens up either your personal account or your Google apps account. Even though GMail has multiple Sign-ins enabled for both of my accounts, I still have to spend time switching through both accounts. I was wondering if there was a way to specify the account I wanted to use in the URL directly, which would allow me to create a bookmark for GMail for both of these accounts: something like:

Pull csv to Google Sheets with basic authentication

99封情书 提交于 2019-12-04 06:22:37
问题 I need to pull a csv from a URL that requires basic auth. I have found this code that works, apart from parsing the csv, clearing and setting the cells. I think there is a few bugs as it is old code, such as clear.contents() should be clear.content() . And even with hard coding the data in where sheets is, im still struggling to get it to work, has anyone else found a solution?: // this function assumes the CSV has no fields with commas, // and strips out all the double quotes function

google doc script, capitalize sentences without removing other attributes

余生颓废 提交于 2019-12-04 05:24:58
问题 i want to create a script to capitalize sentences in a google doc, but without changing existing attributes in certain words. for example, in a google doc, there would be several paragraphs, with each paragraph having several sentences. in such google doc, there would be hyperlinks, words in boldface , words in italics , words with underline, etc. i want all of these attributes to stay intact; the script should only capitalize the sentences, without removing the existing attributes for these

Insert a table into google doc at cursor position

雨燕双飞 提交于 2019-12-04 04:44:12
I am working on a Google Docs add on that turns text into a table. It allows the user to either 1) select some text or 2) place their cursor inside the text they want, and when a custom button in the sidebar is clicked, the script will: Insert a single row, single cell table at the cursor position or the startIndex of the selected text, Place inside that cell either the text a user has selected or the complete text of the element in which the cursor is placed, Delete the original selected text/element so that only the table remains (Essentially, this is just 'drawing' a table around the