Hi all,

Having an issue with the Dialog, where it reloads the page as soon as
it's opened.  The weirdest part is that I open a dialog successfully
(with same dialog open code, but different content) from another part
of the page:

I'm opening a dialog from from a button click:

<button onclick="update_log(chardata)" style="width: 35px;">Log</
button>

function update_log(chardata){
    if (chardata.xp_log == null) {
        chardata.xp_log = [];
    }
    var title = "Update Experience Log";
    var content = "<table style='width: 100%'>"
    for (var row in chardata.xp_log) {
        content += "<tr><td>" + chardata.xp_log[row].xp + "</td><td>"
+ chardata.xp_log[row].date + "</td><td>" + chardata.xp_log[row].note
+ "</td></tr>";
    }
    var content = "<tr><td>" + chardata.xp + "</td><td>" + (new Date
()).toDateString() + "</td><td><input id='xp_log_note' type='text' /></
td></tr></table>";

    $("#mydialog").html(content);
    $('#mydialog').dialog('option', 'title', title);
    $("#mydialog").dialog({
        modal: true,
        autoOpen: false,
        title: title
    });
    $("#mydialog").dialog('open');
}

Any ideas?

Thanks,

Todd

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to