Your SlideShare is downloading. ×
実はとれました。System xhrでcsv形式のopen dataを取得する
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

実はとれました。System xhrでcsv形式のopen dataを取得する

362
views

Published on

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
362
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 実はとれました。 System XHRでCSV形式のOpen Dataを取得する
  • 2. http://www.w3.org/wiki/ System_Applications_WG:_Cross_Origin_XHR
  • 3. System XHRは Firefox OSの Privileged Appで使える
  • 4. var url = 'http://.../hoge.csv'; request = new XMLHttpRequest({ mozSystem: true }); request.open('get', url, true); request.responseType = 'text'; request.overrideMimeType("text/html;charset=Shift_JIS"); request.addEventListener('error', errorCallback); request.addEventListener('load', successCallback); request.send(); app.js
  • 5. "type": "privileged", "permissions": { "systemXHR": { "description": "Required to load remote content" } }, manifest.webapp
  • 6. うごくやつ公開してます http://goo.gl/H9wxEn
  • 7. Happy Hacking ;)