SlideShare a Scribd company logo
1 of 1
Download to read offline
AJAX                                   BASE               CSS               Effects                                  Attributes Manipulation              Traversing
$.get(url)                             $(expr)            background()      hide()                                   href()         after(html)          add(expr)
$.get(url, params)                     $(elem)            background(val)   show()                                   href(val)      after(elem)          add(els)
$.get(url, callback)                   $(elems)           color()           toggle()                                 html()         after(elems)         add(el)
$.get(url, params, callback)           $(fn)              color(val)                                                 html(val)      append(html)         ancestors()
$.getIfModified(url)                   $(obj)             css(name)         Animations :                             id()           append(elem)         ancestors(expr)
$.getIfModified(url, params)           $(expr, context)   css(prop)         animate(params, speed, callback)         id(val)        append(elems)        children()
$.getIfModified(url, callback)         each(fn)           css(key, value)   fadeIn(speed)                            name()         appendTo(expr)       children(expr)
$.getIfModified(url, params, callback) eq(pos)            float()           fadeIn(speed, callback)                  name(val)      before(html)         contains(str)
load(url, params, callback)            get()              float(val)        fadeOut(speed)                           rel()          before(elem)         end()
loadIfModified(url, params, callback) get(num)            height()          fadeOut(speed, callback)                 rel(val)       before(elems)        filter(expr)




                                                                                                               DOM
    $("p")                             gt(pos)            height(val)       fadeTo(speed, opacity)                   src()          clone()              filter(exprs)
    $("#element_id").click(...)        lengthlt(pos)      left()            fadeTo(speed, opacity, callback)         src(val)       empty()              find(expr)
    $(".class").click(...)             size()             left(val)         hide(speed)                              title()        insertAfter(expr)    next()
                                                          overflow()        hide(speed, callback)                    title(val)     insertBefore(expr)   next(expr)
SAMPLE CODE




    $(document.getElementById("el")).click(...)
    $(document).ready(...)                                overflow(val)     show(speed)                              val()          prepend(html)        not(el)
    $(window).load(...)                                   position()        show(speed, callback)                    val(val)       prepend(elem)        not(expr)
    $(Context).find(...)                                  position(val)     slideDown(speed)                                        prepend(elems)       parent()
    $("p",document).size();                               top()             slideDown(speed, callback)                              prependTo(expr)      parent(expr)
    $("p[a]").hide();                                     top(val)          slideToggle(speed)                                      remove()             parents()
    $("div",document.getElementById("el"))                width()           slideToggle(speed, callback)                            remove(expr)         parents(expr)
    $(xml.responseXML);                                   width(val)        slideUp(speed)                                          wrap(html)           prev()
    $("title",xml.responseXML);                                             slideUp(speed, callback)                                wrap(elem)           prev(expr)
                                                                                                                                                         siblings()
 Events                                                                                                                                                  siblings(expr)
bind(type, fn)             keypress(fn)           onedblclick(fn)             resize(fn)             unclick()                    unmousedown()          addClass(class)
blur(fn)                   keyup()                oneerror(fn)                scroll()               unclick(fn)                  unmousedown(fn)        attr(name)
Browser                    keyup(fn)              onefocus(fn)                scroll(fn)             undblclick()                 unmousemove()          attr(prop)
error()                    load()                 onekeydown(fn)              select()               undblclick(fn)               unmousemove(fn)        attr(key, value)
change(fn)                 load(fn)               onekeypress(fn)             select(fn)             unerror()                    unmouseout()           removeAttr(name)
click(fn)                  Mouse                  onekeyup(fn)                submit()               unerror(fn)                  unmouseout(fn)         removeClass(class)
dblclick()                 click()                oneload(fn)                 submit(fn)             unfocus()                    unmouseup()            text()
dblclick(fn)               mousedown()            onemousedown(fn)            toggle(even, odd)      unfocus(fn)                  unmouseup(fn)          toggleClass(class)
error(fn)                  mousedown(fn)          onemousemove(fn)            trigger(type)          unkeydown()                  unresize()
                                                                                                                                                         JavaScript
focus()                    mousemove()            onemouseout(fn)             User Interface         unkeydown(fn)                unresize(fn)
focus(fn)                  mousemove(fn)          onemouseup(fn)              blur()                 unkeypress()                 unscroll()             $.each(obj, fn)
Form                       mouseout()             oneresize(fn)               unbind()               unkeypress(fn)               unscroll(fn)           $.extend(obj, prop)
                                                  onescroll(fn)               unbind(type)           unkeyup()                                           $.grep(array, fn, inv)
change()                   mouseout(fn)                                                                                           unselect()
                                                                              unbind(type, fn)       unkeyup(fn)                                         $.map(array, fn)
hover(over, out)           mouseup()              oneselect(fn)                                                                   unselect(fn)           $.merge(a, b)
Keyboard                   mouseup(fn)            onesubmit(fn)               unblur()               unload()                     unsubmit()             $.trim(str)
keydown()                  oneblur(fn)            oneunload(fn)               unblur(fn)             unload()                     unsubmit(fn)
keydown(fn)                onechange(fn)          ready(fn)                   unchange()             unload(fn)                   ununload()                   jQuery
keypress()                 oneclick(fn)           resize()                    unchange(fn)           unload(fn)                   ununload(fn)                New.Wave.Javascript
                                                                                                                                                                     09 02 06
                                                                                                                                                              Cheat.Sheet.09.03.06

More Related Content

What's hot (7)

An introduction to functional programming with Go [redux]
An introduction to functional programming with Go [redux]An introduction to functional programming with Go [redux]
An introduction to functional programming with Go [redux]
 
Jquery Framework
Jquery FrameworkJquery Framework
Jquery Framework
 
Taller1
Taller1Taller1
Taller1
 
Jquery ui, ajax
Jquery ui, ajaxJquery ui, ajax
Jquery ui, ajax
 
Java
JavaJava
Java
 
Java Thread Cronometro
Java Thread CronometroJava Thread Cronometro
Java Thread Cronometro
 
Jquery2
Jquery2Jquery2
Jquery2
 

Viewers also liked

Redes sociales
Redes socialesRedes sociales
Redes socialesMontseA92
 
Récapitulatif epreuves sélection eurojam
Récapitulatif epreuves sélection eurojamRécapitulatif epreuves sélection eurojam
Récapitulatif epreuves sélection eurojamsiteguides
 
Pcpoe open house_flyer
Pcpoe open house_flyerPcpoe open house_flyer
Pcpoe open house_flyerSrbies
 
B Power - UNE Transcript
B Power - UNE TranscriptB Power - UNE Transcript
B Power - UNE TranscriptBenjamin Power
 
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...Institut Català de la Salut
 
4 reasons why wholesale is good for buying
4 reasons why wholesale is good for buying4 reasons why wholesale is good for buying
4 reasons why wholesale is good for buyingCharu Fashions
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Dataphanleson
 
E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacksphanleson
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programmingphanleson
 
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"mariela arceo merales
 

Viewers also liked (15)

Kärcher takarítás
Kärcher takarításKärcher takarítás
Kärcher takarítás
 
Redes sociales
Redes socialesRedes sociales
Redes sociales
 
Récapitulatif epreuves sélection eurojam
Récapitulatif epreuves sélection eurojamRécapitulatif epreuves sélection eurojam
Récapitulatif epreuves sélection eurojam
 
Test
TestTest
Test
 
Phelps2
Phelps2Phelps2
Phelps2
 
Pcpoe open house_flyer
Pcpoe open house_flyerPcpoe open house_flyer
Pcpoe open house_flyer
 
B Power - UNE Transcript
B Power - UNE TranscriptB Power - UNE Transcript
B Power - UNE Transcript
 
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...
Vall d'Hebron. Compartir la informació amb els professionals per assolir els ...
 
4 reasons why wholesale is good for buying
4 reasons why wholesale is good for buying4 reasons why wholesale is good for buying
4 reasons why wholesale is good for buying
 
Community project
Community projectCommunity project
Community project
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Data
 
E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacks
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programming
 
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"
Monografia UNIDAD I "FUNDAMENTOS DE LA SOCIOLOGÍA"
 
Product and Brand
Product and BrandProduct and Brand
Product and Brand
 

Jquery p1

  • 1. AJAX BASE CSS Effects Attributes Manipulation Traversing $.get(url) $(expr) background() hide() href() after(html) add(expr) $.get(url, params) $(elem) background(val) show() href(val) after(elem) add(els) $.get(url, callback) $(elems) color() toggle() html() after(elems) add(el) $.get(url, params, callback) $(fn) color(val) html(val) append(html) ancestors() $.getIfModified(url) $(obj) css(name) Animations : id() append(elem) ancestors(expr) $.getIfModified(url, params) $(expr, context) css(prop) animate(params, speed, callback) id(val) append(elems) children() $.getIfModified(url, callback) each(fn) css(key, value) fadeIn(speed) name() appendTo(expr) children(expr) $.getIfModified(url, params, callback) eq(pos) float() fadeIn(speed, callback) name(val) before(html) contains(str) load(url, params, callback) get() float(val) fadeOut(speed) rel() before(elem) end() loadIfModified(url, params, callback) get(num) height() fadeOut(speed, callback) rel(val) before(elems) filter(expr) DOM $("p") gt(pos) height(val) fadeTo(speed, opacity) src() clone() filter(exprs) $("#element_id").click(...) lengthlt(pos) left() fadeTo(speed, opacity, callback) src(val) empty() find(expr) $(".class").click(...) size() left(val) hide(speed) title() insertAfter(expr) next() overflow() hide(speed, callback) title(val) insertBefore(expr) next(expr) SAMPLE CODE $(document.getElementById("el")).click(...) $(document).ready(...) overflow(val) show(speed) val() prepend(html) not(el) $(window).load(...) position() show(speed, callback) val(val) prepend(elem) not(expr) $(Context).find(...) position(val) slideDown(speed) prepend(elems) parent() $("p",document).size(); top() slideDown(speed, callback) prependTo(expr) parent(expr) $("p[a]").hide(); top(val) slideToggle(speed) remove() parents() $("div",document.getElementById("el")) width() slideToggle(speed, callback) remove(expr) parents(expr) $(xml.responseXML); width(val) slideUp(speed) wrap(html) prev() $("title",xml.responseXML); slideUp(speed, callback) wrap(elem) prev(expr) siblings() Events siblings(expr) bind(type, fn) keypress(fn) onedblclick(fn) resize(fn) unclick() unmousedown() addClass(class) blur(fn) keyup() oneerror(fn) scroll() unclick(fn) unmousedown(fn) attr(name) Browser keyup(fn) onefocus(fn) scroll(fn) undblclick() unmousemove() attr(prop) error() load() onekeydown(fn) select() undblclick(fn) unmousemove(fn) attr(key, value) change(fn) load(fn) onekeypress(fn) select(fn) unerror() unmouseout() removeAttr(name) click(fn) Mouse onekeyup(fn) submit() unerror(fn) unmouseout(fn) removeClass(class) dblclick() click() oneload(fn) submit(fn) unfocus() unmouseup() text() dblclick(fn) mousedown() onemousedown(fn) toggle(even, odd) unfocus(fn) unmouseup(fn) toggleClass(class) error(fn) mousedown(fn) onemousemove(fn) trigger(type) unkeydown() unresize() JavaScript focus() mousemove() onemouseout(fn) User Interface unkeydown(fn) unresize(fn) focus(fn) mousemove(fn) onemouseup(fn) blur() unkeypress() unscroll() $.each(obj, fn) Form mouseout() oneresize(fn) unbind() unkeypress(fn) unscroll(fn) $.extend(obj, prop) onescroll(fn) unbind(type) unkeyup() $.grep(array, fn, inv) change() mouseout(fn) unselect() unbind(type, fn) unkeyup(fn) $.map(array, fn) hover(over, out) mouseup() oneselect(fn) unselect(fn) $.merge(a, b) Keyboard mouseup(fn) onesubmit(fn) unblur() unload() unsubmit() $.trim(str) keydown() oneblur(fn) oneunload(fn) unblur(fn) unload() unsubmit(fn) keydown(fn) onechange(fn) ready(fn) unchange() unload(fn) ununload() jQuery keypress() oneclick(fn) resize() unchange(fn) unload(fn) ununload(fn) New.Wave.Javascript 09 02 06 Cheat.Sheet.09.03.06