Hmm, well if the style is inherited from parent it should work instead.
On 10/10/2010 05:56 PM, mdipierro wrote:
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<[email protected]> 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
--
Tomas Pelka