shani622 / jquery-rotate

Automatically exported from code.google.com/p/jquery-rotate
0 stars 0 forks source link

Don't work with variables, just static numbers. #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Init object: <script>$("#obj").rotate(25);</script>
2. Make HTML with input box and onchange event = 
$("#np_drag").rotate(this.value); - WON'T WORK
3. Input box with onchange = $("#np_drag").rotate(25); - WILL WORK

What is the expected output? What do you see instead?
I expected to see object rotated. But nothing happened.

What version of the product are you using? On what operating system?
Google Chrome 10.0.648.133. Windows 7.

Please provide any additional information below.
I'm using jquery draggable on same object with containment. It's div layer. You 
can see it at http://npsig.sok4e.eu/settings/signature (need registration)

Original issue reported on code.google.com by ad...@sok4e.eu on 15 Mar 2011 at 10:24

GoogleCodeExporter commented 8 years ago
I think this is a different project that is abandonded ... ;) 

Original comment by wil...@gmail.com on 15 Mar 2011 at 10:42

GoogleCodeExporter commented 8 years ago
Well I fixed problem with bindin onchange event in JavaScript instead in HTML. 
:)

Original comment by Warxc...@gmail.com on 23 Mar 2011 at 12:53

GoogleCodeExporter commented 8 years ago
this.val()

or sometimes you need

$(this).val()

might work instead of .value if it's a jquery object not a dom object.

Original comment by meante...@gmail.com on 5 Aug 2011 at 6:49