Comments (8)
Because a "image" is a HTML element not a jQuery element.... if you write
something like $(image).rotate then it will work...
Hope it helps ;)
Original comment by [email protected]
on 12 Aug 2011 at 7:22
from jqueryrotate.
Not a plugin issue so closing.
Original comment by [email protected]
on 12 Aug 2011 at 7:22
- Changed state: Invalid
from jqueryrotate.
Thanks so much for the quick response. The "image" object in the functions
show() and hide() are both returned from the jquery first() function in the
createBox() function, so it is already a jquery element. But to be
double-dog sure I went ahead and tried it. It still didn't work. I left the
changes on the site, so that you could verify that I made the changes
correctly. I would like to point out though that, I have this same code on
an otherwise blank test-page and it works fine as-is (that is before
changing image to $(image)). Thanks again. Let me know what I should try
next.
Original comment by [email protected]
on 12 Aug 2011 at 8:52
from jqueryrotate.
Well so your problem is quite unusual. You have like 3 jQuery librares
included. I assume that my plugin get loaded in middle of two of them so it
attaches to the jQuery version that later on is overriden by a newer version
(or just different one) - this way a .rotate function is not avail.
Try to use only one jQuery at all, or make sure that jQueryRotate plugin is
loaded after the last jQuery library
Original comment by [email protected]
on 15 Aug 2011 at 11:08
from jqueryrotate.
That was the problem. Thank you very much! Do you know why it would still
not work right in IE. It rotates once, and then it looks like it changes
positions upward slightly, and after that it doesn�t run again until the
page is refreshed. It looks great in Chrome, Firefox, Safari, and Opera (You
can see the correct behavior there), but in IE8 I get the above described
issue. BTW, awesome plug-in, it�s really slick looking. Thanks again for the
quick responses.
Original comment by [email protected]
on 15 Aug 2011 at 9:01
from jqueryrotate.
The problem why it doesnt work is this line:
show($(elem).children('div'), $(elem).children('img').first());
and
hide($(elem).children('div'), $(elem).children('img').first());
The problem is that this plugin to make rotation working in IE replaces IMG
component with a VML-Image component. That means that selectors based on "img"
will no longer works (as in your case).
To solve it you can for example change:
$(elem).children('img').first()
To something like this:
$(elem).children(':first').first()
This way you will always point to proper object.
Cheers,
Original comment by [email protected]
on 16 Aug 2011 at 9:15
from jqueryrotate.
Issue 43 has been merged into this issue.
Original comment by [email protected]
on 16 Aug 2011 at 9:15
from jqueryrotate.
Brilliant! Thanks, so much, man. This effect really gives a quality feel to the
box. I appreciate your help with these issues.
Original comment by [email protected]
on 16 Aug 2011 at 1:36
from jqueryrotate.
Related Issues (20)
- using jqueryrotate with canvas not working as expected HOT 2
- Patch for /trunk/jQueryRotate.js HOT 1
- Throws error when page contains no 'HEAD' element HOT 4
- Issue on IE8 - not working properly in sequence of animation, after being called after first HOT 3
- "rotate" function doesn't allow string for angle parameter HOT 1
- Bower integration
- JQueryRotate not working when used within a jquery UI Dialog HOT 1
- Patch for /trunk/jQueryRotate3.js HOT 2
- Callback not working! HOT 1
- Using center with angle: 0 does not center the image at the specified coordinate HOT 3
- Not working in IE8 on a div HOT 1
- (supportedCSSOrigin[0] == "T") supportedCSSOrigin[0]="t" isn't useful
- Patch for /trunk/jQueryRotateExample.html
- http://visichattt.blogspot.com/ HOT 1
- JQueryUI HOT 1
- callback does not behave as expected HOT 3
- Rotating from (eg) 350degrees to 10degrees goes backwards HOT 4
- Not Working IN IE8 HOT 6
- SCRIPT5007: Error HOT 45
- jQuery Conflict in WP. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqueryrotate.