this will allow GET access to tools online or offline calling the docs to load the javascript search
start of the solution:
<SCRIPT type=JavaScript><!--
//some js to parse ?var= to fill in javascript search
var online = ( window.location.protocol =="file:") ? false:true;
var srch = unescape(document.location.search);
if(srch == ""){ //?s=whatever
alert('no search param')
//meta to toc or nothing if online maybe
document.location.href = "eu400_0001.html#"
}else{
alert('search word='+srch+' is online='+online)
//makalink to openeuphora online docs
//divlink = "http://openeuphoria.org/docs/"+escape(s[1]
}
//may need all from onload(), offline form needs name/Id
document.offline.search.focus()
var xsearch, go
if (online){
xsearch = document.getElementById('search');
}else{
xsearch = document.getElementById('docs');
}
if (1){ //xsearch
//need to parse s= not just first param
//sanitize! no sql or xsite links.
s = srch.split('=')
//hit go button
alert('go='+escape(s[1]) +' x='+xsearch)
xsearch.s.value = escape(s[1])
xsearch.s.submit()
}
//s=document.getElementsByTagName('script')[0];
--></SCRIPT>
not quite there yet