>
> <div class = "herlaai_pubvelde">{{=LOAD('authors', 'publikasievelde.load',
> ajax=True)}}</div>
> <div class = "herlaai_personeel">{{=LOAD('default', 'personeel.load', ajax
> =True)}}</div>
> <div class = "herlaai_nrf">{{=LOAD('default', 'nrfdata.load', ajax=True
> )}}</div>
>
> <script type="text/javascript">
> $(document).ready(function() {
> $('#Button1').click(function() {
> $('#herlaai_pubvelde').load('/init/authors/publikasievelde.load');
> $('#herlaai_personeel').load('init/default/personeel.load');
> $("#herlaai_nrf").load('init/default/nrfdata.load');
>
> return false;
> });
> });
> </script>
>
First, your divs are identified via classes, but your jQuery selectors are
for id's. You probably want to change the classes to id's:
<div id="herlaai_pubvelde">{{=LOAD('authors', 'publikasievelde.load',
ajax=True)}}</div>
Another option, though, is to explicitly name the LOAD divs (via the
"target" argument), and then call web2py_component() directly to refresh
the components:
{{=LOAD('authors', 'publikasievelde.load', ajax=True, target=
'herlaai_pubvelde')}}
{{=LOAD('default', 'personeel.load', ajax=True, target='herlaai_personeel'
)}}
{{=LOAD('default', 'nrfdata.load', ajax=True, target='herlaai_nrf')}}
<script type="text/javascript">
$(document).ready(function() {
$('#Button1').click(function() {
web2py_component('{{=URL('authors', 'publikasievelde.load')}}', target
='herlaai_pubvelde')
web2py_component('{{=URL('default', 'personeel.load')}}', target=
'herlaai_personeel')
web2py_component('{{=URL('default', 'nrfdata.load')}}', target=
'herlaai_nrf')
return false;
});
});
</script>
Anthony
--