Thanks for the replies. I finally did get it to work! Tweaked a little
bit of the jQuery and now it works. What was hapening was that on
clicking the link, the $(this) selector found the right item for the
first target div. The second target div would not get the right item
because it would search the document for the first css selector match
and stop there. So no matter how many times the first target div using
the $(this) selector would change, the second would always stop at the
first match in the document. The way around this that worked for me
was by using the $(this) selector for the second target, BUT only as
the starting point, chaining it with other selectors to transverse the
document to match the right selector, like so: $
(this).parents("tr").find("a.links"). And now it works!

On Oct 7, 4:52 pm, voltron <[EMAIL PROTECTED]> wrote:
> You can use this. Jquery taconite plugin (http://www.malsup.com/jquery/
> taconite/)
>
> On 7 Okt., 22:41, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > Can't you call the ajax function twice?
>
> > Massimo
>
> > On Oct 7, 3:12 pm, morningovermidnight <[EMAIL PROTECTED]>
> > wrote:
>
> > > Ok, here goes. I've been working on this one for a while.
>
> > > I want the user to be able to click on ONE link on the page and for
> > > the content from two external html files to load into TWO divs on the
> > > the page.
>
> > > I see that we can use the javascript function ”ajax” in ”web2py
> > > ajax.html. But it take three arguments, allowing for only one target.
> > > I have two targets (as well as two sources).
>
> > > I've also been trying to write out a solution with jQuery. I can get
> > > close, very close. I actually get content from two sources, to two
> > > separate targets by clicking only one link. The problem then becomes
> > > that I am clicking links for rows in a table created using a "for"
> > > that iterates through items. The ajax only loads the content relating
> > > to the link of the first record, even when I click the hyperlink in
> > > the row of the other records. ANY SUGGESTIONS ANYONE?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to