• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting CSS clock time from dropbox

 
azeez ahmad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set css rotation clock time from dropdown using javascript and Jquery. I have done this work so far http://jsfiddle.net/xJvHA/. But my minute and Hour hand is out of control. Please help as quickly as possible.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12123
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Nobody here cares that you are in a hurry. Please EaseUp (<--click that and read the page)
2) "Out of control" doesn't really tell us anything. Please TellTheDetails (<--click that and read the page)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I took a brief look at the code, and the fact that some of the JS code is showing up in the output means you have a real syntax problem. Open the JavaScript console and fix the code. Obviously it's not going to run correctly with errors.

Also, you say that you are using jQuery, but you're not really. You include it on the page, and then pretty much ignore it. Pages that use jQuery should not be using document.getElementById(); they should be using jQuery to fetch elements. There should be no for loops; you should be using $.each() or each(). And so on...

If you are going to use jQuery, then use jQuery.
 
azeez ahmad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:1) Nobody here cares that you are in a hurry. Please EaseUp (<--click that and read the page)
2) "Out of control" doesn't really tell us anything. Please TellTheDetails (<--click that and read the page)

Okey, now I know the way to ask the question, thanks.
 
azeez ahmad
Greenhorn
Posts: 4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I took a brief look at the code, and the fact that some of the JS code is showing up in the output means you have a real syntax problem. Open the JavaScript console and fix the code. Obviously it's not going to run correctly with errors.

Also, you say that you are using jQuery, but you're not really. You include it on the page, and then pretty much ignore it. Pages that use jQuery should not be using document.getElementById(); they should be using jQuery to fetch elements. There should be no for loops; you should be using $.each() or each(). And so on...

If you are going to use jQuery, then use jQuery.

You are correct Bear Bibeault. I was doing lots of mistake. And you direct me to right direction. Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do not stick script tags into the JavaScript section of the fiddle. It is like using an external JavaScript file.
If you want to add an external resource, there are options for that on the left side menu.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic