Are you trying to skip layout elements on a page? jQuery automatically sends a header indicating that it's an XHR, so you can use your server-side programming to skip layout elements on XHR. In Rails, it's as easy as doing a render with :layout => false if request.xhr?
-- Yehuda On 11/17/06, Karl Swedberg <[EMAIL PROTECTED]> wrote:
Hi everyone! Someone asked me the other day if the jTip plugin, which uses .load() for "AHAH," could load only a fragment of a page, for example only what's inside <div id="loadme"></div>. Sadly, but not surprisingly, I didn't know the answer. I mean, I know that jTip can't do it as is. But the larger question is a mystery to me: Can a part of an HTML page be loaded by using .load() or $.ajax() or any other method? If so, how would one go about doing this? If not, can it be done with an xml file instead? Karl ___________________ Karl Swedberg www.englishrules.com www.learningjquery.com _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
-- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
