Hi all;

If anyone has played extensively with Hobo's <dialog-box> tag, and know 
hows to assign IDs (or other attributes) to the jQuery dialog box buttons, 
I'd love to know.

>From JavaScript, I know I can do this:

$("#dialog_box").dialog({
    buttons: [{ text: "Ok", "id": "btnOk", click: function () {
 //okCallback(); },},
              { text: "Cancel", click: function () { //cancelCallback(); },
}]
    }
});


And, basic DRYML works (without other attributes on the buttons):

   buttons='&[["Add", "hjq_dialog_box.submitAndClose"]]'


So to get IDs on the buttons, via DRYML, I tried this

   buttons='&[[ text: "Add", click: "hjq_dialog_box.submitAndClose", id: 
"btnAddTitle"]]'

but, that gave me a button with the label "object Object". 

I tried a passing a hash inside the array element:

   buttons='&[[{ text: "Add", click: "hjq_dialog_box.submitAndClose", id: 
"btnAddTitle"}]]' 

and without the enclosing array element:

   buttons='&[{ text: "Add", click: "hjq_dialog_box.submitAndClose", id: 
"btnAddTitle"}]'

and this:
   buttons='&[{ text: "Add", click: hjq_dialog_box.submitAndClose(), id: 
"btnAddPartial"}]' 

(results in *undefined method `hjq_dialog_box'*)


all to no avail. 

What's the correct way to pass attributes to buttons via DRYML? 

Thanks,
Tim




-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to