Web application apis

934 views

Published on

Web application apis

Published in: Technology
1 Comment
3 Likes
Statistics
Notes
  • 20110519_HTML5 - wwb Application APIs
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
934
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Web application apis

  1. 1. Web application APIs<br />chaehwan.li@gmail.com<br />
  2. 2. Reference URL<br />Latest Published Version:<br />http://www.w3.org/TR/html5/webappapis.html#webappapis<br />Latest Editor's Draft:<br />http://dev.w3.org/html5/spec/webappapis.html#webappapis<br />
  3. 3. Web developer and implementor<br />Web developer view<br />Scripting<br />Events<br />Base64 utility methods<br />Timers<br />User prompts<br />System state and capabilities: the Navigator object<br />Implementorview<br />Enabling and disabling scripting<br />Processing model<br />Event loops<br />The javascript: URL scheme <br />
  4. 4. Scripting<br />Script는 web page 작성자가 자신의 문서와 interaction을 하기 위한executable code이다.<br />mechanisms<br />Script element<br />inline javascript: URLs<br />Event handler : addEventListener() <br />XBL or SVG<br />
  5. 5. Events<br />Event handlers<br />Event handlers on elements, document objects, and window objects<br />
  6. 6. Base64 utility methods <br />64개의 문자로 모든 8bit 문자를 표현 <br />“A-Z”,”a-z”,”0-9”,”+”,”/”,”=“<br />only ascii text만을 이용해서 데이터를 encoding 할 수 있음.<br />Unicode string<br />atob()<br />btoa()<br />
  7. 7. Timers<br />methods<br />setTimeout()<br />clearTimeout()<br />setInterval()<br />clearInterval()<br />
  8. 8. User prompts<br />Simple dialogs<br />prompt(), alert(), confirm()<br />Printing<br />print() <br />beforeprint / afterprint event<br />Dialogs implemented using separate documents<br />showModalDialog() <br />
  9. 9. System state and capabilities: the Navigator object - 1/3<br />represents the identity and state of the user agent <br />Client identification<br />appName(), appVersion(), platform(), userAgent() <br />Custom scheme and content handlers<br />registerProtocolHandler(scheme, url, title)<br />registerContentHandler(mimeType, url, title)<br />
  10. 10. System state and capabilities: the Navigator object - 2/3<br />Security and privacy<br />Hijacking all web usage<br />Hijacking defaults<br />Registration spamming<br />Misleading titles<br />Hostile handler metadata<br />Leaking intranet urls<br />Leaking secure urls<br />Leaking credentials<br />
  11. 11. System state and capabilities: the Navigator object - 3/3<br />External interface<br />AddSearchProvider()<br />IsSearchProviderInstalled()<br />
  12. 12. Example sites<br />http://help.dottoro.com/ljvtnmli.php<br />event list 비교<br />html4 : http://www.w3schools.com/tags/ref_eventattributes.asp ( DOM Event level2 일부 포함)<br />html5 : http://help.dottoro.com/larrqqck.php <br />

×