/ Published in: HTML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- User: Laurence Toenjes Date: 2011-07-30 10:16:30 file: header.inc.htm This file goes above the WEB-INF folder. This is a sample header include file to use Dojo with Vaadin. The header.inc.htm file text gets injected by using a customized Vaadin app servlet. See: http://snipplr.com/view/57394/use-dojo-with-vaadin--inject-external-file-into-head-block-of-vaadin-page-response/ --> <!-- header.inc.htm beg --> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/resources/dojo.css" /> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/tundra/tundra.css" /> <style type="text/css"> /* put styles here */ </style> <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js" type="text/javascript" djConfig="parseOnLoad: false"> </script> <script type="text/javascript" > // dojo includes dojo.require("dojo.parser"); dojo.require("dijit.form.Button"); </script> <script type="text/javascript"> // <![CDATA[ dojo.ready( function() { dojo.addClass( dojo.body() , "tundra"); dojo.parser.parse(); } ); // ]]> </script> <!-- header.inc.htm end -->