fadeTo, Ajax:post, fadeTo in a controlled order after each completes...
I have a slide show I am trying to work with where I grab some html from the response on the ajax - what I want to do is "dim" the container via the the fadeTo once that fade happens it does th post for the html, dumps the response into the container then fades in - whats happening is the page dims, then fadesIn to opacity 1 then the page jumps and shows the new content…Does this make sense?
I want to fadeTo - Load the new html from ajax and then fade it back to normal.
Thanks for looking.
$(#someID).fadeTo('slow', 0.5 , function() {
$.post(someUrl, function(html){
$(#someID).html(html).fadeTo('slow', 1);
});