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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

call js function from asp

Reply to Message Icon

Name: hc54
Date: April 14, 2004 at 06:30:02 Pacific
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?



Sponsored Link
Ads by Google

Response Number 1
Name: chris77515
Date: April 14, 2004 at 14:47:51 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: call js function from asp

calling VBScript function www.computing.net/answers/webdevel/calling-vbscript-function/1184.html

Repositioning JS! www.computing.net/answers/webdevel/repositioning-js/1479.html

Remove frame from within www.computing.net/answers/webdevel/remove-frame-from-within/2725.html