[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 ricardob...@gmail.com 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 

[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 assayer

[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? script type='text/javascript' src='http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js'/script script type=text/javascript $(document).ready(function(){ $.ajax({ url:

[jQuery] Re: ajax append problem

2009-04-27 Thread Michael Lawson
To: jQuery (English) jquery-en@googlegroups.com Date: 04/27/2009 01:17 PM Subject:[jQuery] Re: ajax

[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 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 charlie...@gmail.com wrote: $(.content).load(test.html#content); this will grab only the id content from test.html and load