[jQuery] jQuery and iPhone developers... effects working yet?
I have read through a few other posts and blog entries on getting jQuery to function properly (effects) on the iPhone. I tried a few libraries to help develop on the iphone but I keep returning to my beloved jQuery. Everything else is lines and lines of code while jQuery can do it in a single line. The only thing that doesn't work properly is the effects. Sliding, animating and other effects do not emulate properly on the iPhones safari browser. I did some reading and it seems that the interval in jQuery is 20ms where as it should be atleast 80 to function properly on the iphone's browser. Has anyone out there got the effects in jQuery or jQuery UI to function smoothly?. Thanks
[jQuery] Re: jQuery and iPhone developers... effects working yet?
I just tried it... perfect! thanks for the input i didn't even know about that library. If they work good together that's even better! Thanks again, On Sep 17, 5:17 pm, MorningZ [EMAIL PROTECTED] wrote: I'm using CiUI (http://clientside.cnet.com/cnet-js-standards/ciui-cnet- iphone-ui/) on a iPhone version of my site: http://iphone.team-integra.net and it plays nice with jQuery for what i am using it for, which is: - Ajax calls - BlockUI - Show/Hide Not sure if that helps at all or not, but that iPhone framework seems to play nice with jQuery
[jQuery] Re: Animate function. Once I animate how do I er.... de... animate
this worked great, thanks! On Feb 13, 5:08 pm, J Moore [EMAIL PROTECTED] wrote: um, use a variable? var x = true; $(#container).click(function() { if (x) { $(#container).animate({marginTop: -=237px}, slow); } else { $(#container).animate({marginTop: 400px}, slow); } x = !x; }); On Feb 13, 3:05 pm, somedude [EMAIL PROTECTED] wrote: Ok sorry about the title, don't know what to say. I have a site for a client, and when you click a certain div it animates with a marginTop -=300px like effect so the div is just visible sliding in behind another div. Now, if the user clicks the div again it will do the same and go up by 300px. What I want is a toggle like function where if you click it the second time it now adds the 300px back and the div is back in place. so right now here is the setup code, very simple: $(#container).click(function() { $ (#container).animate({marginTop: -=237px}, slow); }); There has to be an easier way then to set a cookie stating Clicked=yes then reset to No Anyone? Thanks
[jQuery] Animate function. Once I animate how do I er.... de... animate
Ok sorry about the title, don't know what to say. I have a site for a client, and when you click a certain div it animates with a marginTop -=300px like effect so the div is just visible sliding in behind another div. Now, if the user clicks the div again it will do the same and go up by 300px. What I want is a toggle like function where if you click it the second time it now adds the 300px back and the div is back in place. so right now here is the setup code, very simple: $(#container).click(function() { $ (#container).animate({marginTop: -=237px}, slow); }); There has to be an easier way then to set a cookie stating Clicked=yes then reset to No Anyone? Thanks