I'm assuming you are submitting via $.ajax() .post. I ran into this
same problem, even using dialog('destroy'). What I found is, you do
destory the dialog, yet the form seems to remain in memory resulting
in two of the same forms submitting. I spent 3 days trying to figure
this out but here is the solution I found:

$.ajax({
        type: "post",
        url: "form.processor.php",
        dataType: "json",
        data: form_data,
        success: function(data){
                $("#tscreen_form").remove(); // remove the form
                $("#dialog")('destroy'); // remove the dialog div
        }.....

Hope that helps!

On Dec 14 2009, 8:36 am, "ebru...@gmail.com" <ebru...@gmail.com>
wrote:
> Then i think the problem is unique fields.
>
> Thanks for your reply!
>
> On 14 dec, 14:47, MorningZ <morni...@gmail.com> wrote:
>
> > > "For some reason he rembers the old data"
>
> > It's not remembering anything, it's simply reading the values
> > again...  after you do your save/edit/whatever, use ".val()" and other
> > things that set form field values and clear out what is there

Reply via email to