Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 06-03-2006, 10:23 AM   #1 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Exclamation Countdown

Hello I was wondering if someone could tell me the code or if they could direct me to a site or thread that would tell me this code. What I need is a code that would count down after someone clicks on a button. My client has coupons he wants to sell but he has only a certen amout. He wants it where when they click on the print button the amount of tickets would go down by one. Also could you tell me the code to atuomaticly go to the print screen?

Thanks,
William
WHWebSolutions is offline  
Old 06-03-2006, 03:02 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

Code:
<script>
<!--
function down() {
if (document.counter.box.value != 0) {
//alert(document.counter.box.value);
print();//print the screen
document.counter.box.value = --document.counter.box.value;//decrement counter
  }
}
-->
</script>
<form name=counter>
<input name=box type=text size=2 value=10>
<input type=button onclick=down(); value="minus one">
</form>
save attachment as html and open.
Attached Files
File Type: txt new.html.txt (371 Bytes, 16 views)
office politics is offline  
Old 06-03-2006, 03:22 PM   #3 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Exclamation

Ok i see that it works but what about. if they go back to the website will it be back at the default number or will it stay at the last number? I downloaded the file and tested it and then reloaded it and it went back to the default number of 10. Please can you help me out with this now?
WHWebSolutions is offline  
Old 06-04-2006, 02:11 PM   #4 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

you'll need to move the variable to the server. you will need some type of server scripting & database support. ASP or PHP or CGI for scripting and a Mysql or SQL or access for a database.
office politics is offline  
Old 06-07-2006, 06:54 PM   #5 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Default

is there a way that you could make me a database that could help me out with this? This would help me out alot as i do not know how to make a data base at all.

William
__________________
William Harding
William Harding Web Solutions
whwebsolutions@aol.com
Visit my site for web hosting and design <a href=\"http://www.web-solutions.co.nr\">http://www.web-solutions.co.nr </a></td>
WHWebSolutions is offline  
Old 06-07-2006, 09:20 PM   #6 (permalink)
 
Super Techie

Join Date: Oct 2005

Posts: 385

raross

Default

Just use a file, there is no need for a database for a small counter like this.
__________________
MCSD, MCAD, CCNA, CIW-A, Linux+, Server+, Security+, Project+, iNet+, Network+, A+, MCP
raross is offline  
Old 06-10-2006, 06:22 AM   #7 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Default

See I do not know any other code but HTML. If someone could make the code and files I need to get this code the way I need it then that would be very helpful.

Thanks
__________________
William Harding
William Harding Web Solutions
whwebsolutions@aol.com
Visit my site for web hosting and design <a href=\"http://www.web-solutions.co.nr\">http://www.web-solutions.co.nr </a></td>
WHWebSolutions is offline  
Old 06-10-2006, 02:19 PM   #8 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

Why don't you learn how to do it yourself? Start learning. When you have questions or have developed some of your own code and need help, then post back here.

Quote:
See I do not know any other code but HTML.
That's ok. Now you have proper motivation to learn something new.

Quote:
Hello I was wondering if someone could tell me the code or if they could direct me to a site or thread that would tell me this code. What I need is a code that would count down after someone clicks on a button. My client has coupons he wants to sell but he has only a certen amout. He wants it where when they click on the print button the amount of tickets would go down by one. Also could you tell me the code to atuomaticly go to the print screen?
You offer "web solutions" professionally, and you don't know anything aside from HTML? I hope you don't tell that to your customers. Why do you shun PHP, ASP, and any type of technology that supports dynamic websites? (I got that info from your website). Why don't you just bite the bullet and learn those technologies, especially PHP? It's not really that difficult.

If you plan on experiencing any kind of success offering "web solutions", it should be your business to learn about all the current technologies and offer them to your clients. Creating purely static HTML websites is a thing of the past.
jaeusm is offline  
 
Closed Thread

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On