Thanks, Dhruva…that turned out to be the problem.

Things were happening out of sequence.

 

With a callback, everything is now in order.

 

     var favoritesHTML = '../components/userFavoritesHTML.cfm?' + new 
Date().getTime();                                                               
                                          

     $('#favoritesHold').load(favoritesHTML, function() {

                                                                                
                                     

          var newHTML = $('#favoritesHold').html();

          $('.menu1').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 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.


  _____  


Thanks & Regards,
Dhruva Sagar <http://www.dhruvasagar.net/blog/> . 



On Wed, 2009-08-19 at 13:41 -0400, Rick Faircloth wrote: 

$('.menu1').append($('#favorites').html());

 

I get no errors in firebug when it’s run, but not code appended to .menu1, 
either…

 

 

----------------------------------------------------------------------------------------------------------------------

"Ninety percent of the politicians give the other ten percent a bad 
reputation."  - Henry Kissinger

 



<<image001.png>>

Reply via email to