//  You could empty the element before loading it:
// say loading some xhtml file in a node id 'content'

   var filename = "somefile.xhtml";  // or any URI

  $("#content").empty().load(filename);

// - or another way ....

   $.get(filename,{},
        function(data) {
          $('#content').empty().append(data);
        }
     );



On Nov 6, 8:28 am, munchiez <[EMAIL PROTECTED]> wrote:
> I'm creating a basic email system and I'm having a problem with IE7 when
> using .load to replace the content of a div when a new message is selected.
> With earlier versions of IE and all other browsers the div content is
> replaced, but for some reason, IE7 is appending the content instead.
>
> Here's the code I'm using:
>
> function loadMail(mailID) {
>   $('#mail-message').load('inc_message_ajax.asp?MailID='+mailID+'');
>
> }
>
> <.a href="default.asp?MailID=123" onclick="loadMail(123); return
> false;">message subject<./a>
>
> Any help would be really appreciated, this is driving me absolutely mad!
>
> Chris
> --
> View this message in 
> context:http://www.nabble.com/.load-appending-content-in-IE7-only-tf4757827s2...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to