You would have to use $.ajax so that you can process the returned data
yourself. Once you got the returned document you could use that
document as the context for a jQuery statement.
$.ajax({url:'myfile.html',success:function(data){
$('#loadme',data).appendTo(document.body);
}});
That is very not tested, but that's where I'd start were I attempting
what you proposed.
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.comwww.learningjquery.com
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/