Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I need javascript code for showing a encouraging messages for every cummulative 50’s of order entries done .

This javascript is called whn the submit button is clicked.. this should repeat after every 50 order entries are done.

Thanks in advance.
Posted
Comments
Parwej Ahamad 4-Jul-11 2:44am    
I need too :)
[no name] 4-Jul-11 2:45am    
What have you tried for this? We can guide you not to do your Homework.
CS1401 4-Jul-11 3:05am    
oh really!!

The obvious way to do this, is to store a counter in viewstate, and then when you get to a multiple of 50 ( as in, count % 50 == 0 ) then insert javascript like alert("You're doing great, buddy !!!");
 
Share this answer
 
Hi christian,

Thanks for ur answer mate..

please can you be more specific with steps in writing this javascript..
 
Share this answer
 
Comments
Christian Graus 4-Jul-11 2:55am    
1 - don't push 'answer' to ask questions. 2 - Just putting a literal on the page and setting it to be the code I gave you inside a javascript code block will do it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900