Computing.Net > Forums > Web Development > call js function from asp

call js function from asp

Reply to Message Icon

Original Message
Name: hc54
Date: April 14, 2004 at 06:30:02 Pacific
Subject: call js function from asp
OS: win xp
CPU/Ram: 1gig/256mb
Comment:

I have an asp page that acts as a redirect page depending on the time of day. If it is during a certain time of day it must redirect to a chat application. This is opened in a javascript function from a js page that is included in the asp. How do I call the javascript function from the asp?


Report Offensive Message For Removal

Response Number 1
Name: chris77515
Date: April 14, 2004 at 14:47:51 Pacific
Subject: call js function from asp
Reply: (edit)

Hi,

Try this model :

<%if date="12/04/04" then%>
<script language=JavaScript>SCRIPT</script>
<%else%>
<script language=JavaScript>SCRIPT</script>
<%end if%>

Not use function, use directly a script same as my example.

Chris


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: call js function from asp

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software