Thanks Mike for the clarification. Maybe I should rethink my implementation
model altogether--I'm struggling to reorganize both my thoughts and my files
as I transition from old-fashioned web applications to an ajax model.

I am an old dog trying to learn a series of new tricks. How do you all
organize the files and functions that make up your applications?  I'm sure
I'm making it harder than it needs to be.

-Paul

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Wednesday, February 28, 2007 12:38 PM
To: jQuery Discussion.
Subject: Re: [jQuery] taconite question

> When I click a navigation link there is a series of cosmetic changes made
to
> the screen.  In addition to these interface changes, which occur quite
> nicely using Taconite, I would usually use a .load() function to load
> another template into the main div, and this is what confuses me.  Should
I
> call the load function from within the Taconite XML file?  Call .load
> explicitly in the page javascript after calling the .get for Taconite?  Am
I
> making sense?  I guess I'm wondering, since Taconite intercepts AJAX
calls,
> can I call an AJAX function from within the Taconite XML file?

Paul, you can structure it whatever way makes more sense to you, or
whatever fits best with how your page is written.  While Taconite
intercepts ajax responses, it only processes Taconite responses so
don't worry about an infinite loop.  So you could use the $.get
callback, as you suggested:

$.get('myTaconiteDoc', function() {
    //  make another remote call
    $('#whatever').load('stuff.php');
});

or you could put the other remote call within the taconite document:

<eval>$('#whatever').load('stuff.php');</eval>

or, if possible, just return what you know you need in the original
document!  :-)

Mike

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to