Hi all;

If anyone has any experience working with DRYML's <dialog-box> tag, I'd
sure love to know how to pass additional attributes (such as "id" and
"name") to the buttons array.

I 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();
},}],
    close: function () {
        //do something
    }
});


And the basic DRYML call is this:

<dialog-box title="Add Title" id="dialog_add_title"
  buttons='&[["Add", "hjq_dialog_box.submitAndClose"]]'>


But, how do I assign an "id" or a "name" attribute to this Add button?

I tried:

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

and

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

and

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

all to no avail.

So, I'm stumped how to pass this javascript through to DRYML without
choking 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