💾 Archived View for jb55.com › ward.asia.wiki.org › saved-search-result captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Saved Search Result

We want to render search results in something that looks like a roster except that each flag links to a specific title.

See More About Search Plugin

More About Search Plugin

Now let's see if we can construct a search box that will take advantage of the "transport" capability of its form implementation. See About HTML Plugin

About HTML Plugin

<form action="http://c2.com/~ward/fake-search.cgi" style="background-color:#eee; width:95%; padding:10px;"> <center> Search Demo <br> <input size=60></input> <p class=caption> Enter multiple search terms then press enter. <br> We would expect here an explanation of what kind of search will take place. </form>

Oh, this almost works. json

json

I tried to write a simple cgi that would fake a search result but I couldn't get the POST preflight CORS right in the time I devoted to this example. Note: The HTML plugin translates all form behavior, including method GET, into XHR POST with JSON arguments.

I wanted to use cgi in this example because they are easier to keep running for long periods. Sinatra seems to get the preflight right as I am using the same ajax approach in the Search plugin itself. github

github