Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JavaScriptで学ぶAjax通信
Search
Toshinori Sugita
August 14, 2014
Programming
0
220
JavaScriptで学ぶAjax通信
Ajax通信って何か?をサンプルコードを準備しつつまとめました。初心者向けです。
(Project Compass)
Toshinori Sugita
August 14, 2014
Tweet
Share
More Decks by Toshinori Sugita
See All by Toshinori Sugita
OPA and cloud resources
toshi0607
0
13k
KompalWeather: Serverless Sauna Service with Cloud Run
toshi0607
0
12k
Knativeで作るDIY FaaS / serverless days fukuoka 2019 knative workshop
toshi0607
0
4.8k
Knativeで作るDIY FaaS / serverless days tokyo 2019 knative workshop
toshi0607
4
11k
Knativeへの誘い / Go Go Knative!
toshi0607
3
5.3k
Build serverless application on top of Kubernetes #sdmel19
toshi0607
1
6k
Knativeで実現するKubernetes上のサーバーレスアーキテクチャ #CNDT2019 #1E3 / serverless architecture on the top of K8s with Knative
toshi0607
9
14k
技術書典で高めるせんとう力 #エンジニア銭湯 / Tech book fest loves sauna
toshi0607
1
6.7k
Goで学ぶKnative #mercarigo / learning Knative with Go
toshi0607
5
24k
Other Decks in Programming
See All in Programming
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.7k
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
290
Outline View in SwiftUI
1024jp
1
330
as(型アサーション)を書く前にできること
marokanatani
10
2.6k
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
290
最新TCAキャッチアップ
0si43
0
140
cmp.Or に感動した
otakakot
2
150
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
610
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.2k
CSC509 Lecture 11
javiergs
PRO
0
180
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Optimizing for Happiness
mojombo
376
70k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
A Philosophy of Restraint
colly
203
16k
4 Signs Your Business is Dying
shpigford
180
21k
Site-Speed That Sticks
csswizardry
0
24
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Code Reviewing Like a Champion
maltzj
520
39k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Six Lessons from altMBA
skipperchong
27
3.5k
GitHub's CSS Performance
jonrohan
1030
460k
Transcript
JavaScriptͰֶͿAjax௨৴ toshi0607.com 2014/8/16 @Tech Garden School Project Compass 1
͜ΕԿͷࢿྉʁ • ର ɹ− Ajax௨৴ͷ֓ཁΛཧղ͍ͨ͠ਓ ɹ− WEBαʔϏεͷUXΛߴΊ͍ͨਓ • ༰ͷϨϕϧ ɹ−
࡞ऀɿϓϩάϥϛϯάྺ8ϲ݄͘Β͍ ɹ− ֓ཁͱ؆୯ͳαϯϓϧ Project Compass 2
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 3
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 4
̍ɽAjax௨৴ͱ ʮAjaxʢAsynchronous JavaScript + XMLʣ ΛҰݴͰݴ͏ͳΒɺʮJavaScriptʢXML HttpRequestΦϒδΣΫτʣΛར༻ͯ͠αʔ όଆͱඇಉظ௨৴Λߦ͍ɺड͚औͬͨ݁Ռ ΛDOMʢDocumentObjectModelʣܦ༝Ͱ ϖʔδʹө͢Δ͘͠ΈͰ͢ɻʯ
ࢁాஶʰJavaScriptຊ֨ೖʱʢ2010ɺٕज़ධࣾʣΑΓ Project Compass 5
̍ɽAjax௨৴ͱ 6
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 7
̎ɽDEMO Project Compass 8 ©GitHub, Inc. ඦฉҰݟʹ͔ͣɻ ϩʔΧϧαʔό্Ͱ࣮ߦ͍ͯͩ͘͠͞ʂ αϯϓϧίʔυ https://github.com/toshi0607/Sato-Seminar
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 9
̏ɽAjax௨৴ͱʢৄࡉʣ αʔόͱͷ௨৴݁ՌΛߋ৽ՕॴͷΈʹө − ߴɾܰշͳڍಈ − ௨৴தૢ࡞ܧଓ ɹ Project Compass 10
ϦονͳUIߏஙʹෆՄܽͳٕज़
̏ɽAjax௨৴ͱʢৄࡉʣ ɾඇಉظ௨৴ Project Compass 11 શϖʔδߋ৽ ɾಉظ௨৴ ߋ৽ՕॴͷΈߋ৽
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 12
̐ɽJavaScriptʢjQueryͰͷ࣮ʣ Project Compass 13 AjaxΛ࣮͢ΔͨΊʹඞཁͳ3εςοϓ ※JavaScriptΛ༻ ᶃXMLHttpRequestΦϒδΣΫτΛੜ ɹ− ͜ͷΦϒδΣΫτ͕ඇಉظ௨৴Λ੍ޚ ᶄίʔϧόοΫؔΛొ
ɹ− αʔόԠ࣌ͷॲཧ༰ ɹ − ΦϒδΣΫτͷ௨৴ͷঢ়ଶมԽʹΑΓݺͼग़͞ΕΔ ᶅαʔόඇಉظ௨৴Λ։࢝
̐ɽJavaScriptʢjQueryͰͷ࣮ʣ Project Compass 14 αϯϓϧίʔυhw4-ajax-sample_js.html ᶃΦϒδΣΫτΛੜ ᶄίʔϧόοΫؔΛొ ᶅαʔόඇಉظ௨৴Λ։࢝
̐ɽJavaScriptʢjQueryͰͷ࣮ʣ Project Compass 15 αϯϓϧίʔυhw4-ajax-sample_js.html αϯϓϧίʔυhw4-ajax-sample_jq.html 40%ݮʂ JQueryͰΑΓ؆ܿʹ࠶ݱʂ
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 16
̑ɽ·ͱΊ Project Compass 17 ᶃૢ࡞ੑͷվળ ɹ− ௨৴ຖʹൃੜ͍ͯͨ͠ϖʔδνϥπΩΛղফ ɹ − αʔόͷॲཧதΫϥΠΞϯτଆͰॲཧܧଓ
ᶄύϑΥʔϚϯεͷ্ ɹ− ϖʔδͷඞཁͳ෦Λߋ৽͢ΔͷͰɺ௨৴ྔ࠷খԽ ɹ − αʔόͷॲཧ͕ͪͳ͘ɺମײ্͕ ᶅ։ൃੜ࢈ੑʗӡ༻ੑͷ্ ɹ − ϦονͳUIΛඪ४తͳٕज़͚ͩͰߏங ɹ − ಈ࡞ʹඞཁͳผͳϓϥάΠϯ͕ෆཁͰɺಋೖ͕༰қ −
࣍ ̍ɽAjax௨৴ͱʢ֓ཁʣ ̎ɽDEMO ̏ɽAjax௨৴ͱʢৄࡉʣ ̐ɽJavaScriptʢjQueryʣͰͷ࣮ ̑ɽ·ͱΊ ̒ɽࢀߟࢿྉ Project Compass 18
̒ɽࢀߟࢿྉ Project Compass 19 ɾࢁాஶʰJavaScriptຊ֨ೖʱ ɹʢ2010ɺٕज़ධࣾʣ ɹ− ଟஶॻ͋Γɻ୯ʹಈ͚͍͍ʂͱ͍͏Θ͚Ͱͳ͘ɺ ɹɹٕज़ొͷഎܠ͔Βղઆ͕ΈͬͪΓͰ͢ɻେ͖Ͱ͢ɻ ɾാҰഅஶʰWeb੍࡞ͷݱͰ͏jQueryσβΠϯೖʱ
ɹʢ2013ɺWEB PROFESSIONALʣ ɹ − WebσβΠφʔ͚ͱ͍͏ׂΓΓ͕͋Γɺ ɹɹ߅ͳ͘આ໌͕಄ʹೖ͖ͬͯ·͢ɻ ɾYuta Motishige࡞ʰݟ͍͢ϓϨθϯࢿྉͷ࡞Γํʱ ɹʢhttp://www.slideshare.net/yutamorishige50/how-to-present-betterʣ ɹ − ύϫϙ࡞ηϯε0ɺࡢಉҰࢿྉ41ճ࡞Γ͠ͷ ɹɹͦͷޙʹ͜ͷࢿྉΛΓ·ͨ͠…ɻ