[thelist] Can I capture part of a link?

Joshua Olson joshua at waetech.com
Wed Feb 26 08:50:00 CST 2003


----- Original Message -----
From: "Hugh Blair" <hblair at hotfootmail.com>
Sent: Wednesday, February 26, 2003 9:36 AM


> I can't figure out how to do that with just an HTML page.
> Just looking in the server log won't be acceptable, the
> code has to travel with the responses.

Hugh,

If you have JS available to you, then you could append that code to the end
of the URL for all links and form actions using client side script.

Here's some pseudocode to assist you:

function called within onload
   determine token from existing URL
   loop through all anchors on page (document.getElementsByTagName)
      append token to end of URL
   loop through all forms on page (document.forms)
      append token to end of the action attribute

The other option is to make all anchors and forms on the page call JS
functions instead of the next page directly.  That would give you a chance
to change the URL to include the token on-demand instead of up-front.

If you don't know enough JS to pull this off, give a holler.  If you can't
use JS, you may find that this problem is not solvable without some sort of
back-end scripting language.

-joshua




More information about the thelist mailing list