>
> 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> 
>
>
both alerts pop up, the modal-backdrop pops up, but the div with id 
vCardModal is empty.

<div class="modal hide fade in" id="vCardModal" style="display: block;" 
aria-hidden="false"></div>


The view corresponding to the /vcard/mailVcard function is called 
mailVcard.load that's correct isn't it? 
 

> 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?
>

You're right it works, my code called the function which still contained 
the view='vcard/vcard.vcf' error.


I hope you'll be able to figure out why web2py_component() call doesn't 
work.


Regards,

Annet
 

-- 

--- 
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