💾 Archived View for rawtext.club › ~sloum › geminilist › 007033.gmi captured on 2023-11-04 at 12:52:15. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Omar Polo op at omarpolo.com
Tue Aug 24 13:02:33 BST 2021
- - - - - - - - - - - - - - - - - - -
bussiere bussiere <bussiere at gmail.com> writes:
Hello,
I'am looking to make an input field on a gemini capsule page like the gemini search engine,
but i've read the gemtext doc and i cannot find how to do that ...
can you point me to some doc on how to do this ?
regards
text/gemini doesn't have anything like a text input. Instead, you put alink to a page that replies with the 10 or 11 status code and that willmake the browser showing a text field and send what the user typed asquery part of the url.
Using geminispace.info as example, they provide a link "search" thatlooks like this:
=
/search Search
When the server receives a request for ``/search'' it replies with 10:
% printf "gemini://geminispace.info/search\r\n" | \ nc -c -Tnoverify geminispace.info 1965 10 Search query %
usually browser will pop up a text field in this case, and then visitthe page
/search?<user query here>
So, if you search for "kittens" the browser will visit the page
gemini://geminispace.info/search?kittens
HTH
Omar Polo