setting height,width for IFRAME()

21 views
Skip to first unread message

Dave S

unread,
Dec 13, 2017, 5:08:50 AM12/13/17
to web2py-users
How do I set the height and width for an iframe when my controller does 
,
 
  return dict(stuff=variousandsundry, iframe=IFRAME(_src(URL(mypage)))


I've tried 

  return dict(stuff=variousandsundry, iframe=IFRAME(_src(URL(mypage)),_height=200,_width=200))

but still came out with too short, too wide.  Oops, never mind ... I needed to use 210,210 to account for margin/border/padding.
Oh, and _frameborder=0 helps,too.

Sorry if this looks like noise, but maybe it will help some future web2py-ist.

/dps



Reply all
Reply to author
Forward
0 new messages