Source language: Translate to:

Can HTML Inputs Be Captured?

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Can HTML Inputs Be Captured?

Postby Ken1000 » Wed Apr 11, 2007 6:04 pm

Hi. I truly hope this is possible with Neobook ... :)

I am using the Web Browser object to display a series of html pages
I have made. These pages have a form with input fields.

Question 1:

Can Neobook capture/store the information a user would enter into
these input fields into an external text file?

Would I have to reference within Neobook the HTML field names in
order for this data to be captured?

If this is possible, could you supply a short sample code of showing
how I could store the first 3 input fields on the page?

If this is not possible, could you offer any suggestion(s) as to how to
capture that information into a separate, external text file?

Question 2:

If a user enters information into these input fields on the HTML page(s),
would a PrintPage command truly print everything on my Neobook
page? That is, not only the visible HTML page, but also the inputs the
user has made?

Would the printed page be a good quality print?

Thank you very much in advance for your help. :)

Ken
Ken1000
 
Posts: 8
Joined: Sat Apr 23, 2005 10:46 pm

Postby Gaev » Wed Apr 11, 2007 8:43 pm

Ken:
I am using the Web Browser object to display a series of html pages
I have made.
The keyword here is I have made ... which means that you have abosolute control over the html code.
Can Neobook capture/store the information a user would enter into these input fields into an external text file?
Yes ... with NeoBook script of course.
Would I have to reference within Neobook the HTML field names in order for this data to be captured?
It makes things simpler ... but you can also reference elements in your html by relative position.
If this is possible, could you supply a short sample code of showing how I could store the first 3 input fields on the page?
Do you have a sample of your html ... with the 3 fields ? ... or a description of what the three fields are going to be ?... i.e. type of input (Text Entry, ListBox, Radio buttons etc.) ... and perhaps a description (First Name, Age etc.).

Also, what will trigger the end of user entry ... and cause the entered values to be extracted/saved ? ... a button on the NeoBook side ? ... a button on the html side ?
If a user enters information into these input fields on the HTML page(s), would a PrintPage command truly print everything on my Neobook page? That is, not only the visible HTML page, but also the inputs the
user has made?

Would the printed page be a good quality print?
This command has a "mode" parameter ... according to the Help file ...
Code: Select all
mode

One of the following:

Draft
Pages are printed in low resolution mode. Produces a very accurate representation of the screen, but because the screen resolution is relatively low, some elements may appear rough.
 
Final
Pages are printed in high resolution mode. Not as accurate as draft mode, but most elements (especially lines and text) appear crisp and clean.
So, you should be able to try both mode ... and decide for yourself.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Ken1000 » Thu Apr 12, 2007 2:25 am

Thank you, Gaev, for your quick and hopeful reply.

Let's say the first 3 input fields are actually HTML TextAreas (not Text
Entrys), with the names of Name1, Address1, and Reason1.

It is the process of getting the input data itself into Neobook variables
and then saving that data into a text file that I am not clear on.

Could you be so kind as to show me how to capture the user's input
from the HTML page for Name1, Address1, and Reason1 into a text file?

My ideal would be to use Neobook code to capture this data, and assign
this code to a button. (Connecting Neobook code to a button I already understand.)

Thank you very much, sir, for your help. :)

Ken
Ken1000
 
Posts: 8
Joined: Sat Apr 23, 2005 10:46 pm

Postby Gaev » Thu Apr 12, 2007 3:42 am

Ken:
Let's say the first 3 input fields are actually HTML TextAreas (not Text Entrys), with the names of Name1, Address1, and Reason1.
With TextAreas, you have to explicitly define the number of columns (letters) and rows (lines) this object will occupy ... excess lines are scrolled ... what is your requirement ?
My ideal would be to use Neobook code to capture this data, and assign this code to a button. (Connecting Neobook code to a button I already understand.)
It is the process of getting the input data itself into Neobook variables and then saving that data into a text file that I am not clear on.
Could you be so kind as to show me how to capture the user's input from the HTML page for Name1, Address1, and Reason1 into a text file?
If you send a Private Message (on this forum) to me ... with your email address ... I can send you a sample .zip file containing a .pub, .htm and .txt file ... but I am somewhat pre-occupied today and most of tomorrow ... so you might need to be patient.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Ken1000 » Thu Apr 12, 2007 3:32 pm

Thank you, Gaev. I have sent you a private message.

Ken
Ken1000
 
Posts: 8
Joined: Sat Apr 23, 2005 10:46 pm


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest