|
-
May 29th, 2001, 10:53 AM
#1
Thread Starter
New Member
Html Form Text= ? Need Help
Html Form Text= ? Need Help
This is how a textbox i'm using, i need to add a commandbutton
some how, this will be new for me, but i should learn well?.
But how can i add some information like a word to a textbox
below INPUT TYPE="text" NAME="name" when i click a commandbutton
the button i don't no how to create Yet, to add for example
Hello World Text. then when done i send the email, this is part of the code
i took from the send e-mail, it works fine, i just wanted to cut
alot of code out and focus on making a commandbutton, If you can help
making example please Help, i'm posting in alot of forums today.
top expert forums only for help, this is one of my top 10 forums
Thanks
INPUT TYPE="text" NAME="name"
-
May 29th, 2001, 11:07 AM
#2
Frenzied Member
I'm sorry, but I'm finding it hard to follow what you are saying. I can understand that English is not your first language, but I doubt that you were taught you use run-on sentences. Please clarify your question.
I am submitting a bit of code below that will do what I can only guess you are trying to do.
Code:
<html>
<head></head>
<body>
<form name='myForm'>
<input type='text' name='myInput'>
<input type='submit' name='Sumbit This Form'>
<p><a href='JavaScript:mySub();'>Add World Text</a></p>
</form>
<script language='JavaScript'>
function mySub() {
document.myForm.myInput.value = "Hello, World!"
}
</script>
</body>
</html>
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 11:09 AM
#3
Frenzied Member
<input type="button" name="theButton" value="putText" onClick="document.yourFormName.yourTextName.value='Hello World';">
is that what you need!!
-
May 29th, 2001, 11:21 AM
#4
Frenzied Member
Sebs, is there a way to use that format and put a URL in the onClick event of the button? I know you can't wrap a button in "a href". A coworker was looking for a way to put buttons in place of normal links, but not have to put twenty forms on the page.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 11:29 AM
#5
Thread Starter
New Member
CiberTHuG huh
Hello CiberTHuG
I said i was cuting out most of the code just to make a short
conversation, about Commandbutton Simple
when you click Button onclick "text = so so in the code of the button"
Nah English is my main language, vbscript is not, i did'nt
no how to begin, like i said i was new to vbscript i was using the
tutorial which did'nt help answer my question, plus i'm so tired
sorry, i work the night shift, at work i have a computer
i went online, been online at the office, i was about to go home
to bed, was going to check for replies when i woke up.
I no i sound tired or my english took a nap, Just for the record I was born in California USA. Make a Note of It its a english speaking place!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.
, you should think about what you say comments anything on
What language no biggie, no hard feelings, its only that vbscript is nothing like vb
Post a good place to learn more of Vbscript anyone.Goodnight all i'm off to Bed
Last edited by greglamas; May 29th, 2001 at 11:33 AM.
-
May 29th, 2001, 11:44 AM
#6
Frenzied Member
OK, I think I understand your question better. If I'm correct, Sebs and I have given you two different ways of doing it. I'm sure there are others.
That solved, I feel I should inform you that California does not have an official language. Given the population of the state, there are good chances that you speak Spanish or a Chinese dialect as your first tongue. There are smaller but significant chances that you speak some form of Hindi or Punjab as your first tongue. I think you should take it as a sign that you have been mistaken as someone just learning the language, and not a native speaker of it. As far as I know, there are no significant differences between the English spoken in California and the English spoken throughout the rest of the Union, Eubonics not withstanding.
I, however, will take it as a indicator of the poor state of education in America, and try not to hold you as an example of California's particular shortcomings.
If you have any more questions concerning VB, VBScript, HTML, ASP, et al, we will try to help.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 12:46 PM
#7
Frenzied Member
CiberTHuG:
you can do:
<input type="button" onClick="window.location='blabla.html'">
or
<input type="button" onClick="parent.frames.someFrames.location='blabla.html'">
like you can put javascript in an href:
<a href="javascript:myFunction()">click here</a>
-
May 29th, 2001, 01:04 PM
#8
Frenzied Member
window.location works nicely. Atleast in IE, I'll have to check the others.
I am very often putting JavaScript calls in a href. I do the following a lot in this project.
Code:
<a href='JavaScript:SetX(10);'>Go to Ten</a>
<script language='JavaScript'>
function SetX(myVal) {
document.forms[0].input[0].value = myVal;
document.forms[0].submit;
}
</script>
input[0] will be a hidden input that will tell the next ASP which link the user clicked on.
I'm sure there are other ways of doing this. And I can put this in a button's onClick event, but my coworker wanted to avoid a dozen forms since he wanted his project to not submit to the same page. He also does have any hidden inputs, he just wants a normal HTML anchor in a button.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 01:08 PM
#9
Frenzied Member
he just wants a normal HTML anchor in a button.
what do you mean!!
maybe i can help!
-
May 29th, 2001, 01:15 PM
#10
Thread Starter
New Member
Never Mind wanna be teacher
1. I'm not spanish nor Chinese.
2. I see where you can use an improvement in your own choice
of words.
3. And seems to me i said i was tired and rushing out the door
i had to get off the computer, i was tring to post in other
forums. But save you comments for peers grow up, and think about
what you say, a tired mind and speech, can change when a person
is tired.
4. You need a tutorial and native tongues, because you did'nt
guess one thing right about me but my typos and errors.
5. Save it for your public Get a life tooooo.
Bye
6. Its call small talk, or lack of details that i left out.
Has nothing to do with how i speak in person, because
if you heard me i have an american acent but what do you
you can't even tell when someone needs sleep.
7. Good night again i woke up to take care of nature calls
and saw i had an e-mail that i needed to post "Reply"
Bye.
I'm done talking no need to chat
bye
bye
bye
Last edited by greglamas; May 29th, 2001 at 01:21 PM.
-
May 29th, 2001, 01:22 PM
#11
Frenzied Member
Originally posted by sebs
what do you mean!!
maybe i can help!
You did help, thanks. The window.location bit works perfectly. I was probably rambling a bit.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 01:27 PM
#12
Thread Starter
New Member
Like this in vb 6 command click!
Command,
What is the code
<Form Command ???? onclick
?? Input Text= name When you click Command ? text = " hello
world hope i was clear,
In Vb 6 you have a command button
you type your code, code is
Sub Command1_Click ()
Text1 = " hello World"
end sub
Now are we getting it yet (((Geeez)))
I am trying to do this in the vbscript. exactly
-
May 29th, 2001, 01:32 PM
#13
Frenzied Member
Re: Never Mind wanna be teacher
Originally posted by greglamas
1. I'm not spanish nor Chinese.
Okay, not only is your use of the English language weak at best, but you are an idiot. I didn't say you were Spanish or Chinese. I said there is a substantial segment of California-born Americans who have Mexican or Chinese parents, and thus learn Spanish or Chinese first.
I also said that California has no official language, so being born there doesn't dictate that you learn English.
2. I see where you can use an improvement in your own choice
of words.
I didn't say I was perfect, just a damned sight better than you.
3. And seems to me i said i was tired and rushing out the door
i had to get off the computer, i was tring to post in other
forums. But save you comments for peers grow up, and think about
what you say, a tired mind and speech, can change when a person
is tired.
Well, if you can't take the time to tell us what the problem is, then you can't expect us to take the time and help you with it. Your poor use of English is a blantant sign of disrespect to the rest of us. It shows that you don't care enough to take the time to atleast use poorly placed periods.
4. You need a tutorial and native tongues, because you did'nt
guess one thing right about me but my typos and errors.
What was I trying to guess? That you are poorly educated? I still haven't seen any evidence to the contrary.
5. Save it for your public Get a life tooooo.
Bye
6. Its call small talk, or lack of details that i left out.
Has nothing to do with how i speak in person, because
if you heard me i have an american acent but what do you
you can't even tell when someone needs sleep.
7. Good night again i woke up to take care of nature calls
and saw i had an e-mail that i needed to post "Reply"
Bye.
I'm done talking no need to chat
bye
bye
bye
You are such flamebait. Why you bother getting out of bed at all is beyond me.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 01:38 PM
#14
Thread Starter
New Member
dictinary
Wow you used and dictinary or a spell check to check you error's...
there's your period.
Drop it now.
-
May 29th, 2001, 01:49 PM
#15
Frenzied Member
What errors? I didn't use a spell check, and I would wager that there is at least one word misspelled in my posts. There are no gods, and I'm not perfect.
By the way, it is "dictionary", and there is no need to drop it. I'm bored, and you're an idiot.
The point behind an open forum like this is to police our own. I think we should all harrass you until your posts make sense with no more than two re-reads. I think I understand your most recent question, but I don't see a need to answer it. Hopefully no one else will bother to answer it. The community can't improve as a whole if we don't demand that every individual do his best.
Not to wax philisophical, but... hopefully everyone will harrass you so much that you will stop posting to try to post clearly. There are dozens of people on this board for whom English is a second or third language, and they all have a better use of it than you.
If you are too tired to post, then wait until tomorrow.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 29th, 2001, 01:50 PM
#16
Frenzied Member
greglamas,
my first post on this trhead had your anwser:
<input type="button" name="theButton" value="putText" onClick="document.yourFormName.yourTextName.value='Hello World';">
--------------------------------------------------------------------------------^
-
May 29th, 2001, 01:56 PM
#17
Thread Starter
New Member
Thank You Sebs
Thank You Sebs You have a Good Day
I was reading each post, sorry about my mood.
You code worked fine.
i did not close the, </FORM> thats why the code
did'nt work. But i got it now.
</TR>
</TABLE>
</FORM>
Bye
-
May 30th, 2001, 03:07 AM
#18
Thread Starter
New Member
Harrass your *ss
I want to be 86' off this Fuc**
CiberTHuG You Cyber *ag, why don't you Create your own
community - Forum.
You have a semi-detached brain Cells, which makes it foggy, no future, thee all master of garbage.
For your own convenience, you need a license plate stamped on your
forehead point-ing out dick heads this way, or should i say all ******'s this way.
Out of the closet IDIOT.
Go back in your hiding place.
Harrass your *ss, you rubbish -****** not any good for sell, your not even worth a penny in my book.
If you don't want to help then move out.
Stay on Subject.
This is a board & forum Post, not a Discussion Forum.
Move on CiberTHuG to Discussion Forum and teach there.
Last edited by greglamas; May 30th, 2001 at 03:30 AM.
-
May 30th, 2001, 09:04 AM
#19
Frenzied Member
Re: Harrass your *ss
Originally posted by greglamas
If you don't want to help then move out.
Stay on Subject.
This is a board & forum Post, not a Discussion Forum.
Move on CiberTHuG to Discussion Forum and teach there.
Do you not understand that if we can't read your post, then we can't help? I am harrassing your stupid, sorry, ****-for-brains carcass in the feeble attempt to get you to improve you quality of posts. It looked like you were making the attempt when you mentioned that you forgot to close the form tag.
Oh well... guess I hoped for too much.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 30th, 2001, 09:13 AM
#20
Thread Starter
New Member
(***Case Closed Some wake this ***********)
(****Stupid**See Stupid does old fart**)
(***Case Closed Someone wake that old ****** Up*****)
Last edited by greglamas; May 30th, 2001 at 09:28 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|