code

Searchy 2 for iPhone

Over on the Searchy Web site (http://searchy.chadedge.com/index.php/blog) I am showing a brief demo of the new Searchy 2 for iPhone.

A 100% rewrite, tons faster, cleaner, and with some rich highlighting tweaks that I feel puts Searchy far ahead of other iPhone browsers.

But that’s all my opinion – what’s yours?

a problem with jQuery plugin “scrollTo”

Please note: with the video below, you may want to play/pause throughout in order to read my notes (and to understand what the hell I’m talking about).

using jQuery plugin “scrollTo” locks a UIWebview position from chadedge on Vimeo.

I’m working with the jQuery plugin “scrollTo” and I’ve come across a problem:

When I fire the $.scrollTo('.a_class_item',{duration:'800',axis:'y'}); the Web page I’m viewing on the iPhone does scroll correctly (very nice!).

However, once that first position has been scrolled to, control of the Web page is toast – meaning, if I try and touch-drag anywhere else, when I release my finger the Web page “snaps” back to the first scrolled postion.

I cannot duplicate this in any browser (in a desktop browser, the behavior is as expected, again, very nice interaction).

If I default back to a window.scrollTo(x,y);, then the Web page retains control and the UI responds correctly – it seems that the scrollTo plugin is “locking” the page position.

Any ideas on how to “release” that lock so I can scroll, resize, (even scroll to a different area on the page)?

Screen shot 2010-03-16 at 6.26.10 PM

Having trouble traversing a document

I’m using JavaScript to hunt and peck around the dom (using element.nodeType, mainly) and I’ve come across the following problem:

I have a document that I’m traversing that has a “B” (bold) element, containing both text and an image “IMG.”

When I search the document, I’m not coming up with the text within the B as a match, and I’m wondering if it’s because the element.nodeType isn’t responding to type “3″ (which should be a text node) properly (as the text node also contains an image).

Any ideas on how I can traverse to find the text within that “B” as a matching string, excluding the img in my result?

(Note: I’m doing this as an update to searchy in order to make it more robust for both the iPhone and iPad).

books

Going broke with books

I’ve been working on some iPhone applications as a licensed iPhone developer.

Doing so has really made my brain hurt as I’m not too familiar with Obj-C or CocoaTouch.

It’s been a fun ride, and learning in the method I usually do I’ve purchased books to help me along.

Thankfully I’m a member of both Barnes and Noble and Borders, so the discounts on these books was substantial. That and I bought a couple over the holidays at a really steep discount from Amazon and SitePoint.