Cool - thanks Mike. I guess I don't understand the purpose of the cacheing in this case (my javascript knowledge is limited). When I've got my proof-of-concept working correctly and pass it on to the engineers to implement, I'll know better whether the div or the simple static message works better - I'm just trying to build enough flexibility in to it.
Thanks again! malsup wrote: > > > rolfsf, > > You need to take the same approach with the 2nd message as you did > with the first - cache it: > > var question = $('#question')[0]; > var wait = $('#wait')[0]; > > Then in your "yes" handler do this: > > $('#myDiv').unblock().block(wait, {width: '275px'}); > > But if you're just displaying a simple static message it's easier to > set up the wait variable like this: > > var wait = '<h1> busy.gif Just a moment...</h1>'; > > Mike > >> If the user confirms the action by clicking a button, I want to display a >> second div with a "data loading" sort of message & loading gif while the >> ajax operation takes place (div#wait). I can't quite get this part to >> work >> correctly... I know I've got the syntax wrong, but not sure how best to >> do >> this... I can see the #wait div appearing briefly in the wrong place, in >> addition to the original #question div... > > -- View this message in context: http://www.nabble.com/BlockUI---changing-messages-in-a-dialog-tf3960765s15494.html#a11240528 Sent from the JQuery mailing list archive at Nabble.com.