Skip to main content

Bug Tracker

Side navigation

#6080 closed bug (invalid)

Opened February 12, 2010 04:57AM UTC

Closed February 12, 2010 05:16AM UTC

problem updating div content inside a dialog box

Reported by: jdgamble555 Owned by:
Priority: Milestone: 1.4.2
Component: data Version: 1.4.1
Keywords: div, content, dialog, box, value Cc:
Blocked by: Blocking:
Description

I have a div inside my dialog box like so:

<div id="dialog_box">

stuff...

<div id="changethisdiv">not changed</div>

</div>

And I would like to be able to update the "changethisdiv" more than ONCE. However, it will only update on the first call to open the dialog:

function open_dialog() {

$("#dialog_box").dialog('destroy');

$("#dialog_box").dialog({

buttons: {

'Edit Thumb': function() {

$("#myThumbForm").submit();

},

Cancel: function() {

$(this).dialog('close');

}

},

close: function() {

},

open: function() {

$("#changethisdiv").html("it is changed at" + new Date().getTime());

}

});

$("#dialog_box").dialog('open');

return false;

}

If I take this:

<div id="changethisdiv">not changed</div>

out of the dialog box, it is updated everytime...

Attachments (0)
Change History (2)

Changed February 12, 2010 05:08AM UTC by jdgamble555 comment:1

You can delete this post, it is not a bug and works fine, I will place my other problem related to this in a new ticket!

Changed February 12, 2010 05:16AM UTC by john comment:2

resolution: → invalid
status: newclosed