Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2006, 04:36 AM   PM User | #1
Havvy
New to the CF scene

 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Havvy is an unknown quantity at this point
Post Create Form Object, and Have Javascript read it.

Can somebody please post me a sample code of creating a form object (textbox) and that is read and put into the array called sampArray that has an indefinite (or 100 if that's not possible) amount of elements. I want it so that when you hit the submit button, it shall take it, and check to see if it's a number. If it is, it will add it with the last digit, which starts at 0, and print the result in another textbox. There will also be another button that when clicked, will initialize a for loop. Please use (i=0; ...; i++) as what needs to be done. You need to fill in the ... . During every pass through the loop, it shall take sampArray[i] and post it followed by a new line.

I only ask of this because I learn visually. I tried to be as specific as possible, so if you need any extra information, just ask. I need to see the code. Also, is there a way to make a form action equal none?

Thanks in advanced. Havvy.
Havvy is offline   Reply With Quote
Old 11-03-2006, 05:31 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Is this an assignment?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 11-03-2006, 10:24 PM   PM User | #3
Havvy
New to the CF scene

 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Havvy is an unknown quantity at this point
No. I don't know of any javascript classes. I do know of one for VB Script and I'm in the class before that, which is the logic of programs. I'm learning javascript for me, and only me. Forms are what I'm trying to figure out how forms work. I learn visually and long explanations, such as the description I wrote isn't going to help me. It can help some though.

What I hope this shows me what the properties of forms, and how they are made are. I'm not a cheater. I just have no clue how to mess with forms, and I don't have any assignment right now.

If you want, think of an assignment for the person who answers my question.
Havvy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:07 PM.


Advertisement
Log in to turn off these ads.