-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Tim:
I didn't try, but, have you tried the approach suggested at hobocentral?:
"
Because of quoting issues, it’s usually easier to assign the list to a
variable and then include the list:
<% buttons = [ ["cancel", "jQuery(this).dialog('close')"] ] %>
or
<% buttons = [ ["save", "hjq_dialog_box.submitAndClose"], ["cancel",
"hjq_dialog_box.close"], ] %>
with
<dialog-box buttons="&buttons">My dialog text</dialog-box>
"
Abrazo, Ibon.
Usa Software Libre, tus úlceras te lo agradecerán
Realizado con Software Libre.
- --
GPG public key at http://sinanimodelucro.net/ibon_gmail.asc
Finderprint: 1761 59B9 6DE6 0402 31B9 1872 178F A6FD 75F9 EB29
El 23/05/13 19:30, Tim Griffin escribió:
> 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.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlGebOcACgkQF4+m/XX56ymjmwCfY+Rd6jXV3MOcWlr4UJQzftYX
oxkAnjKYeLJesCcUKEqLZz7b1vKVEP2y
=PTjv
-----END PGP SIGNATURE-----
--
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.