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
Desarrollo FrontEnd con JavaScript - S04
Search
Gustavo Leon
December 01, 2013
Programming
0
83
Desarrollo FrontEnd con JavaScript - S04
S04 – jQuery, Promises y $.Deferred:
- jQuery.ajax
- Promises y Deferred Object
Gustavo Leon
December 01, 2013
Tweet
Share
More Decks by Gustavo Leon
See All by Gustavo Leon
Usando Preact - Una alternativa ligera a React
hpneo
0
270
Manejando Docker containers con Ruby y backticks
hpneo
0
350
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
490
Universal Web apps con JavaScript
hpneo
0
300
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
690
Xamarin
hpneo
1
290
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
110
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
63
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
61
Other Decks in Programming
See All in Programming
Android端末で実現するオンデバイスLLM 2025
masayukisuda
1
170
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
320
AI Agents: How Do They Work and How to Build Them @ Shift 2025
slobodan
0
110
楽して成果を出すためのセルフリソース管理
clipnote
0
190
The Past, Present, and Future of Enterprise Java with ASF in the Middle
ivargrimstad
0
180
複雑なフォームに立ち向かう Next.js の技術選定
macchiitaka
2
240
チームのテスト力を鍛える
goyoki
3
930
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
3.4k
Namespace and Its Future
tagomoris
6
710
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
API Platform 4.2: Redefining API Development
soyuka
0
160
アルテニア コンサル/ITエンジニア向け 採用ピッチ資料
altenir
0
110
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
4 Signs Your Business is Dying
shpigford
184
22k
The Language of Interfaces
destraynor
161
25k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
It's Worth the Effort
3n
187
28k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Six Lessons from altMBA
skipperchong
28
4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
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 .