Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- jQuery. callback problem


ctoz - 1:11 am on Feb 3, 2011 (gmt 0)


Looking at the solution proposed, I eventually saw that I had too many functions going: went back to the jQuery site and followed instructions for a simple callback, without parameters:

function loadWen() {
$('#allhex').load('loadem/hexWen.htm', doWen);
}

which actually does the business. The pause between the onclick color-change and the appearance of the text is handled by a separate function: so there's no need to hide and then show the text div; and even less need to make that part of a callback.

I'll use different versions of this simple callback to load different sets on the right, linking to different text on the left.

Sometimes just setting the problem out helps. Thanks again.


Thread source:: http://www.webmasterworld.com/javascript/4261015.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com