Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: touch to republish

Search Tapestry 4 documentation on this site. To search for newer content, try the Tapestry 5 search instead.

Wiki Markup
HTML
<script>
  (function() {
    var cx = '002159362473066658241:ur5o2kgicfy';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
{html}
<!-- google custom search engine -->
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'en'});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('002159362473066658241:ur5o2kgicfy');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
{html}