Is there anyway for a remotely called javascript file to use the href location of the file itself? All I've been able to do is get the location of the calling html page, not where the script itself is located. I have a situation where differant clients are all calling the same script but at differant virtual domains. For example...
Client uses.. <script src="
Client uses.. <script src="
The site is where our server is and where the script is located, but I need to decipher the "src" part of the calling script in order to customize the results. Its on a coldfusion server and we've managed to use the same set of scritps for all the clients, so I don't want to now have to create a new javasript file for each client when all I need is to know what "src" they used in order to send them to the right location (the js file is a "return to site" button) Any way of achieving this?
Client uses.. <script src="
Client uses.. <script src="
The site is where our server is and where the script is located, but I need to decipher the "src" part of the calling script in order to customize the results. Its on a coldfusion server and we've managed to use the same set of scritps for all the clients, so I don't want to now have to create a new javasript file for each client when all I need is to know what "src" they used in order to send them to the right location (the js file is a "return to site" button) Any way of achieving this?