Solve this. |
Solve this. |
Sep 1 2009, 05:41 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
My teacher showed me, but I forgot and cant find what it is called or how to solve it.
CODE function get_name(name) { // test to make sure it is a string that isn't empty // test to make sure that it is at least 3 characters long // test to make sure that it is either Paul, John or Bob and no one else alert("Hi " + name); } How can I tell it what name is? and it would be mice if someone could tell me how to tell it the name too. Something like: CODE var name = prompt("What is your name?",""); This is javascript btw. Not php. I keep getting confused too... I have watched all the lynda.com javascript tutorials and all the w3schools.com javascript tutorials and for some reason I cant solve this. Thanks. |
|
|
|
![]() |
Sep 2 2009, 05:01 AM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
I know. But I have no options left. and he is being very kind. I have watched two whole series of javascript tutorials and none of them tell me how to do this. Im just now trying to figure out how to tell it, what the name is.
|
|
|
|
jcp Solve this. Sep 1 2009, 05:41 PM
jcp I like php much better... Sep 1 2009, 06:47 PM
mipadi I'm sure it could be done in a fancier (read: ... Sep 1 2009, 08:02 PM
jcp Darn. I didn't actually want you to do the who... Sep 1 2009, 08:54 PM
mipadi QUOTE(jcp @ Sep 1 2009, 09:54 PM) Darn. I... Sep 1 2009, 09:53 PM
jcp O. I thought it did... haha.
CODE<html>
... Sep 1 2009, 09:58 PM
mipadi QUOTE(jcp @ Sep 1 2009, 10:58 PM) Am i do... Sep 1 2009, 10:02 PM
jcp ugh... but I thought that wasnt neccessary when yo... Sep 1 2009, 10:48 PM
mipadi document.write() is (roughly) JavaScript's equ... Sep 2 2009, 12:08 AM
jcp And whats equivalent to php variables. Sep 2 2009, 04:45 AM
tcunningham Joseph, do you own work. Michaels not your monkey. Sep 2 2009, 04:54 AM
tcunningham QUOTE(jcp @ Sep 2 2009, 06:01 AM) I know.... Sep 2 2009, 05:24 AM
jcp I go in once a week. Thats why im asking micheal. ... Sep 2 2009, 05:27 AM
rnicron how do you get an internship when you can't do... Sep 3 2009, 02:48 PM![]() ![]() |