This is because, $.get() is asynchronous and your call to scrollmarquee is done before $.get() finishes in the background.
One solution would be to place setInterval(scrollmarquee, 20); method within the callback of $.get() like this... $.get(url, function() { // your other stuff of inserting the "p" element setInterval(scrollmarquee, 20); } This should solve your problem -GTG On 7/26/07, GianCarlo Mingati <[EMAIL PROTECTED]> wrote:
Hi list. If yoy have FF with Firebug, and go to this page http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/beta/continuous.html you "MAY" have an error that pops up that says that $strip has no properties $strip in this script should be (should be because i'm 'learning' jquery) the paragraph that continuosly scroll $strip = $("#mask p#strip"); Now have you an idea of why if I simply reload that page that error popsup but the script runs ok? Why if teste locally $strip makes a continuous loop of errors while 'online' not? How could it be that $strip.css has no properties but the P scrolls anyway? It's making me mad. Thanks GC