Hello,
After investigation, i added error handler to web2py_ajax_page and the
error's result was:
function AjaxFailed(result) {
alert("FAILED : " + result.status + ' ' + result.statusText);
}
and the result:
result.status:0
result.statusText): 'error'
It looks rather as a jquery issue...
Regards,
Tomasz
2012/8/3 tomasz bandura <[email protected]>
> Hello,
>
> Application attached.
>
> default.py and advert.py have a function:
>
> def show(): return dict(test_message='show.load - default.py')
>
> and on the index.html there are LOAD declarations:
>
> {{=LOAD('advert','show.load',ajax=True)}}
> |
> {{=LOAD('default','show.load',ajax=True)}}
>
>
> Both show.load files aren't modified ( just created from web editor )
>
> Message headers in FB console:
>
> GET /test_ajax/advert/show.load
> HeadersResponse
> ResponseHeaders
> RequestHeaders
> Accept */* web2py-component-location
> http://localhost:8000/test_ajax/default/index web2py-component-element
> c864146346769 X-Requested-WithXMLHttpRequest
> GET /test_ajax/default/show.load
> HeadersResponse
> ResponseHeaders
> Date Fri, 03 Aug 2012 07:10:52 GMT X-Powered-Byweb2py Connection
> keep-alive Content-Length23 Pragma no-cache ServerRocket 1.2.4
> Python/2.6.6 Content-Typetext/html; charset=utf-8 Cache-Controlno-store,
> no-cache, must-revalidate, post-check=0, pre-check=0 ExpiresFri, 03 Aug
> 2012 07:10:52 GMT
> RequestHeaders
> Accept */* web2py-component-location
> http://localhost:8000/test_ajax/default/index web2py-component-element
> c339346798611 X-Requested-WithXMLHttpRequest
>
>
> The response in firebug chrome console:
>
>
>
> GET /test_ajax/advert/show.load
> HeadersResponse
>
> GET /test_ajax/default/show.load
> HeadersResponse
>
> show.load - default.py
>
>
>
>
> Regards
>
> Tomasz
>
> 2012/8/2 Anthony <[email protected]>
>
>>
>>> So it looks chrome can show result only when *view* and **.load*component
>>> are declared in the same controller.
>>>
>>
>> I'm not sure I follow the above statement. Can you pack and attach a
>> minimal app that demonstrates the problem?
>>
>> Anthony
>>
>> --
>>
>>
>>
>>
>
>
--