Okay, this involves integrating javascript with PHP (though you don't
have to know PHP to understand my question.)
I have a page. It has a link. When someoen clicks on the link, iw ant
to know. But- it's an OFFSITE link. Fundamentally untrackable.
This is my comprimise... when you click on that link, Javascript
executes a function in half-second before the page unloads. That
fuction loads an external image. (purely into memory with a .src=) I'm
using PHP to coun the number of times that image is loaded.
This works, for the most part. but my code looks like-
teston.src = "test.php?mode=increment";
(The query mode set after the file name is what tells php to increment
the databse, clearly.)
Now- here's the crux- there's no fundamental need for this to be an
image. (text.php actually returns blank, it doesnt' bother sendign an
image file.) Is there a way OTHER than using image.src to send a
http:// query out of Javascript? (I know there must be, but my js is
SOO rusty, last time I coded heavily was when Netscape introduced their
now-depricated layers implementation.)
Also- is there a... better way to do this? This seems like the only
possible way to tackle this, but I'm operatining the dark here. I
assume someoen else has tried this before me.
-Derik