[thelist] Accessing "URL" variables in JavaScript
rudy
Rudy_Limeback@maritimelife.ca
Thu Oct 12 18:16:59 2000
> I want my clients to drop this code into their websites:
> <script language='javascript'
> src='http://www.myserver.com/myscript.js?ID=%24%29H%2D%28S%40%20%2E%B2'>
> </script>
hi steven
i think i understand the problem
how about telling them to insert this instead --
<script language='javascript'>
var ID='%24%29H%2D%28S%40%20%2E%B2'>
</script>
<script language='javascript' src='http://www.myserver.com/myscript.js'>
</script>
then in myscript.js you would change the code so that it doesn't bother
looking at the url, but just assumes ID has already been defined
or is this too simple?
rudy
r937.com