Ron, I think you're going about it the wrong way, as you're writiing, but not 
rewriting the script. Why not try something like this:
 
<script language="JavaScript"> 
        function runMe(){ 
                document.getElementById('tester').firstChild.nodeValue = new Date();
                setTimeout('runMe()',2000);
   }
</script>  
 
<body onload="runMe();">
<cfoutput>
<div id="tester">
 #now()#
</div>
</cfoutput>
</body>
</html>
 
Hope this helps,
Ferg

        -----Original Message----- 
        From: Ron Mast [mailto:[EMAIL PROTECTED] 
        Sent: Wed 10/1/2003 8:36 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: CF and Javascript
        
        

        Hello, 
        Can someone tell me why I'm getting an object expected error when I run the 
following: 
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 

        <html> 
        <head> 
                <title>Testing</title>          
                
        <script language="JavaScript"> 
                function runMe(){ 
                        document.write("<cfoutput>#now()#</cfoutput>"); 
                        testingThis(); 
                } 
                function testingThis(){ 
                        setTimeout('runMe()',2000); 
                } 
        </script>       
                
        </head> 

        <body onload="testingThis();"> 

        </body> 
        </html> 

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

        It runs once and then after 2 seconds I get the error. 

        Ron Mast 
        Truth Hardware 
        Webmaster 

見-���zf���%��]�
+�:.�˛���m䞝�
[EMAIL PROTECTED]       �%��kz����_���N�.n�+����{.n�+������0u�~�(�

Reply via email to