> Not sure why the Javascript isn't working -- perhaps the Bootstrap modal 
>> code is interfering. Maybe use the browser developer tools to see if the 
>> click handler is getting registered and called at all.
>>
>
> I used the developer tools, the click handler isn't registered.
>

If you add the following alerts, do either of them pop up?

<script>
jQuery(function() {
  alert('registering click handler');  // should pop up on page load
  jQuery('#vCardModalLink').click(function() {
    alert('loading component');  // should pop up when the link is clicked
    web2py_component('{{=URL('vcard', 'mailVcard.load', args=node.id)}}',target
='vCardModal');
  });
});
</script> 

 

> vcard=response.render('vcard/vcard.vcf',
>>                       dict(org=org, n=n, fn=fn, jobtitle=jobtitle,address
>> =address, telecom=telecom))
>>
>>
> Thanks for explaining what the code does. I used the first option the 
> second one results in an error ticket.
>

Passing a dict as the second argument should definitely work (just tried 
it). What was the traceback?

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.


Reply via email to