Coder Social home page Coder Social logo

google-sheets's People

Contributors

addyosmani avatar antleblanc avatar atotic avatar ebidel avatar steren avatar zoramite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-sheets's Issues

Cannot access published data sheet

I am trying to access the following Google spreadsheet:
https://docs.google.com/spreadsheets/d/1E77UIqc5VD0KFjJjHK_dLbWBl7bw8_eUmeUcxxAA6sM/edit#gid=1380168487

According to the docs, the following code should do the trick:

<google-sheets id="sheet" key="1E77UIqc5VD0KFjJjHK_dLbWBl7bw8_eUmeUcxxAA6sM" gid="1380168487" published></google-sheets>

However, I am getting the following error on my console:

XMLHttpRequest cannot load https://spreadsheets.google.com/feeds/list/1E77UIqc5VD0KFjJjHK_dLbWBl7bw8_eUmeUcxxAA6sM/mtpx19/public/values?alt=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access. The response had HTTP status code 400.

When I load the above feed URL, https://spreadsheets.google.com/feeds/list/1E77UIqc5VD0KFjJjHK_dLbWBl7bw8_eUmeUcxxAA6sM/mtpx19/public/values?alt=json in my browser, I see the following error message:

Invalid query parameter value for grid_id.

After a bit of research, I found this thread on Google Groups, which explains that the format of the second parameter in that URL has changed, and suggests to try the value '1' instead.

Since the value is computed by the gid_to_wid function inside the <google-sheets> tag, I tried patching line 118 to say return 1; instead (alternatively, we could set the gid attribute to 31579, which produces the same result).

Now, the sheet is loaded correctly and I can access its contents through the rows property on the <google-sheets> tag.

If this is a permanent change in the Google Spreadsheets API, this component should probably be updated to reflect that.

Header row data not included in with cell row data

Since only a list based feed is used to obtain the sheet data, there is no header row data returned in the google-sheet-data event and thus no way of obtaining the content of the header row cells.

When working with the data returned and want to display it in HTML, the header row cells are essential for displaying column titles, particularly in the case of displaying the data as a table.

Is this a limitation of this web component? Are there plans to include this header row data? Is there an alternative or workaround? Thanks

OAuth2 Issue?

Just trying to pull up some data from the demo page and not working with Polymer 2.0-Preview

google-sheets.html:402 Uncaught TypeError: Cannot read property 'feed' of undefined
    at HTMLElement._onCellRows (google-sheets.html:402)
    at HTMLElement.handler (event-listeners.html:21)
    at HTMLElement.fire (legacy-element.html:188)
    at HTMLElement._handleResponse (iron-ajax.html:479)

My code

    <html>
      <head>
        <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
        <script src="/bower_components/webcomponentsjs/webcomponents.min.js"></script>
        <link rel="import" href="/bower_components/iron-signals/iron-signals.html"/>
        <link rel="import" href="/bower_components/iron-ajax/iron-ajax.html"/>
        <link rel="import" href="/bower_components/google-sheets/google-sheets.html"/>
      </head>
      <body>This is that thing that does the stuff</body>
      <dom-bind>
        <google-sheets
                       id="sheet"
                       key="0Anye-JMjUkZZdDBkMVluMEhZMmFGeHpYdDJJV1FBRWc"
                       tab-id="1"
                       published
                       rows="{{rows}}"
                       tab="{{tab}}"
                       open-in-google-docs-url="{{openInGoogleDocsUrl}}">
        </google-sheets>
        <dom-repeat items="{{rows}}">
          <template>Row your boat</template>
        </dom-repeat>
      </dom-bind>
    </html>

Specify GID other than "0" produces console error

When Specifying a gid other than gid="0" for example: gid="1944964720" I get the following error in console and do not get back any data.

XMLHttpRequest cannot load https://spreadsheets.google.com/feeds/list/1rVmJWbWUyr-xNWw-FJNDUHEGHL_UgNpIDcwxmNH0RR8/w5z7e2/public/values?alt=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:59816' is therefore not allowed access. The response had HTTP status code 400.

Works fine with the same spreadsheet and pulling from first tab which is gid="0".

First release buggy

Seems the first release is a little buggy. I have downloaded the .zip and ran bower install but everything has gone into the bower_components folder.

In the demo.html everything is pointing to a parent directory ../platform/platform.js

Google sheets

Can able to convert excel into web app with EASA software , Spreadsheetconvert and Appizy ..But cannot able convert google sheets into web app .......
Pleases How to help me for Google sheets convert to web app .....

Component no updated when gid changes

From the doc "If gid is updated at a later time, the underlying data is also updated".

So I did try that on the map-sheet demo:

document.getElementById('sheet').setAttribute('gid', 1)

But nothing happens. I assumed at least left section would be updated...

So I also tried changing the other one:

document.getElementsByTagName('google-sheets')[1].setAttribute('gid', 1)

Also no update.

BTW. Changing key also don't do much (this is my test sheet key):

document.getElementsByTagName('google-sheets')[0].setAttribute('key', '0AhyCpLnoU3uidGxBRjNSVkk0ZnJUTTR0WFZUdTFad3c')

I assumed this would all work pretty much the same as changing src attribute on images.

Tested in Chrome 35 (current latest), Windows 7.

Published version of Google Sheets/Docs not updating

Hi,
This is probably more of a browser cache issue but I would like to find a way to ensure that changes made to my sheet are reflected in the web page (web component).

Google Sheet:
I find that the published version of my sheet (or doc for that matter) are not reflecting the edit version of my sheet (when refreshing the published version of the sheet; works properly upon creation of a sheet).

Web Component:
I am seeing a similar thing happen in the web component and wonder if we can add some javascript (inside the web component) to force a refetch of content from the published version of the sheet.

Thanks a bunch you guys,
Chat soon
Tim

License is Apache 2.0, but several files are "all rights reserved".

The LICENSE file claims google-sheets is Apache 2.0, but a number of files have the following header:

<!-- Copyright (c) 2014 Google Inc. All rights reserved. -->

These are the files:

/tests/google-sheet.html
/tests/index.html
/tests/private.html
/tests/published.html
/tests/tests.html
/demo-private.html
/demo.html
/index.html

This suggests that the only copyright-able files in this repository that are Apache 2.0 licensed are README.md and google-sheets.html. Is this intended?

Port to 0.8

  • initial port
  • published data
  • private data
  • tests

Fix bower resolutions

It seems like there are a few items in GoogleWebComponents which need to be versioned up so you can install without needing resolutions. Just noticed it here with google-sheets.

Maintenance release

google-sheets is a useful component and fits nicely with Polymer data-binding model. Unfortunately it seems that it hasn't been updated in awhile - are you planning to migrate it to Polymer 2.0 and the latest Google Sheets API?

Re-assess port

We had to pull this from google-web-components as it was breaking the catalog. The culprit is a bad merge from 55ef6e0 which includes some merge conflicts.

I stepped back through history trying to get the port working but was unable to. Filing for us to look at post I/O.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.