Hi, guys... With all the chatter about Homesite and the reminiscing about the "good ole days" of programming, I thought I'd give you something more up-to-date to think about.
This is part of a larger CF/jQuery application that I just can't figure how to get running properly. I'm sure it's how I'm handling variables, but I've rewritten this probably 100 times to get a variation that works. Why do I get this error: "slidePosition is not defined" line: "delay = setTimeout('nextSlide(slidePosition)', 12000); } When I run this jQuery/Javascript: <script type="text/javascript"> $(document).ready(function() { var slidePosition = 0; playTrack(slidePosition); }); </script> <script type="text/javascript"> function playTrack(slidePosition) { $.sound.play('slideshow0' + (slidePosition + 1) + '.mp3', {timeout:12000}); if ( slidePosition < 6 ) { delay = setTimeout('nextSlide(slidePosition)', 12000); } }; function nextSlide(slidePosition) { slidePosition++; playTrack(slidePosition); }; </script> Thanks for any feedback! Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345209 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm