When a <div> is filled up, how can I generate a dialog box?

When a <div> is filled up, how can I generate a dialog box?

Hello All.

I have a ajax script. When it sucessful return a value it filled up a div
  1. function onSuccess(data, status)
            {
                data = $.trim(data);
                $("#resultSql").text(data);
            } 



  1.     <div data-role="content">
     
            <h1>Gestion des fruits</h1>
            <div id="resultSql"></div>
    </div>



This is nice but I would like to have the message in a dialog box.

I would like to know if jQueryMobile have a such event. I red the Dialog page but all work with link.

Someone know know how can I modify my onSuccess function to have the message displayed in a dialog, with a "nativ" jquerymobile event ?

Many thank for your help. I am a beginner with that great library

Cheers











    • Topic Participants

    • forum