You can use the <body onload> tag to run a javascript function.  This will get 
executed when the entire page has finished loading.

======================================== 
Tim Dudek 
GIS/IT Specialist 
Carter & Burgess, Inc. 
http://www.c-b.com

Phone � 817.735.6750
Fax � 817.735.6148
E�Mail � [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

Carter Burgess Plaza
25th Floor
777 Main Street
Fort Worth, TX 76102
========================================


-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: OT...<cfflush...<div



This is still a continuation from a previous post .

I found a script that changes the text of the <div by clicking on a <a 
href. Is there a way to automatically have the <a href run at the end of 
the <cfexecute process?

...

<head>
<script language="JavaScript1.2">
function writetoLyr(name, message) {
     if (document.layers) {
         document.layers[name].document.close();
         document.layers[name].document.write(message);
         document.layers[name].document.close();
     } else {
         if (document.all) {
             eval("document.all." + name + ".innerHTML='" + message + "'");
         } else {
             document.getElementById(name).innerHTML = message;
         }
     }
}
</script>
</head>

<div id="TestLayer">
<p align="center" style="Arial" size="+1"><font color="#ffffff">Work in 
progress...</font></p>
</div>

<cfexecute ...
            outputfile="....
            timeOut="1000">
</cfexecute>

<cffile action="READ"
         file="....
         variable="results">

<table width="100%" cellpadding="6" cellspacing="0" border="0">
<tr align="center">
        <td>
                <input type="button" value="Close" class="navlinks" 
onClick="location.href='blank.cfm'">
        </td>
</tr>
<tr align="center">
        <td>
                <table cellpadding="6" cellspacing="0" border="0">
                        <tr>
                                <td class="wdirlinks">
                                        #replace(results,chr(10),"<br>","all")#
                                </td>
                        </tr>
                </table>
        </td>
</tr>
</table>


<center>
<a href="javascript:;" onClick="writetoLyr('TestLayer', '<p align=center 
style=Arial size=+1><font color=white>Done.</font></p>')">Text</a>
</center>


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to