Advertising
Paste Description for raisputin - wtf??
what is making this not work?
- raisputin - wtf??
- Monday, April 21st, 2008 at 10:14:46am MDT
- <script type="text/javascript">
- <!--
- var seconds
- var minutes
- var hours
- var timeVal = "12"
- if (timeVal = ''){
- hours=00
- minutes=00
- seconds=00
- else{
- hours=00
- minutes="12"
- seonds=00
- }
- //document.TicketUpdate.UpdateTimeWorked.value="12"
- function display(){
- if (seconds>=60){
- seconds=0
- minutes+=1
- }
- else if (minutes>59){
- seconds=0
- minutes=0
- hours+=1
- }
- else
- seconds+=1
- document.TicketUpdate.UpdateTimeWorked.value=hours+":"+minutes+":"+seconds
- setTimeout("display()",1000)
- display()
- }
- //-->
- </script>
- then in the form...
- <form enctype="multipart/form-data" method="post" name="TicketUpdate" action="Update.html">\
- ...
- ...
- Worked:
- <input value="" name="UpdateTimeWorked" size="4"/>
- Looks right to me...it is in testing now, that is why there is some weird stuff in there like timeVal=12, etc.
- Other than crap code (which I have a replacement for at home that is MUCH better), what am I doing wrong here?
Paste Details
Tags: javascript bullshit rt
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.