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
96
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
310
Manejando Docker containers con Ruby y backticks
hpneo
0
380
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
520
Universal Web apps con JavaScript
hpneo
0
320
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
710
Xamarin
hpneo
1
310
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
110
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
67
Desarrollo FrontEnd con JavaScript - S03 (I)
hpneo
0
69
Other Decks in Programming
See All in Programming
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
CSC307 Lecture 03
javiergs
PRO
1
490
CSC307 Lecture 08
javiergs
PRO
0
670
CSC307 Lecture 09
javiergs
PRO
1
830
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
230
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
230
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
170
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
CSC307 Lecture 06
javiergs
PRO
0
680
SourceGeneratorのススメ
htkym
0
190
Featured
See All Featured
The Language of Interfaces
destraynor
162
26k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
The Limits of Empathy - UXLibs8
cassininazir
1
210
Designing for Timeless Needs
cassininazir
0
130
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
90
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
120
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
94
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
160
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
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 .