function orderPizza() { var name = document.order.name.value; var addr = document.order.addr.value; var tel = document.order.tel.value; var chs = document.order.chs.value; var pep = document.order.pep.value; var sup = document.order.sup.value; var costc; var costp; var costs; var costt; var pizzacount; document.open(); document.write("<HTML><HEAD><TITLE>Student 070129 Assignment three page 3b</TITLE></HEAD>"); document.write("<BODY>"); document.write("<H2> "+ name + ", here is a summary of your order:</H2>");
document.write("<B>Name: </B>" + name + "<BR>"); document.write("<B>Delivery Address: </B>" + addr + "<BR>"); document.write("<B>Telephone number: </B>" + tel + "<BR>");
document.write("<B>You ordered " + chs + " Cheese Pizzas for a cost of " + costc + " dollars.</B><BR>"); document.write("<B>You ordered " + pep + " Pepperoni Pizzas for a cost of " + costp + " dollars.</B><BR>"); document.write("<B>You ordered " + sup + " Supreme Pizzas for a cost of " + costs + " dollars.</B><BR>"); document.write("<B>You have ordered a total of " + pizzacount + " Pizzas. We will call you at " + tel + " to confirm the order. </B><BR>"); document.write("<B>The total cost of your order is " + costt + " dollars.</B><BR>"); document.write('<form><input type=button value="Submit Pizza Order" onClick=alert("Pizzas..are..on..the..way");>');
document.write('<INPUT TYPE="button" VALUE="Cancel and go back" onClick="history.go(-1)"></form>');
</HEAD> <H1 ALIGN = "center">Student 070129 Assignment three page 3a</H1> <FORM NAME="order" method="post" > <TABLE CELLPADDING="20" BORDER="5"> <TR > <TD> Please enter your <B>Name:</B> <INPUT TYPE="text" NAME="name"> </TD> <TD> Please enter your <B>Address:</B> <INPUT TYPE="text" NAME="addr"> </TD> <TD> Please enter your <B>Telephone number:</B> <INPUT TYPE="text" NAME="tel"> </TD> </TR> <TR > <TD> <B>How many Cheese at $5.00 each?:</B> <SELECT NAME = "chs";"> <OPTION VALUE="0" SELECTED>0</OPTION> <OPTION VALUE="1">1</OPTION> <OPTION VALUE="2">2</OPTION> <OPTION VALUE="3">3</OPTION> <OPTION VALUE="4">4</OPTION> </SELECT> </TD> <TD> <B>How many Pepperoni at $7.00 each?:</B> <SELECT NAME = "pep";"> <OPTION VALUE="0" SELECTED>0</OPTION> <OPTION VALUE="1">1</OPTION> <OPTION VALUE="2">2</OPTION> <OPTION VALUE="3">3</OPTION> <OPTION VALUE="4">4</OPTION> </SELECT> </TD> <TD> <B>How many Supreme at $9.00 each?:</B> <SELECT NAME = "sup";"> <OPTION VALUE="0" SELECTED>0</OPTION> <OPTION VALUE="1">1</OPTION> <OPTION VALUE="2">2</OPTION> <OPTION VALUE="3">3</OPTION> <OPTION VALUE="4">4</OPTION> </SELECT> </TD>
</TR>
<TR> <TD COLSPAN = "2" > To place the order click the <INPUT TYPE="button" NAME="order" VALUE="Order Pizza" ONCLICK="orderPizza();" ><BR> To cancel the order and start over, click the <INPUT TYPE="button" NAME="Cancel" VALUE="Cancel" ONCLICK = "window.location.reload()">
onClick not working - Java Beginners onClick not working The project is to create a pizza ordering form. On the summary page, I am trying to get a confirmation to popup when the submit pizza order button is clicked. I have it linked to a function
Working with JavaScript & CSS Working with JavaScript & CSS
 ... attributes to provide javascript
support like onblur, onchange, onclick...;
<h:commandButton onclick="return checkName()" styleClass="submitbutton
javascript onclick function
javascript onclick function javascript onclick function
<html>
<head>
<script language="javascript">
function...!"
onclick="showmessage()" >
</form>
</body>
</html>
jquery href onclick event
jquery href onclick event jquery href onclick event
$('a').click(function (event)
{
event.preventDefault();
//here you can also do all sort of things
});
<script type="text/javascript
calling setInterval() on onclick event
calling setInterval() on onclick event Hi all,
I am trying to call setInterval() on onclick event. But it is executing the code only once...(a+"=: "+a);
}
</script>
<body>
<div id="one" onClick="send();">
onclick pass variable - JSP-Servlet onclick pass variable on button onclick event pass variable and print in textbox in same page... i want to pass value of variable at onclick event of button and also want to print it in textbox in same page.... Hi
Option onclick am not getting the value ..
Option onclick am not getting the value .. function get_val( tot_val )
{
document.getElementById('TextBox1').value = tot_val;
}
<tr>
<td><textarea id="TextBox1" name=textarea1 readonly="readonly
HTML Button onclick get ID of Button
HTML Button onclick get ID of Button How i can get the ID of HTML Button on click?? I wanted to do it using JavaScript function.
Thanks
htpasswd working
htpasswd working hii,
What does htpasswd do?
hello,
htpasswd creates a new user in a specified group, and asks to specify a password for that user
Datagrid not working
Datagrid not working The code here is working fine, apart from the fact that that I'm using netbeans 6.5 and the servlet v2.5 and struts 1.1.... working. please help me out
Why this is not working...?
Why this is not working...? import java.util.*;
public class Family {
int size_of_family=0;
public Person[] members=new Person[size_of_family];
Person d = new Person();
public Family (int size_of_family){
members = new
Focus method not working in firefox
Focus method not working in firefox object.focus() is not working in firefox and chrome
the element is not focused
what was the problem
display the hidden text from that row, when onclick on a row of 1- 10
display the hidden text from that row, when onclick on a row of 1- 10 ... to 10)in jsp page, when onclick on one of the view row, it has to submit...: #ffffcc;">
<%while (rs.next()) {%>
<TR onclick=submit()>
<
jsf graphicImage onclick problem - Java Server Faces Questions
jsf graphicImage onclick problem hello
I have a problem on netbeans-jsf-graphicImage component.
I want to get image coordinate and write it to staticText component,
when I clicked on the map.
But I couldn't achieve
calender working in struts - Struts
calender working in struts when i execute the following code ,that is working properly
if i convert to struts html tags that code is not working
please help me to rectify the problem
html dropdown not working firefox
html dropdown not working firefox I am writing a Dropdown code in HTML which is not working in firefox. What could be the reason as it's perfectly working in IE and Crome.
Thanks
file_exists php not working
file_exists php not working file_exists php not working. Please give me the simple example
Dynamic-update not working in Hibernate.
Dynamic-update not working in Hibernate. Why is dynamic update not working in hibernate?
Dynamic-update is not working. It means when you are running your update, new data is added in your table in place
UIWebView zoom not working
UIWebView zoom not working Hi,
I don't know why UIWebView zoom not working? Tell the solution.
Thanks
Hi,
Open the .xib file and set scalesPageToFit to YES.
Thanks
Working of POS Terminal Working of POS Terminal Hi there, thanks for this post. Just curious how actual POS terminal will interact with PHP. PHP doesn't provide hardware interaction.
Thanks for reply.
Regards
background images in css not working
background images in css not working In the application i'm passing a background image from CSS in the given format ...
background-image: url("Image\backgroundImage.GIF");
which is not working. So, please give me an example
calculate working hour
calculate working hour why echo not come out?
<html><body>
<form action="<?php $_SERVER['PHP_SELF'];?>" method="post">
Working hour : <input name="workout" type="text"/><input name="submit1
Working with Eclipse IDE - Struts Working with Eclipse IDE hello, i am beginner to eclipse .
i want to run my first struts program in eclipse 3.2.
what are the steps for running struts in eclipse .
Any body plz, tell me the setting environment of eclipse
command prompt is compilation is not working
command prompt is compilation is not working Dear java users can anyone help me to run the program in command line prompt i tried by selecting the environment variable and class path and path in my system my program
Ajax not working in jsp
Ajax not working in jsp I'm using Netbean, Ajax validation in the following code is not working the code succesfully run for first UID validation adn also for ee-mail but does not enter if else for firstname field please help me
code not working properly
code not working properly protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
// TODO Auto-generated method stub
response.setContentType
Multi Threading is not working in that why...?
Multi Threading is not working in that why...?
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
public
working of a div tag in html working of a div tag in html
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
JTextfields working with JTextArea
JTextfields working with JTextArea I have 2 database tables one is history the other is patient,
How can I get which every patient is being displayed on the text fields
To have their history on History table displayed
J2ME application not working on n79
J2ME application not working on n79 Hi,
i had developed assignment on sun sdk and its running fine on emulator but not showing results in two text fields on my mobile phone i.e.nokia -n79.please Help
import
J2ME application not working on n79
J2ME application not working on n79 Hi, i had developed assignment on sun sdk and its running fine on emulator but not showing results in two text fields on my mobile phone i.e.nokia -n79.please Help
public class MoneyL extends
J2ME application not working on n79
J2ME application not working on n79 Hi, i had developed assignment on sun sdk and its running fine on emulator but not showing results in two text fields on my mobile phone i.e.nokia -n79.please Help
public class MoneyL extends
J2ME application not working on n79
J2ME application not working on n79 Hi, i had developed assignment on sun sdk and its running fine on emulator but not showing results in two text fields on my mobile phone i.e.nokia -n79.please Help
public class MoneyL extends
datetimepicker not working in struts2
datetimepicker not working in struts2 Hi,
I am using "struts2-dojo-plugin-2.1.6.jar" and the taglib is "<%@taglib prefix="d" uri="/struts-dojo-tags"%>"
**sample code:**
<%@taglib prefix="s" uri="/struts-tags