[jQuery] Re: ajax append problem

2009-05-26 Thread Eric
When i try this i get an error "object required" in IE6 and 7. any thoughts? On Apr 27, 10:10 pm, Ricardo wrote: > I think you have to separate the selector otherwise it's just a hash: > > $(".content").load("test.html #content"); > > http://docs.jquery.com/Ajax/load > > On Apr 27, 5:14 pm, Char

[jQuery] Re: ajax append problem

2009-04-27 Thread Ricardo
I think you have to separate the selector otherwise it's just a hash: $(".content").load("test.html #content"); http://docs.jquery.com/Ajax/load On Apr 27, 5:14 pm, Charlie wrote: > $(".content").load("test.html#content"); > this will grab only the id content from test.html and load it , can r

[jQuery] Re: ajax append problem

2009-04-27 Thread Charlie
$(".content").load("test.html#content"); this will grab only the id content from test.html and load it , can refine this down to elements within #content as well example on jQuery site shows same method clicforw...@googlemail.com wrote: Hello Michael, thanks for this. I got a error: >

[jQuery] Re: ajax append problem

2009-04-27 Thread Michael Lawson
To: "jQuery (English)" Date: 04/27/2009 01:17 PM

[jQuery] Re: ajax append problem

2009-04-27 Thread clicforw...@googlemail.com
Hello Michael, thanks for this. I got a error: > html.find is not a function Any idea? $(document).ready(function(){ $.ajax({ url: "leistung.html", cache: false, success: function(html) { var loadCont = html.find('#cont'); $(".con

[jQuery] Re: ajax append problem

2009-04-27 Thread Michael Lawson
instead of $(".content").append(html); do var contentToAppend = html.find("#cont"); $(".content").append(contentToAppend); cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-828-355-5544 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold as