Hello,

I am using the UI dialog plugin. People can edit there dns data off a
domain in this dialog.

When i uses it for the first time everything works fine. But when i
delete 2 of the three rows from the database he shows just one record,
this is oke, but when i submit the data he adds the old data to the
database again!

For some reason he rembers the old data there was the first time i
used the dialog. How is this possible?

My dialog code:

$(function() {
        $('#dialog_dnsmanagement').dialog({
                bgiframe: true,
                resizable: true,
                autoResize: true,
                width:500,
                modal: true,
                overlay: {
                        backgroundColor: '#000',
                        opacity: 0.5
                },
                buttons: {
                        'Annuleren': function() {
                                $(this).dialog('destroy');
                        },
                        'Opslaan': function() {
                                $(this).dialog('destroy');

                                var options = {
                                        type: 'POST',
                                        cache: false,
                                        target: '#alert_update_dns',
                                        url: './ajax/ajaxDnsUpdate.php',
                                        success: function(html){
                                                $('#postresult').remove();
                                        }
                                };

                                $('#form_dns_update').ajaxSubmit(options);

                        }
                }
        });
});

Regards,

Erwin

Reply via email to