Question
Asked by:
pelusita
pelusita
Rating : No Rating
Questions Asked: 6
Tutorials Posted: 0
 

$50.00 Scripting/Programming Assignment

Q:

 

Scripting/Programming Assignment:

  • Have a page with three items on it:
    • Text field
    • An “Add to List” button
    • A 3-line list
  • The scenario is:
    • Type a name into the text field
    • Press the “Add to List” button
    • If the name is less than or equal to 15 characters, add it to the list, clear the text field, and return the focus there
    • If the name is blank or greater than 15 characters, display an error message and return the focus to the text field.

I also need to have this as extra:

  • Add a "Remove from List" button
  • The scenario is:
    • The user types a name into the text box
    • They press the Remove from List button
    • Your script searches the list for the name
    • If the name is not in the list, put up an alert that says something like "I don't see that name in the list"
    • If the name is in the list, remove it.
      That's the assignment. I need it on a html file. Thank you.

 

 


   
   
   
   
 
Available Tutorials to this Question
Posted by:
CMBLUE
CMBLUE
Rating (17): A+
Questions Asked: 0
Tutorials Posted: 74, earned $284.70
 

$20.00 Complete working page with comments

  • This tutorial hasn't been purchased yet.
  • Posted on Sep 14, 2009 at 9:45:08PM
A:
Preview: ... {         var nameValue = document.getElementById("nameInput").value;         if (nameValue.length == 0){             //Handle empty case             alert("The name you entered is empty.");         } else if (nameValue.length             //Handle correct length case             var list = document.getElementById("nameList");         ...

The full tutorial is about 223 words long plus attachments.

Attachments:
NameList.zip (0K) 

 NameList.html
 ]

Posted by:
 

$30.00 Perfect Solution for you

  • This tutorial hasn't been purchased yet.
  • Posted on Sep 14, 2009 at 10:35:10PM
A:
Preview: ...               ...

The full tutorial is about 258 words long plus attachments.

Attachments:
items.zip (0K) 

 items/items.html
 ]

Posted by:
 

$25.00 Name List - Add/Remove in HTML and Java Script

  • This tutorial hasn't been purchased yet.
  • Posted on Sep 15, 2009 at 04:06:20PM
A:
Preview: ... attached the Scripting and ...

The full tutorial is about 23 words long plus attachments.

Attachments:
NameList.zip (1K) 

 NameList/NameList_HTML.html
 ]

   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty