Using Javascript / VBscript to create a simple form

Status
You're currently viewing only gaijin's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
Sounds like you're getting overwhelmed with different elements.

1. How are you going to implement this? What tools were you given? Any direction at all?
2. Do you know how to create an html form and handle GET/POST operations?
3. Once you have the first two handled, I would look up "javascript validation". Basically they're asking you to do form validation, which means you look at the user inputs for each form element and determine whether the input is valid. I can't actually tell if you're required to use one of Javascript or VBScript or if you have the option. If you have the option, go with Javascript. You'll find a lot more material online about Javascript.

One good place to start is http://w3schools.com
 
Uchiha":1nsmzdvk said:
We are to use notepad to create the .htm page. I know how to create a basic form box but not get/post operations you mentioned. We are to actually do both java and vb. But I am not going to do both as I am already stuck. I will try java first like you said. Also thank you for the website.
Important distinction: it's javascript. Java is a different language. The same goes for VB and VBScript, I think. VBScript might be a subset of VB, I'm not sure. Never used it that much.

If all you're using is notepad to create an htm page, it sounds like you aren't expected to make anything on a server. In that case, I'd wager the instructor wants you to handle all of the assignment functionality with javascript. That's... actually I'm not that confident, I'd ask your instructor if you're expected to submit the form to a server or just do all of the form processing with javascript. It really sounds like they're asking you to do too much in one assignment. Or maybe I'm not seeing a simpler solution.
 
glenthas":2b1h3szc said:
It looks to me like he's supposed to create an html form with vbscript/javascript validation and then submit it to another html page where he, again using vbscript/javascript, writes out the data.
Oh, good point. I suppose he could do that on the same local machine. Silly me. For some reason, I was thinking he would have to do all of the form submission handling within the same html file and then rewrite the contents of the entire page dynamically.

I guess number one then would be to create an html form simpleForm.htm that submits to another html form called processForm.htm and learn how to handle GET or POST information in javascript...

Though you have to admit, that sounds like an odd exercise. For the most part, you'd never do form processing with javascript. Validation, yes, but the actual processing? Weird.
 
Status
You're currently viewing only gaijin's posts. Click here to go back to viewing the entire thread.
Not open for further replies.