Message Board Basketball Forum - InsideHoops

Go Back   Message Board Basketball Forum - InsideHoops > InsideHoops Main Basketball Forums > Off the Court Lounge

Off the Court Lounge Basketball fans talk about everything EXCEPT basketball here

Reply
 
Thread Tools
Old 10-25-2010, 12:47 PM   #1
tpols
we already won
 
tpols's Avatar
 
Join Date: Jun 2010
Posts: 21,991
Default Java script help

Is anyone here familiar with javascript?

I had to write a html file for my computer class and basically I just had to make a table using notepad and html tags that lists four products I'm selling. I have to set up the variables to have the customer ask what product they want and how many they want. Then I have to print a receipt for them that tells them their total balance due. Does anyone know the basic layout to do this?
tpols is offline   Reply With Quote
Old 10-25-2010, 02:52 PM   #2
Hazard
makhnovshchina
 
Hazard's Avatar
 
Join Date: Feb 2010
Location: Philthadelphia
Posts: 2,398
Default Re: Java script help

http://www.w3schools.com/default.asp
This should have everything you're looking for. All you need with HTML is a simple table with the components you mentioned, all the links will be activated with the javascript. Look through the website it'll have the syntax you need to do this.
Hazard is offline   Reply With Quote
Old 10-25-2010, 03:13 PM   #3
Ron Artest
Banned
 
Join Date: Sep 2010
Location: cloud 9, LA
Posts: 243
Default Re: Java script help

Quote:
Originally Posted by tpols
Is anyone here familiar with javascript?

I had to write a html file for my computer class and basically I just had to make a table using notepad and html tags that lists four products I'm selling. I have to set up the variables to have the customer ask what product they want and how many they want. Then I have to print a receipt for them that tells them their total balance due. Does anyone know the basic layout to do this?

do yo own homework bum!

3 red spots for you? whos gunna help you?
Ron Artest is offline   Reply With Quote
Old 10-25-2010, 03:30 PM   #4
chains5000
From Out Of Nowhere
 
chains5000's Avatar
 
Join Date: Jun 2006
Location: Bilbao
Posts: 7,802
Default Re: Java script help

Quote:
Originally Posted by tpols
Is anyone here familiar with javascript?

I had to write a html file for my computer class and basically I just had to make a table using notepad and html tags that lists four products I'm selling. I have to set up the variables to have the customer ask what product they want and how many they want. Then I have to print a receipt for them that tells them their total balance due. Does anyone know the basic layout to do this?
Print to the screen or to paper?
You should be able to do this easily...
chains5000 is offline   Reply With Quote
Old 10-25-2010, 03:57 PM   #5
tpols
we already won
 
tpols's Avatar
 
Join Date: Jun 2010
Posts: 21,991
Default Re: Java script help

Quote:
Originally Posted by chains5000
Print to the screen or to paper?
You should be able to do this easily...
screen. I have to write it to print to screen but I'm having a tough time with some of the material. I have zero programming experience.
tpols is offline   Reply With Quote
Old 10-25-2010, 05:27 PM   #6
chains5000
From Out Of Nowhere
 
chains5000's Avatar
 
Join Date: Jun 2006
Location: Bilbao
Posts: 7,802
Default Re: Java script help

Quote:
Originally Posted by tpols
screen. I have to write it to print to screen but I'm having a tough time with some of the material. I have zero programming experience.
If you post the HTML page, I may post the js code if I have the time tomorrow at work.
chains5000 is offline   Reply With Quote
Old 10-25-2010, 06:02 PM   #7
tpols
we already won
 
tpols's Avatar
 
Join Date: Jun 2010
Posts: 21,991
Default Re: Java script help

Quote:
Originally Posted by chains5000
If you post the HTML page, I may post the js code if I have the time tomorrow at work.
ok that'd be great man
<html>
<head style="background-color:yellow"><title>Javascript Assignment 1:Timothy Polnik</title>
<!--Timothy Polnik Rohit Javascript 1 10/25/10-->
<h1>Initech-eCommerce</h1>
</head>
<body style="background-color:yellow">
<table border="1" width="50%" style="background-color:grey">
<tr>
<th>Product Name</th>
<th>Price</th>
<th>Discount</th></tr>
<tr>
<td>Xbox 360 Console</td>
<td>300</td>
<td>.10</td></tr>
<tr>
<td>Halo: Reach</td>
<td>60</td>
<td>.05</td></tr>
<tr>
<td>Halo 3</td>
<td>30</td>
<td>.05</td></tr>
<tr>
<td>Kapersky Antivirus</td>
<td>200</td>
<td>.10</td></tr>
</table>
</body>
</html>
tpols is offline   Reply With Quote
Old 10-25-2010, 06:37 PM   #8
shlver
코비=GOAT
 
Join Date: Feb 2009
Posts: 4,265
Default Re: Java script help

Quote:
Originally Posted by chains5000
Print to the screen or to paper?
You should be able to do this easily...
This is pretty hard in my opinion.
shlver is offline   Reply With Quote
This NBA Basketball News Website Sponsored by:


Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:00 PM.






NBA BASKETBALL FORUM KEY LINKS:

NBA Basketball

NBA Rumors

Basketball Blog

NBA Videos

NBA Free Agents

NBA Free Agency

NBA Summer Leagues

Utah Summer League

Sacramento Summer League

Vegas NBA Summer League

Search Site

FOLLOW US
Twitter
Facebook
Instagram
YouTube
















Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd. Terms of Use/Service | Privacy Policy