> <a onclick={{="web2py_component('%s','#vCardModal')"
> %URL('vcard','mailVcard.load',args=node.id)}} data-toggle="modal"
> data-target="#vCardModal"><img
> src="{{=URL('static','img/icons/vCard.png')}}" alt="" width="48px"
> height="48px" /></a>
>
In the above, the HTML doesn't include any quotes around the onclick string.
> <script type="text/javascript">
> $("a[data-toggle=modal]").click(function (e) {
> web2py_component("{{=URL('vcard','mailVcard.load',args=node.id
> )}}",ajax=True,target='#vCardModal')
> })
> </script>
>
web2py_component() doesn't take an "ajax" argument (it always uses ajax --
when ajax=True in the LOAD() helper, that tells it to use
web2py_component()). Also, the target should be an element ID (excluding
the "#") -- so, target="vCardModal".
Anthony
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.