Search

This html codeblock and iframe combination adds a google search box which can search the whole web or limit the results to just Javea Computer Club.

Codeblock

<html>
  <body>
 
<form method="get" action="http://www.google.com/search" target="google_window">
 
<div style="border:none;padding:2px;width:190px;">
<table border="0" cellpadding="0">
 
<tr><td>
<input type="text"   name="q" size="25"
 maxlength="255" value="" />
</td></tr>
 
<tr><td>
<input type="submit" value="Google Search" />
</td></tr>
 
<tr><td align="left" style="font-size:75%">
<input type="checkbox"  name="sitesearch" value="javea-computer-club.wikidot.com" unchecked /> 
Search Only JCC site
<br>
Javea Computer Club
</td></tr></table>
</div>
 
</form>
 
  </body>
</html>

Iframe

As you cannot display html code directly you need to reference the codeblock with an iframe:

[[iframe http://javeacomputerclub.wikidot.com/search/code/1 frameborder="0" scrolling="no" width="200px" height="125px"]]

To add the search box to the side bar, only the iframe is added to the nav:side page. If you add the codeblock and iframe to the nav:side page it doesn't find the codeblock - this is a problem with the google code (for reasons which are not clear) rather than codeblocks and iframes generally which do work in the sidebar.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License