> pictools > doc > searchbox
> pictools > doc > searchbox
Pictools: Physpics Page Pieces
V3.3 (342)
searchbox.php
/library/searchbox.php
The searchbox shown in the upper left in dirbar.php
usage, in PHP code: $sp->inclood("/library/searchbox.php");

The search box is displayed as part of dirbar.php in the upper right on most Physpics pages. Initially gray, but comes alive when it is clicked to get focus. The appearance is managed by evemt handlers for onblur/onfocus that call scripts.js.searchblur/searchfocus. When the arrow is clicked or return is typed, Google is invoked with a query liike this:

http://www.google.com/search?domains=physpics.com&num=50
   &ie=utf-8&oe=utf-8&sitesearch=physpics.com&q=theQuery

where the domains and sitesearch values are from php's $_SERVER['SERVER_NAME'];

The search response is a google page and it replaces the current browser tab.

 
Copyright © 2016 ZweiBieren, All rights reserved. Jul 4, 2016 21:35 GMT Page maintained by ZweiBieren