Hello,
My code below:
layout.html:
{{=LOAD('advert','list.load',ajax=True)}}
advert.py
def list():
logger.warn('-'*11)
adverts = db().select(db.advert.id,db.advert.title)
return dict(adverts=adverts)
list.load
<h4>List</h4>
{{for adv in adverts:}}
...
And rendered code/beahaviour:
Mozilla Firefox:
<script type="text/javascript">
<!--
web2py_component("/myapp/advert/list.load","c753628406821")
//-->
</script>
<div id="c753628406821">
<h4>List</h4>
....
It works correctly, there are logs in the console.
Chrome:
<script type="text/javascript">
1
2
3
<!--
web2py_component("/myapp/advert/list.load","c058198399259")
//-->
</script>
<div id="c058198399259"/>
During page reload there are a message 'loading...' for ~1second, and then
div is still empty.
Also there aren't any logs in console.
So i will try to re-create project and check it.
Regards,
Tomasz
2012/7/31 Anthony <[email protected]>
> What do you mean it doesn't work? What happens? Can you show some code?
>
>
> On Tuesday, July 31, 2012 12:01:00 AM UTC-4, tomasz bandura wrote:
>>
>> Hello,
>>
>> I noticed the 'LOAD' function (with Ajax=true) doesn't work under Chrome
>> , when it is used on layout page.
>>
>> Unfortunately Firebug doesn't show an error message, and only response is
>> empty.
>>
>>
>> The same page under Firefox works correctly.
>>
>> Is it any special way to declare LOAD on layout?
>>
>>
>> Best regards,
>> Tomasz
>>
> --
>
>
>
>
--