Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Desarrollo FrontEnd con JavaScript - S04
Search
Gustavo Leon
December 01, 2013
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Desarrollo FrontEnd con JavaScript - S04
S04 – jQuery, Promises y $.Deferred:
- jQuery.ajax
- Promises y Deferred Object
Gustavo Leon
December 01, 2013
More Decks by Gustavo Leon
See All by Gustavo Leon
Usando Preact - Una alternativa ligera a React
hpneo
0
370
Manejando Docker containers con Ruby y backticks
hpneo
0
410
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
560
Universal Web apps con JavaScript
hpneo
0
360
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
750
Xamarin
hpneo
1
330
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
130
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
83
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
82
Other Decks in Programming
See All in Programming
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
190
Webの地図
yosuke_furukawa
PRO
6
4.8k
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
7
5k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
310
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
850
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
180
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
550
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
350
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
110
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
390
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
690
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
290
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Designing Experiences People Love
moore
143
24k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Color Theory Basics | Prateek | Gurzu
gurzu
1
470
Six Lessons from altMBA
skipperchong
29
4.5k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
520
How to make the Groovebox
asonas
2
2.5k
My Coaching Mixtape
mlcsv
0
330
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Transcript
Desarrollo FrontEnd con JavaScript s04 – jQuery, Promises y $.Deferred
jQuery Manipulación de DOM Manejo de eventos Plugins Ajax
Manipulación de DOM
Manejo de eventos
Plugins
Ajax con jQuery
$.ajax
$.getJSON
$.Deferred Promises + jQuery
Promises • Permite asignar varios callbacks a una petición asíncrona.
• Separa la petición de los callbacks de éxito y error. • Encadena peticiones
Promises con jQuery
Promises – done
Promises – fail
Promises - then
$.when
Deferred Object • Crea funciones asíncronas. • Devuelve un promise.
• : dispara los callbacks en • : dispara los callbacks en
$.Deferred - reject • Con se disparan todos los callbacks
definidos con .