Javascript Textarea + Increment Increase?

Share your CuteNews.RU skins and code snippets.

Javascript Textarea + Increment Increase?

Postby scottdallas » Mon May 11, 2009 9:54 pm

I don't know how to explain what I'm in need of and because of this I can't figure out what to search on Google to find it. Could you smarter people help me? lol

Here's what I want.. a <textarea> that starts with 0 and underneath it (or beside or wherever as long as it works, i just imagine underneath it) is + and - buttons.. when you press + it goes up 1, 2, 3, 4, 5, 6 etc each time you click it it just goes up 1 more number.. press - it goes down one number.. a simple (i presume) javascript code to help me keep track of my work progress. I have this little .htm page I've been tweaking to make me more productive and this is the next step.

Anybody?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby cablegunmaster » Mon May 11, 2009 10:32 pm

could be possible but im not that much of a Java nerd yet :oops: failed for java but its possible.
cant you just make a textaread based on php? :)

wait the numbers... I saw this somewhere online 3 months ago but I forgot where :oops:
cablegunmaster
 
Posts: 34
Joined: Tue May 05, 2009 9:31 am

Postby Torstein » Tue May 12, 2009 12:00 am

Do you want it to store the number?

I'm not familiar with javascript, but I could have a try if I get the time for it =)
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm

Postby scottdallas » Tue May 12, 2009 7:01 am

lol thanks for replies guys.. i guess i don't really care what language it's in, php ajax javascript binary.. i don't think storing the variable is necessary. just keep current value until opened again or you refresh (f5) it
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Torstein » Tue May 12, 2009 1:33 pm

Well while doing research on javascript I found this: http://www.webmasterworld.com/javascript/3455118.htm
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm

Postby FI-DD » Tue May 12, 2009 2:59 pm

User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Fri May 15, 2009 8:19 am

thanks dudes, i wrote this at the same time on tizag.com

http://forums.tizag.com/showthread.php?t=13273

some smart guy wrote up a code real quick. probably no better or worse than the ones you listed but i figured i might as well update that i found his first, applied it, and it works perfect. you can see here:

http://www.scodal.com/uploads1/assistance.jpg
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Sat May 23, 2009 6:27 pm

Oh, I misunderstood your question. My link increases the size of the textarea while you wanted to increase a number inside the textarea. :oops:
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Sun May 24, 2009 2:05 pm

haha WOW you thought of it in an entirely unique cool way. not even sure what one would do with that.. but since i hadn't thought of it before, i'll be thinking about it now
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US


Return to Skins and snippets



Who is online

Users browsing this forum: No registered users and 0 guests