You can do this with blockUI if what you're planning to display is
reasonably succinct.  When you have the database results in your ajax
callback, assuming it is HTML, you can do something like this:

$.get(someUrl, function(data) {
    var html = '<div>' + data + '</div><button>OK</button>';
    $.blockUI({ message: html });
    $('div.blockUI button').click($.unblockUI);
});


Another option would be to use jQuery UI Dialog:
http://docs.jquery.com/UI/Dialog

Mike

On Nov 23, 7:53 pm, MorningZ <morni...@gmail.com> wrote:
> I'm not sure why you would use BlockUI for this purpose... seems more
> like a tooltip plugin is needed that can handle HTML
>
> On Nov 23, 3:10 pm, Troy Sartain <sartain.t...@gmail.com> wrote:
>
> > While searching around I have seen plenty of examples where people
> > query a database and use BlockUI to put up a wait message. When the
> > ajax completes, unblock and display the results. I'm trying to do
> > something a little different. I would like to query a database and use
> > the results as the message of the BlockUI 'window' - a custom popup.
>
> > (I tried using BeautyTip and it kinda works but I'm having trouble
> > positioning the tip. Also, the tip only pops up on the second try
> > because I'm actually assigning the ".bt" after the ajax completion.
> > Any clues there?) OK, that's off-topic.
>
> > Is this just a retarded way of doing this? Basically I have an old
> > school area map with rollover info coming from a db.
>
>

Reply via email to