Extremely Confused w/ HTML & Javascript:?
-
Here is the given code: Create two documents. One is called select_course.html, and the other is called select_course.js as the following <?xml version = "1.0" encoding = "utf‐8" ?> <!DOCTYPE html PUBLIC "‐//w3c//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtm… <!‐‐ select_course.hmtl it uses select_course.js ‐‐> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title> select a course </title> <script type = "text/javascript" src = "select_course.js" > </script> </head> <body> <h1> Web Certificate Courses </h1> <form id = "myWebForm" action = ""> <p> <label> <input type = "radio" name = "courseButton" value = "CSIT470" onclick = "chooseCourse(470)" /> Advance Web Development </label> <label> <input type = "radio" name = "courseButton" value = "CSIT430" onclick = "chooseCourse(430)" /> Internet Database Application </label> <label> <input type = "radio" name = "courseButton" value = "CMPT320" onclick = "chooseCourse(320)" /> Internet Security </label> </p> </form> </body> </html> -----&------- function chooseCourse (courseNO) { switch (courseNO) { case 320: alert("A course to learn network and internet security"); break; case 430: alert("A course to learn database applications on internet"); break; case 470: alert("A course to learn advance web development skills"); break; default: alert("There is an error"); break; } } I need to 1) use window.prompt() to ask the user to enter a numeric input for table border size. Use the user’s input to create a table with the desired border size. Let’s assume legal border sizes are 3,5,7, and 9. Others will be rendered using size 0 (no border). and 2) Create an XHTML that uses javascript to compute the total of an online order before the form data send to the server. Assuming there are only three fruits in our case. The unit prices are listed as show below. When the total cost button pressed, the total will show on the total text field. Order now is the submit button and clear is the reset button. The picture in the right is when 3, 4, and 5 was entered, and Total cost button pressed. 49.38 will show on the total field. any help will be greatly appreciated as I am completely lost. Have been staring at this for almost two weeks.... please please please.
-
Answer:
What is this for? It sounds like a school project of some sort. The link below is extremely useful, and it is free. You can pretty much type in what you want and it will give you the code for it. It has free tutorials also. I hope that helps.
moltonbo... at Yahoo! Answers Visit the source
Related Q & A:
- Why is Javascript called Javascript, if it has nothing to do with Java?Best solution by Stack Overflow
- Who was the coolest character in Dazed and Confused?Best solution by buzzfeed.com
- Skype and very confused?Best solution by Yahoo! Answers
- Confused about a usb cable?Best solution by Yahoo! Answers
- Why has my laptop screen confused black with red?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.