It all seems to work OK for  me.  Here is an example of a front page that 
has two IFRAMES and a DIV:

{{block head}}
<style type="text/css">
section#main {height: 800px;}
iframe {height: 700px;}
</style>
{{end}}
{{extend 'layout.html'}}
{{=DIV(SQLTABLE(meets,_class="table table-bordered table-condensed"),_class=
"span3")}}
{{=IFRAME(_seamless="true",_src=URL('results','clubs.load'),_class="span3"
)}}
{{=IFRAME(_seamless="true",_src=URL('results','swimmers.load'),_class=
"span3")}}

On the load view for the iframes, I added the following to the LOAD default 
view, default.load:

{{block header}}
{{  
  response.files.append(URL('static','css/web2py.css'))
  response.files.append(URL('static','css/bootstrap.min.css'))
  response.files.append(URL('static','css/bootstrap-responsive.min.css'))
  response.files.append(URL('static','css/web2py_bootstrap.css'))
  response.files.append(URL('static','css/ss.css'))
}}
{{include 'web2py_ajax.html'}}
<link rel="stylesheet" href=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css"type
="text/css" media="all" />
<script src=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"; type=
"text/javascript"></script>
<noscript><link href="{{=URL('static', 'css/web2py_bootstrap_nojs.css')}}"rel
="stylesheet" type="text/css" /></noscript>
{{end}}
{{if len(response._vars)==1:}}{{=response._vars.values()[0]}}{{else:}}{{=
BEAUTIFY(response._vars)}}{{pass}}

Everything between {{block header}} and {{end}} was taken from the default 
layout.html and added to the header of the load helper.  It seems to 
duplicate the style and javascript of layout perfectly in my tests.

-- Joe B.

On Monday, December 24, 2012 1:41:31 PM UTC-7, jarrodwilcox wrote:
>
> Iframes work well to add multiple internal content pages to a single view, 
> except that I can't seem to link to the web2py css files.  The {{  }} 
> processor does not seem to work within an html page called to an iframe.  
> Any thoughts?

-- 



Reply via email to