Dynamic Include Files

I want to include javascript files based on the user location which I store
in a session variable upon user login.

The original code was like this

<SCRIPT language=JavaScript src="test_files/calcholidays.js"></SCRIPT>

We have multipe Javascript Script files and want to use the correct one
based on the Location Variable.

The variable is sLocation = Session("Location")

We would like the include file to look something like this

<SCRIPT language=JavaScript src="test_files/" & <%= sLocation %> &
".js"></SCRIPT>

Not sure how to write this.

View Replies




Copyrights 2005-15 www.BigResource.com, All rights reserved