E
|-|erc
Hi,
can a .js file read a parameter into it from the HTML file?
this is the code to use in peoples HTML files, each member has their own id.
<!-- TopCounters Code START -->
<script language="JavaScript" src="http://www.topcounters.com/pphlogger.js?id=johnsmith"> </script>
the original pphlogger.js has this in it
/* -----------------------------------------------
POWER PHLOGGER - v.2.2.5
// ----------------------------------------------------------
// SETTINGS:
// here should be your username you received from www.topcounters.com
// Do not edit this file manually!! Use the one you got in your
// confirmation-email or the one from PowerPhlogger's settings
// section.
id = "johnsmith";
So I want id to be set from the parameter not in the file.
I thought you could parse the URL bar after the ? but the .js wont go into the URL bar.
Herc
can a .js file read a parameter into it from the HTML file?
this is the code to use in peoples HTML files, each member has their own id.
<!-- TopCounters Code START -->
<script language="JavaScript" src="http://www.topcounters.com/pphlogger.js?id=johnsmith"> </script>
the original pphlogger.js has this in it
/* -----------------------------------------------
POWER PHLOGGER - v.2.2.5
// ----------------------------------------------------------
// SETTINGS:
// here should be your username you received from www.topcounters.com
// Do not edit this file manually!! Use the one you got in your
// confirmation-email or the one from PowerPhlogger's settings
// section.
id = "johnsmith";
So I want id to be set from the parameter not in the file.
I thought you could parse the URL bar after the ? but the .js wont go into the URL bar.
Herc