Hi Ben,

Thanks for the compliment.  Absolutely I would accept any help
whatsoever.  I'm currently working on the timer issue that John
Kramlich pointed out.  So far here is the fix:

jQuery.timerId = setInterval(function(){
        var timers = jQuery.timers;
        for (var i = 0; i < timers.length; i++) {
                if (!timers[i]()) {
                        timers.splice(i--, 1);
                }
        }
        if (!timers.length) {
                clearInterval(jQuery.timerId);
                jQuery.timerId = null;
        }
}, 83);

Testing it is another issue.  There's an aggravatable delay between
uploading your html files and loading them on the iPhone.  This as
well as firmware detection will be necessary in the next release.
Also, I'm sure there needs to be some iPhone animations ported over to
the jQuery method soon too.  I think the worst thing I could do is
take too long between these releases.

On Apr 16, 8:12 am, Ben Densmore <[EMAIL PROTECTED]> wrote:
> That is really cool, Jonathan.
>
> I'm actually building an iPhone app with jQuery as we speak.
>
> Are you taking on project contributors? I'd like to get involved if possible.
>
> Thanks,
> Ben
>
> ----- Original Message ----
> From: Jonathan <[EMAIL PROTECTED]>
> To: iPhoneWebDev <[email protected]>
> Sent: Tuesday, April 15, 2008 8:41:50 PM
> Subject: jQuery iPhone Plugin
>
> I've started a jQuery iPhone plugin project to extend jQuery
> functionality for specific iPhone features.
>
> Project Page:http://plugins.jquery.com/project/iphone
> Direct Download:http://jquery.thewikies.com/iphone/jquery.iphone.zip
>
> So far it's not much, but what it does do you may find very useful,
> and for jQuery users it should be fairly simple, because this script
> tries to always keep with the jQuery lexicon.  Here is an example of
> jQuery.
>
> $(document).ready(
>     function(){
>         $('body').html('<p>The entire site body was replaced with this text
> before you even saw it!</p>');
>     }
> );
>
> One thing my script will do is hide the URL bar, regardless of the
> height of your page or if you have a stylesheet present.  It just
> works.
>
> $(document).ready(
>     function(){
>         $.iPhone.hideURLbar(); // This will hide the URL bar when the page
> first appears.
>     }
> );
>
> Also, you can disable and reenable the automatic text size adjustments
> when rotating your iphone to different angles.
>
> $(document).ready(
>     function(){
>         $.iPhone.disableTextSizeAdjust(); // No text resizing right from the
> get-go.
>     }
> );
>
> Finally, (and I'm working on more functions, so I'm sorry there are so
> few so far), you can automatically detect and launch functions based
> on whenever the iPhone makes a rotation change / orientation change /
> tilt change / whatever-you-want-to-call-it.
>
> $(document).iPhone.orientchange(
>     function(){
>         alert('the iphone has rotated the screen');
>     }
> );
>
> Following the jQuery standard of extensibility, you can write custom
> functions for portrait and landscape, separately.
>
> $(document).iPhone.orientchange(
>     function(){
>         alert('the iphone has rotated the screen to portrait');
>     },
>     function(){
>         alert('the iphone has rotated the screen to landscape');
>     }
> );
>
> Or you can also write custom functions for portrait, 90 degree
> landscape, and -90 degree landscape.
> $(document).iPhone.orientchange(
>     function() {
>         alert('the iphone has rotated the screen to portrait');
>     },
>     function() {
>         alert('the iphone has rotated the screen to a 90 degree landscape');
>     },
>     function() {
>         alert('the iphone has rotated the screen to a -90 degree
> landscape');
>     }
> );
>
> That's all for now.  Any feedback is gold to me. :)
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to