views:

13

answers:

2

Hello all,

I have a working dialog, and i want to change the content durring the flow of the app, I mean to change the .html() propery of the dialog...

I thought it was easy to do but i can't seem to do:

$dialog.dialog().html(SOME CONTENT);

How do i do that after i allready have the diqlog running?

My init code is:

var $dialog = $('<div></div>')
    .html(SplitTable)
    .dialog({
        autoOpen: false,
        height: 500,
        width: 600,
        title: 'פיצול שולחן'});

    $dialog.dialog('open');

where is the ID in that? this is the what i understood i should do from the examples, didn't see any Id proprety...

p.s. splitTable is the content that i need to change durring to program to updatTable...

10x

A: 
$('#dialog ID').html('SOME CONTENT');
From.ME.to.YOU
sorry, didn't get the id part, i'm posting my init code...10x
Erez
A: 

Make sure that the $dialog variable is in scope where you're wanting to change the content, then just a .html() call will work, like this:

$dialog.html(updatTable);

You can see it working here.

Nick Craver