Hm.  The bottom paragraph of that didn't get formatted the way I had
hoped.  Hopefully my meaning is clear from the first three paragraphs.

On Apr 2, 9:08 am, SterlingK <[EMAIL PROTECTED]> wrote:
> Hi, Karl.
>
> No worries.  I'm just impressed that someone as busy as you gets back
> to us on these issues at all.  Thank you!
>
> Hm.  Perhaps I wasn't clear on what I was trying to accomplish.
> Probably either filter or find would be fine.  What I'm looking for is
> how to target the specific div on the ajax html page that matches the
> class on the cluetips link.  To be clear, I'd like to just have one
> page of ajax info, rather than a different page for each cluetip
> link.  Then cluetip would just find the info that matches the link's
> class.
>
> This (copied from the code in my first post) works just fine: data=$
> (data).filter('.tip_1');
> But I would have to do that for each cluetip link on the page (and
> there are several).  What I need is this: data=$(data).filter('<some
> variable that finds the matching div on the ajax page before
> populating the cluetip>');
>
> So
> my_cluetip_page.html
> ajax_info_page.html
> -------------------------------
> ----------------------------
> <a class="tips_1" rel="ajax.htm">Here's my cluetip link 1</a>      -->        
> <div class="tips_1">Here's the cluetip info</div>
>
> <a class="tips_1" rel="ajax.htm">Here's my cluetip link 2</a>      --
>
> >        <div class="tips_2">Here's more cluetip info</div>
>
> Does that make sense?
>
> On Apr 1, 4:51 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Sterling,
>
> > Sorry for taking so long to get back to you on this.
>
> > It's tough for me to know which selector expression you should use  
> > without seeing the data that you're retrieving with the ajax call. I  
> > doubt that it's filter, though, unless it's a top-level element. You  
> > might want to try .find() instead.
>
> > --Karl
> > _________________
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > On Mar 28, 2008, at 12:51 PM, SterlingK wrote:
>
> > > First off, the hard work on cluetips. I'm a big fan and for a nub like
> > > me, it's been remarkably easy to integrate and customize for my sites.
>
> > > What I've been trying to do is have one html page that includes all
> > > the ajax content in various divs (essentially like xml), like such:
> > > <div class="tip_1">content here</div>
> > > <div class="tip_2">more content here</div>
>
> > > The tips would be able to filter according to matched class names. For
> > > instance, the following would display the above information, filtered
> > > by class name:
> > > <a class="tips_1" rel="ajax.htm">Here's my cluetip link 1</a>
> > > <a class="tips_2" rel="ajax.htm">Here's my cluetip link 2</a>
>
> > > I can do it manually, like this:
> > >     ajaxProcess : function (data) {
> > >                     data=$(data).filter('.tip_1');
> > >                                     return data;
> > >                                    }
>
> > > But I'm having a hard time getting it to work dynamically.  Using
> > > something like 'data=$(data).filter(this.class) doesn't work.  Again,
> > > I'm pretty new at this and it seems like this should be fairly simple
> > > to do with jquery, but I'm stuck after several hours of trying.
>
> > > I saw the great demo that applies a similar concept at
> > >http://test.learningjquery.com/clue/demo/danm.html, but have been
> > > unable to combine what I need with that local example.
>
> > > Many thanks in advance.
>
> > > - Sterling- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to