http://www.web2py.com/AlterEgo/default/show/252
fix is in trunk On Jun 17, 10:06 am, Yarko Tymciurak <[email protected]> wrote: > I was wondering what this "LOAD" function was about - new, not in > manual (not exactly easy to track down in source).... > > gluon/compileapp.LoadFactory.... > > Since the SCRIPT helper should allow arbitrary attributes, you might > go into LoadFactory.__call__() method, near the end, and add a _type > parameter to the two html.SCRIPT() calls (around line 137 & 140, I > think), something like this: > > .... html.SCRIPT( script, _type="text/javascript") > > Let us know if that helps. > > Regards, > - Yarko > > On Jun 17, 9:02 am, selecta <[email protected]> wrote: > > > the script tag is generated by the LOAD function so it is a web2py > > issue > > > On Jun 17, 4:00 pm, Jason Brower <[email protected]> wrote: > > > > It's javascript my guess. Just put the attribute in it and it should be > > > fine. That one is not a web2py issue at all, but a designer issue. :) > > > Best Regards, > > > Jason Brower > > > > On Thu, 2010-06-17 at 06:13 -0700, selecta wrote: > > > > looks better but I still get > > > > Line 169, Column 18: required attribute "type" not specified > > > > <script><!-- > > > > The attribute given above is required for an element that you've used, > > > > but you have omitted it. For instance, in most HTML and XHTML document > > > > types the "type" attribute is required on the "script" element and the > > > > "alt" attribute is required for the "img" element. > > > > Typical values for type are type="text/css" for <style> and type="text/ > > > > javascript" for <script>. > > > > > <script> should change to <script type="text/javascript"> > > > > > On Jun 17, 2:40 pm, mdipierro <[email protected]> wrote: > > > > > please check fix in trunk > > > > > > On Jun 17, 7:18 am, selecta <[email protected]> wrote: > > > > > > > a HTML validation of my web2py site states > > > > > > > Line 171, Column 24: value of attribute "id" invalid: "9" cannot > > > > > > start > > > > > > a name > > > > > > //--></script><div id="943196428587">loading...</div> > > > > > > > It is possible that you violated the naming convention for this > > > > > > attribute. For example, id and name attributes must begin with a > > > > > > letter, not a digit. > > > > > > > and > > > > > > > Line 173, Column 18: required attribute "type" not specified > > > > > > <script><!-- > > > > > > > The attribute given above is required for an element that you've > > > > > > used, > > > > > > but you have omitted it. For instance, in most HTML and XHTML > > > > > > document > > > > > > types the "type" attribute is required on the "script" element and > > > > > > the > > > > > > "alt" attribute is required for the "img" element. > > > > > > > Typical values for type are type="text/css" for <style> and > > > > > > type="text/ > > > > > > javascript" for <script>. > > > > > > > changing > > > > > > <script><!-- > > > > > > web2py_component("/sysbio/software/show/Cellware? > > > > > > summary=1","00724063942036") > > > > > > //--></script> > > > > > > to > > > > > > <script type="text/javascript"><!-- > > > > > > web2py_component("/sysbio/software/show/Cellware? > > > > > > summary=1","X00724063942036") > > > > > > //--></script> > > > > > > should be easy right?

