basic livequery and dialog question

basic livequery and dialog question


I'm loading data from a mysql db on a page - if certain criteria are met in
this data, I put up a button, where I'll want the user to click the button
and have a dialog appear (with yet more data from a mysql db). I can't get
the liverquery part to work - seems simple and I get no errors. Here is how
I'm getting my button:
[code]
    if ($row['location'] == "home") {
        ?>
        <button id="bttn1" value="volunteer">Volunteer</button>    
....
[code]
up top in js, I've got what I think is livequery being called (but obviously
not):
[code]
$('#bttn1')
    .livequery('click', function() {
        $("#dialogTest").dialog({
modal: true,
autoOpen: false,
width: 600,
dialogClass: "flora",
overlay: {opacity: 0.5, background: "black"}
});
    });
[/code]
After i get livequery working, I'll worry about calling a url in the dialog
part... Is there something simple I am missing?
--
View this message in context: http://www.nabble.com/basic-livequery-and-dialog-question-tp21640942s27240p21640942.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.