On my HTML page, I have:
4 images sitting in a row, and 1 div sitting immediately underneath - collapsed.
Depending on which image the user clicks, I would like to load the corresponding external page content into that DIV (using ajaxpage.js?).
When the content gets loaded into the DIV, the DIV should toggle open with a sliding action. (using jquery.togglr.js?)
I also would like the browser to automatically scroll down to the expanded DIV, otherwise, the user might not see that extra content has been toggled open. The scrolling should have an easing effect. (using jquery.scrollTo.js?)
Finally, if the user clicks on the same image that toggled the DIV open, it should toggle the DIV close. If the user clicks on another image with the DIV already open, then just load the new content without having to close and open the DIV.
The difficulty is how to properly integrate all the different jquery plugins to get the desired behaviors?
Thanks.