Euphoria Ticket #740: add javascript parsing to index.hml or key_index to parse ?s=word

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(; 
	if(srch == ""){ //?s=whatever 
	   alert('no search param') 
	   //meta to toc or  nothing if online maybe 
	   document.location.href = "eu400_0001.html#" 
	   alert('search word='+srch+' is online='+online) 
		//makalink to openeuphora online docs 
		//divlink = ""+escape(s[1] 
	//may need all from onload(), offline form needs name/Id 
	var xsearch, go 
	if (online){ 
		xsearch = document.getElementById('search'); 
		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]) 
not quite there yet 


Type: Feature Request Severity: Normal Category: Documentation
Assigned To: unknown Status: New Reported Release: 4.0.4
Fixed in SVN #: View VCS: none Milestone: 4.0.5


Quick Links

User menu

Not signed in.

Misc Menu