πŸ’Ύ Archived View for gemi.dev β€Ί gemini-mailing-list β€Ί 000999.gmi captured on 2024-03-21 at 18:14:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

how to make an input field on a capsule page ?

1. bussiere bussiere (bussiere (a) gmail.com)

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

Link to individual message.

2. Omar Polo (op (a) omarpolo.com)


bussiere bussiere <bussiere@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 a
link to a page that replies with the 10 or 11 status code and that will
make the browser showing a text field and send what the user typed as
query part of the url.

Using geminispace.info as example, they provide a link "search" that
looks 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 visit
the 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

Link to individual message.

3. defdefred (defdefred (a) protonmail.com)

Maybe this could evolve to allow application with form|multiple entry to be built.

Link to individual message.

4. Jason McBrayer (jmcbray (a) carcosa.net)


defdefred writes:
> Maybe this could evolve to allow application with form|multiple entry to be built.

It intentionally doesn't do that. Input in Gemini is more similar to
search items in gopher, or the <ISINDEX> tag in HTML 1.

-- 
Jason McBrayer      | β€œStrange is the night where black stars rise,
jmcbray@carcosa.net | and strange moons circle through the skies,
                    | but stranger still is lost Carcosa.”
                    | ― Robert W. Chambers,The King in Yellow

Link to individual message.

---

Previous Thread: [site] TechRights is on Gemini

Next Thread: Hi, I am new and I have created Gemini library