[jQuery] Re: load vs ajax

2009-10-22 Thread Hogsmill
Cheers, Richard - very useful. I usually use $.ajax because I return JSON, and, as you say, then I start 'munging' :-) I like the load call (for straight content insert applications) because it's way simpler and easier to read - I was just wondering if there were any performance differences,

[jQuery] Re: load vs ajax

2009-10-22 Thread MorningZ
I was just wondering if there were any performance differences .load, like *any* Ajax call in jQuery, ultimately uses the $.ajax method, so other than a hit of one method calling another (which is like nothing), there is no performance hit On Oct 22, 4:55 am, Hogsmill i...@hogsmill.com wrote:

[jQuery] Re: load vs ajax

2009-10-21 Thread Richard D. Worth
.load() is really nice if all you're doing is loading some content into an element. It's a nice convenience method. If you're going to take the results of the ajax call and maybe put different parts of the content in different places, or do some manipulation or other munging on it before you add