When you load content via ajax, the content should not contain an
<html>..</html> tag nor a <head>...</head> tag. the style info are
inherited by the parent page. Perhaps you want an iframe instead?

On Oct 10, 10:19 am, Tomas Pelka <tompe...@gmail.com> wrote:
> Hello,
>
> need to affect result of LOAD by javascript and css. Tying to implement
> something likehttp://www.mattkruse.com/javascript/mktree/documentation.html. 
> In view:
>
> <div class="res">
> {{if len(res)==0 and q_size==0:}}
> {{=nothing}}
> {{else:}}
> {{=LOAD('sniffer','getResults',ajax=True)}}
> {{pass}}
> </div>
>
> getResults from controller produces an field containing HTML with
> appropriate classes etc (javascript is included in web2py_ajax.html). It
> seems that the result of LOAD is not affected by javascript and css.
>
> Thanks for advices.
>
> --
> Tomas Pelka

Reply via email to