[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-24 Thread sspboyd
agreed, this is not the best way to handle this issue. I'm considering it as a temporary work-around to a technical issue with the underlying cms. On Feb 24, 9:49 am, the_woodsman <[EMAIL PROTECTED]> wrote: > Seriously, if you want this to scale when you have more names in the > future, it'd be b

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-24 Thread sspboyd
too, > like B-Trees (http://en.wikipedia.org/wiki/B-tree) and what have you. > > , then only for those which show up do you run th > > On Feb 24, 4:21 pm, sspboyd <[EMAIL PROTECTED]> wrote: > > > Dave, That is great! Thanks. > > I've tested it out with an ar

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-24 Thread sspboyd
Dave, That is great! Thanks. I've tested it out with an array of 1000 names as a worst case scenario and it is pretty slow. I'll have to see about refining the list of names if possible to keep it as small as possible. Thanks again, Stephen On Feb 23, 7:16 pm, Dave Stewart <[EMAIL PROTECTED]> wr

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-23 Thread sspboyd
Timothy, Yes, I know the list of names. On Feb 23, 3:41 pm, timothytoe <[EMAIL PROTECTED]> wrote: > Do you know the list of names? Or are you trying to identify what > might be a name on the page (say two words in a row with initial > caps)? > > On Feb 23, 12:35 pm, sspb

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-23 Thread sspboyd
Hi Dave, I want to find specific names (I have a list of 320 names in an xml file). I want to scan through a page and create a link around the first instance for one of the names in the list. eg "Stephen Boyd's favourite person in the work is Fred Von Brown. Stephen Boyd calls Fred Von Brown ever

[jQuery] trying to find the first instance of a person's name on the page

2008-02-23 Thread sspboyd
Hello, I am trying to find the first instance of a persons name on a page and add a link to their bio. I have seen a lot of example of selecting elements by their tag/class/ id or finding an element that contains certain text but I am at a loss for finding and wrapping just some text. Is this a R

[jQuery] Re: animate background-position??

2007-04-19 Thread sspboyd
Ok. Thanks for the help, I'll check that out. Steve On Apr 19, 11:19 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Ah, I hadn't realized these were IE-only properties. > > I suggest taking a look at Stefan's ifx.js > script in the Interface plugin. He wrote some custom functionality for the >

[jQuery] Re: animate background-position??

2007-04-19 Thread sspboyd
ate the X and Y separately. > > $('#header').animate({backgroundPositionX : bkgPosX , backgroundPositionY: > bkgPosY },'slow'); > > JK > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of sspboyd

[jQuery] animate background-position??

2007-04-19 Thread sspboyd
Hi, I've been trying several ways to animate the position of a background image and I'm stuck. This is the code I'm using: $("#header").click(function(){ var bkgPosX=Math.round(Math.random()*(-500)); var bkgPosY=Math.round(Math.random()*(-200)); $("#header").animate({sty

[jQuery] slide window to a set height??

2007-04-09 Thread sspboyd
Hi, I have looked at the docs and examples but I'm not sure if this is possible. Can I slide a window to a specified height? For example, say I have a div that is 100px high. Can I animate it to slide up so that it is only 30px high?? Thanks, Steve