I would do it like this:
$.get('file.php',function(reponse) {
$('someElement').html($('#loadme',response).html() || '')'
});
Easy peasy. ;)
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/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/