Note, you can do this manually in JS within the view:

<div id='mycomponent'></div>

<script>
jQuery(function() {
  jQuery([selector]).on([event], function() {
    web2py_component('{{=URL('default', 'myfunc')}}', target='mycomponent')
  });
});
</script>

The web2py_component() function takes a URL and the id of a target div and 
loads the component at that URL in the target.

Anthony

On Monday, April 15, 2013 3:27:30 AM UTC-4, Jurgis Pralgauskis wrote:
>
> Hi, 
>
> in some cases it would be nice to have ajax LOAD on trigger/event instead 
> of onload...
> just adding some trigger_init_js  parameter/code ... which binds 
> web2py_component calling to the event.
>
> before doing it myselft, wanted to ask, maybe it is already done 
>
> -- 
> Jurgis Pralgauskis
> tel: 8-616 77613;
> Don't worry, be happy and make things better ;)
> http://galvosukykla.lt 
>

-- 

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