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
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
?
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
...@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
@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
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
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.
').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
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
@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
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
11 matches
Mail list logo