[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread ak732
The syntax looks okay. Are you using Firebug to verify that #favorites (which appears to be a mysterious li somewhere) is actually being loaded as you expect? Does it actually contain the li tags you show above? Also, you might want to eliminate #favorites altogether by taking a page from

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread ak732
Actually, this would be better I think: $(.menu1).append($(div/).load(favoritesHTML).html()); The idea being to consruct a temp placeholder for your loaded html that goes away after. On Aug 19, 4:18 pm, ak732 ask...@gmail.com wrote: The syntax looks okay. Are you using Firebug to verify

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Rick Faircloth
? Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Dhruva Sagar Sent: Wednesday, August 19, 2009 1:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? It depends on what $('#favorites').html() contains, have you

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Rick Faircloth
...@googlegroups.com] On Behalf Of ak732 Sent: Wednesday, August 19, 2009 4:22 PM To: jQuery (English) Subject: [jQuery] Re: Is this sytax legitimate? Actually, this would be better I think: $(.menu1).append($(div/).load(favoritesHTML).html()); The idea being to consruct a temp placeholder for your loaded

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Josh Nathanson
@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, August 19, 2009 3:02 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? Hmmm...tried that and couldn't get it to work...something strange is going on. Tried this sequence, too

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread mkmanning
Of Dhruva Sagar Sent: Wednesday, August 19, 2009 1:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? It depends on what $('#favorites').html() contains, have you checked that? Are you sure the id is correct? The syntax by itself is absolutely correct, but what

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Dhruva Sagar
1 thing you need to make sure is that you must call this script of line (mentioned below in your mail), only after the '#favorites' has been updated, if the contents of the '#favorites' is changing dynamically then you will get weird results.

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Rick Faircloth
').append(newHTML); }); Thanks for your help! Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Dhruva Sagar Sent: Wednesday, August 19, 2009 9:14 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? 1 thing you

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Rick Faircloth
Sent: Wednesday, August 19, 2009 1:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? It depends on what $('#favorites').html() contains, have you checked that? Are you sure the id is correct? The syntax by itself is absolutely correct, but what you should see

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Rick Faircloth
@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Josh Nathanson Sent: Wednesday, August 19, 2009 7:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is this sytax legitimate? Rick - the load method is asynchronous, so you have to get the html from #favoritesHold in a callback from

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Dhruva Sagar
Glad it helped :), the sequence problem is something that has caught me off guard quite a few times :).Hope you've worked it all out. Thanks Regards, Dhruva Sagar. Jonathan Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html - May you live every day of your life. On Thu, Aug