On Wednesday, October 26, 2011 7:08:43 AM UTC-4, annet wrote:
>
>
> image=db((db.bedrijfimagelink.bedrijf_id==id).select(db.imagelink.link).first()
>
>
>
Maybe these are just typos, but looks like you've got an extra ( at the
beginning, and your select is coming from a different table than the query.
<div id="component">
>
> {{=LOAD('locator','imagetext.load',args=283,ajax=True,target='component')}}
>
> </div>
>
No, don't put the LOAD helper inside a div. The LOAD helper creates its own
div with the id of the 'target' argument. The above will create a div with
id='component' inside another div with id='component' (which isn't allowed).
Also, whenever a component fails to load properly, always check to make
sure the action itself is returning something -- you can do that by going
directly to the URL of the component: /yourapp/locator/imagetext.load
> <div id= "footer">
>
> {{=A('Lesrooster',callback=URL('timetable','timetable',args=[company.id]),target='component')}}
>
>
> </div> <!-- footer -->
>
>
> Which generates the following link:
>
> <a onclick="ajax('ini/timetable/timetable/283',[],'component');return
> false;"href="#null">Lesrooster</a>
>
>
> .. and address in the browser:
> http://127.0.0.1:8000/init/locator/businesscard/283#null
>
Hmm, does the link really have no space between the end of the onclick and
the href (i.e., ...false;"href)? If so, see if you can hand code that link
and add a space. If that's the issue, there may be a bug in the A() helper.
Anthony