Ajax With Slide Effects Onready Witout Using A Toolkit
I'm really not that good at Javascript and that, so I need another bit of help. I want to be able to do a quick bit of AJAX using PHP then when the ajax response is finished show t
Solution 1:
I guess the basics would be something of a timeOut() in combination with increasing the height until it is full height:
- set the display of the element to none
- get the full height of the element, something like:document.getelementById('IDofElement').style.height
- set the height to 0 and the display to something like block
- set a timeOut() and increase the height in the called function, activate a new timeOut() if the element is not already full height.
The only real disadvantage of not using a library would be that you would have to test in a lot of different browsers and perhaps make modifications according to the browser used. Libraries have already solved that problem for you.
Post a Comment for "Ajax With Slide Effects Onready Witout Using A Toolkit"