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
Web 2.0 com Ajax: JQuery/PHP
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Wagner Silva
April 02, 2011
Programming
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web 2.0 com Ajax: JQuery/PHP
Treinamento ministrado para turma iniciante em 2011
Aula 05
Wagner Silva
April 02, 2011
More Decks by Wagner Silva
See All by Wagner Silva
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
83
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
66
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
66
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
63
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
66
Web 2.0 com Ajax: JQuery/PHP
silvawbr
0
74
Other Decks in Programming
See All in Programming
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
AWSに止められる覚悟してますか?
morizo_1984
2
530
Workers Cache を知る
syumai
0
360
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
300
Railsバージョンを4倍にした話
optim
0
350
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
290
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
910
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
So, you think you're a good person
axbom
PRO
2
2.2k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Are puppies a ranking factor?
jonoalderson
2
4.1k
The Cult of Friendly URLs
andyhume
79
7k
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
Abbi's Birthday
coloredviolet
4
10k
Transcript
Aula 05 Wagner Silva
Agenda Manipulando a exibição de objetos Customizando animações
com CSS Enfileirando animações Aplicação de Delay Ajax Revisão: PHP e XMLHttpRequest Conexões Síncronas e Assíncronas Wagner Silva # Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.fadeIn(tempo,função) $(“div”).fadeIn(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.show(tempo,função) $(“div”).show(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.slideDown(tempo,função) $(“div”).slideDown(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.fadeOut(tempo,função) $(“div”).fadeOut(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.hide(tempo,função) $(“div”).hide(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Manipulando a Exibição seleção.slideUp(tempo,função) $(“div”).slideUp(2000) Wagner Silva #
Web 2.0 com Ajax Aula 05
Customizando com CSS seleção.animate(propriedades,tempo,frequencia,função) Somente propriedades numéricas são
válidas Frequência: swing ou linear Wagner Silva # Web 2.0 com Ajax Aula 05
Customizando com CSS $(“div”).fadeOut(2000) $(“div”).animate({ opacity : 0
},2000) Wagner Silva # Web 2.0 com Ajax Aula 05
Customizando com CSS $(“div”).hide(2000) $(“div”).animate({ height : 0,
width : 0, marginTop : 0, marginLeft : 0 },2000) Wagner Silva # Web 2.0 com Ajax Aula 05
Customizando com CSS $(“div”).slideUp(2000) $(“div”).animate({ height : 0,
marginTop: 0 },2000) Wagner Silva # Web 2.0 com Ajax Aula 05
Customizando com CSS Propriedades podem possuir valores não numéricos:
propriedade : ‘show’ propriedade : ‘hide’ propriedade : ‘toogle’ Wagner Silva # Web 2.0 com Ajax Aula 05
Customizando com CSS Os valores das propriedades não necessitam
ser exatos: propriedade : ‘+= valor’ propriedade : ‘-= valor ’ Wagner Silva # Web 2.0 com Ajax Aula 05
Enfileiramento seleção.animação1 .animação2 . ... .animaçãon Wagner Silva #
Web 2.0 com Ajax Aula 05
Delay Atrasa a execução de animações enfileiradas seleção.animação1
.delay(tempo).animação2 Wagner Silva # Web 2.0 com Ajax Aula 05
Animação Exercício: Utilizar fadeIn e fadeOut para manipular a
exibição dos emails.
Ajax União de várias tecnologias Interação dinâmica com
usuário Não há necessidade de recarregamento Compartilhamento de recursos Acessibilidade Wagner Silva # Web 2.0 com Ajax Aula 05
Wagner Silva # Web 2.0 com Ajax Aula 05
Wagner Silva # Web 2.0 com Ajax Aula 05
PHP Linguagem de script server-side Possui bibliotecas
Banco de dados E-mail Imagens Etc Instalação, configuração e documentação: www.php.net Wagner Silva # Web 2.0 com Ajax Aula 05
XmlHttpRequest Criado pela Microsoft Acessar/recuperar dados do servidor
(assíncrona) Pode retornar: XML Json Texto Imagem etc Wagner Silva # Web 2.0 com Ajax Aula 05
Conexão com JQuery ajaxSetup() e ajax() Principais propriedades:
async : booleano data : mapeamento statusCode : mapeamento type : string (post/get) success : função url : string Wagner Silva # Web 2.0 com Ajax Aula 05
Métodos $.get('ajax/teste.php',{},function(dados){ … }); $.post('ajax/teste.php',{},function(dados){ ... }); Wagner Silva #
Web 2.0 com Ajax Aula 05
Ajax Exercício: manipular pastas e busca via Ajax
Web 2.0 com Ajax # Aula 05 Próxima Aula:
Manipulando funções através do Ajax. E-mail:
[email protected]
Twitter: twitter.com/web2softeam