Using Script.aculo.us to Toggle a DIV
Ajax tutorial submitted by gotfoo 1877 days agoThis is a nice little trick that I am constantly going back to Script.aculo.us to look up. This Hides/Shows (Toggles) a DIV (or any element) with the click of a link using the Script.aculo.us Effect.toggle('ELEMENT','EFFECT') function. Script.aculo.us has 16+ Combination Effects but only a few can be used with Toggle.
Grooved By...
- gotfoo
- admin
- spyderman4g63
- warrior007
- puns
- graceella
- sdmahesh06
- LaviannieWong
- tailwaggerspets
- clippingmart
- Waltonrider
- kelvinspinto
- Waltondadd
- Naomidleb45
- kppandey03
- sigleton45
- technolik
- morris
- kevineters99
- louvisjackaa
- Opalpinto
- jcaservices
- tutorialfreakz
- hanmashd
- stunningmesh
- mmanewsleak
- pinkugg
- phipaysuyo
- diziizleniyor1
- loans
- js36927
- ezzat
- ihsanpb2
- ColoradoBill
- larysalas
- appsecowy
- luisors
Login if you wish to write - Or sign up here.
iEntry 10th Anniversary
Comments
admin said..
I will use this as a definite resource. It gets right do to the point.
written 1876 days ago ago
gotfoo said..
I've updated it with persistence between page loads: http://you.gotfoo.org/using-scriptaculous-to-toggle-a-div-ii/
written 1869 days ago ago