You have to:
S
- split all text by space in an array
- test on each value if it's equal or not
- if it does, change it to <a name="anchor_name">array_value</a> (note that you 
can have more than one, incrementing value is a plus)
- replace all content with a toString() of the array
- update your window location adding # and the anchor value (first one if you 
have more than one)

Hope that helps.
Note that it will blow up any jqtouch/iui impl, which are based on anchors for 
navigation.

R.

On 15 déc. 2010, at 05:18, anmldr <[email protected]> wrote:

> I have been searching for a JavaScript that would find a string in a
> page, highlight the found string and scroll to the found string. I
> can't seem to find one that will work on the iOS.  Does anyone have
> something that works? Will you share?
> 
> TIA,
> Linda
> 
> -- 
> 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.
> 

-- 
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