Skip to content

Instantly share code, notes, and snippets.

@gagarine
Created August 26, 2011 13:39
Show Gist options
  • Save gagarine/1173424 to your computer and use it in GitHub Desktop.
Save gagarine/1173424 to your computer and use it in GitHub Desktop.
xwiki search form
<form onsubmit="document.location.href=document.searchform.action+'#o%3As%3Ds%253Aresource%5Ef%3Do%253Aresource%253Do%25253Aterms%25253Ds%2525253A'+escape(escape(escape(escape((jQuery('#curriki-searchbox').val() !=='recherche')?jQuery('#curriki-searchbox').val()'')))); return false;" action="http://planete.sankore.org/xwiki/bin/view/Search/" class="search-box" name="searchform" id="searchform">
<input type="hidden" value="" name="area" class="hidden">
<input type="text" onblur="if (this.value=='') this.value='recherche'" onfocus="if (this.value=='recherche') this.value=''; else this.select()" value="recherche" class="input" name="brsqry" id="curriki-searchbox">
<button name="btn" id="searchbtn" type="submit">Aller</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment