> For my 1st try I used a plain button with an on-click handler, and found
that I
> couldn't retrieve the text from the box. Calling the Text function
returned a
> null string.
Use the Value method for form elements.
>
> Next I tried a submit button with an on-submit handler. I noted that when
I
> clicked on the button, my connection was disconnected, presumably
deallocating
> my connection data, and a new connection was created.
You need to handle the On_Submit event on the window or form to handle a
form submit.
See docs/user_guide.md the Singleton example shows how to do this or
Tutorial 09
> I couldn't see how to
> retrieve the entered text from the box. If I retrieved the connection
data using
> the Connection_Data function, Text returned a null string. Any message I
tried
> to display did not appear, presumably because the new connection redraws
the
> screen with new connection data.
Correct. If you don't handle On_Submit it will actually "Submit" the form
and its values.
> Finally I tried using a submit button and a separate on-connect handler,
as was
> done in tutorial 08. This allows me to obtain the entered text from the
> associated form parameter. It also does the disconnect/reconnect. I'm not
clear
> how I would get from there back to the original screen with a message for
the
> user to try again.
In tutorial 09 it demonstrates the the other ways of getting the results by
using On_Submit instead of the form actually submitting.
I added a bit in the user_guide about Inner_HTML, Text and Value. The
"Gnoga Concepts" section of the user_guide will keep expanding over time to
include these types of tips.
David Botton
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list