Re: How do you pass a search word to the Euphoria documentation index.html search box?
- Posted by ne1uno Dec 29, 2011
- 1456 views
... In summary, my experience on Linux, is that you can pass a search word to the openeuphoria.org document search engine with the code:
system_exec("browser " & "http://openeuphoria.org/search/results.wc?s="&search_word, 0)
...
If someone can come up with a way to pass a search word to the search engine for the respective document files, context sensitive help can be available with one keystroke.
[/quote] POST is what happens when you click on a search form on a web page, the parameters is added to the cgi environment. GET is where the parameters are part of the URL. try this:
system_exec("browser " & "http://openeuphoria.org/search/results.wc?s="&search_word&"&manual=1", 0)
The format for xchm usage is:
xchm [-c <num>] [-t] [-i] [-h] [file] -c, --contextid=<num> context-Id to open in file, requires that a file be specified -t, --notopics don't load the topics tree -i, --noindex don't load the index -h, --help displays this message.
the CHM doesn't currently have contextid numbers. they could be added, but then you would need to lookup the contextid first. I'm surprised there is no option to load the index with a search word. maybe it's undocumented or a future feature.