30
Apr
08

jQuery iPhone Plugin

This looks like it’ll be of interest to you JavaScript programmers targeting the iPhone: There’s a new plugin for what I gather is the generally well-regarded jQuery JavaScript library (dual licensed under MIT/GPL, which equates to “do absolutely anything at all you can conceive of with it”) for iPhone-related functionality, which is eponymously named the jQuery iPhone Plugin. Here’s the initial features mentioned in the announcement post:

  • Hide the URL bar, regardless of the height of your page or if you have a stylesheet present.
  • Disable and reenable the automatic text size adjustments when rotating your iPhone.
  • Automatically detect and launch functions based on whenever the iPhone makes a rotation change.

Which looks like pretty useful functionality. I’m not much of a JavaScript person … yet … but if any of you are and want to get into jQuery, how about you shop for these jQuery books, and let me know if they’re worthwhile enough to create a page in the Under The Bridge Store to recommend Web programming books?

 

 

 

h/t: iPhoneWebDev!


3 Responses to “jQuery iPhone Plugin”


  1. 1 Duane Storey May 1st, 2008 at 8:02 pm

    Hmm.. Not sure I understand what that library does. All three of those functions have documented javascript already, and are trivial to implement. For example, the “hide the URL thing” is basically just a simple scroll command to push it out of sight.

  2. 2 Alex May 1st, 2008 at 9:03 pm

    Because if you’re using jQuery already, it’s easier to paste in

    $(document).ready(function(){
    if ($.iPhone.present) {
    $.iPhone.hideURLbar();
    $(’#version’).html(”Your iPhone is running Safari v” + $.iPhone.version.safari + “ on WebKit v” + $.iPhone.version.webkit + ‘.’);
    }
    });

    than it would be to implement it yourself?

    Besides, the theory of publicizing these trivial at the start projects that poke their heads up on mailing lists is that more people will become aware of them and therefore consider contributing to raise them into non-triviality, yes?

  1. 1 J2me Blog » Blog Archiv » jQuery iPhone Plugin Pingback on Apr 30th, 2008 at 8:04 am

Leave a Reply