SUNY-Albany-CCI-INF362 / whatev3r

Team Whatev3r's Project
http://SUNY-Albany-CCI-INF362.github.io/whatev3r/
Other
0 stars 6 forks source link

Loading google docs into Timeline #65

Closed everett-f closed 10 years ago

everett-f commented 10 years ago

@roshinc I'm having trouble getting a google doc to display the information. I get this error in the consol. "XMLHttpRequest cannot load https://drive.google.com/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&mode=public&callback=onJSONP_Data. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access. "

I've made a new branch called timeline.js and the file is in guide/generaltimeline.html. Take a look at line 30, Where "source" is. Below is a quick link to the page https://github.com/SUNY-Albany-CCI-INF362/whatev3r/blob/timeline.js/guide/generaltimeline.html

roshinc commented 10 years ago

@extremezoo yea doing a request from localhost to anywhere on the web is hard to get around. It doesn't really have anything to do with your code. Its a security thing. Give me some time and I'll see what I can come up with.

roshinc commented 10 years ago

@extremezoo what os and browser are you using?

everett-f commented 10 years ago

@roshinc I have Windows 7 64bit and I was testing it on chrome. I'm also going to read more about this too

everett-f commented 10 years ago

@roshinc if worst comes to worst, the source is able to accept a json file. It's just not going to be as easy as using Google docs

roshinc commented 10 years ago

@extremezoo it not a problem when you put it on github. It only happens when running on a local machine. You can do this https://www.youtube.com/watch?v=pw-OUVzo0t8 for test on your local computer. but use the browser only for that thing. Don't browse the web with the browser that opens up.

everett-f commented 10 years ago

@roshinc Okay man thanks for checking this out. I'll look at the video

roshinc commented 10 years ago

No problem, let me know if it works.

everett-f commented 10 years ago

@roshinc ,It didn't work at first, but I am now using the Prepos App and I changed the template so that it works now. Thank you. @Rafaelflores92 Can I have a link to your google docs timeline when you get a chance?

roshinc commented 10 years ago

Cool. https://docs.google.com/spreadsheet/ccc?key=0Agemj7XmJRHMdFRXV3ItOVNfaDVCeDFwQVJULThRQ0E&usp=sharing

everett-f commented 10 years ago

@roshinc Thanks