NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: DonnieS on January 30, 2010, 05:44:04 PM

Title: Retrieving entered text from a scr4een
Post by: DonnieS on January 30, 2010, 05:44:04 PM
I built a html screen - I have a text entry field on that screen - it is called via

<!-- Net:f:Index.html -->

How can I retrieve the text that is entered on that field?

Thanks
Title: Re: Retrieving entered text from a scr4een
Post by: Bruce on January 30, 2010, 08:55:54 PM
<input> fields in html need to be included inside a <form> section of html. Then any "submit" button in the same form generates a POST to the server. The POST contains the value of all the fields in the <form>.

That's the simple explanation. Actually the generated <input> fields in NetTalk are somewhat more complex. So a lot of the form behaviour you get with generated NetTalk fields is because of JavaScript which modifies both the field, and the button behaviors.

You may find things a lot easier if you create a small NetWebForm procedure (based on "memory" not a file) and then include that procedure on the page, rather than just the static HTML. Or alternativly, generate a page using a NetWebForm and examine the HTML that it generates so that you can better manage the static HTML in your static file.

cheers
Bruce