Now there's a tricky one. To send it server-side, you'll need to submit a form with an element the value of which has been set to selectedtablink. This is a bit inelegant. You could also use AJAX:
Code:
function getHTTPObject() {
var httpobject = null;
try {
httpobject = new XMLHttpObject();
} catch (e) {
try {
httpobject = new ActiveXObject("Msxml2.DOMDocument");
} catch (e) {
try {
httpobject = new ActiveXObject("Msxml.DOMDocument");
} catch (e) { }
}
}
if(typeof httpobject.load == "undefined") httpobject = null;
return httpobject;
}
function touchPage(page) {
var xho = getHTTPObject();
if(xho == null) return;
xho.open("GET", page, true);
xho.send(null);
}
Then, add
Code:
touchPage("mypage.php?url=" + selectedtablink);
to the bottom of the handlelink() function (but before return false;). This will call a PHP page, from which you can then grab the "url" GET parameter and use it in whatever odd rituals you may wish to.
Bookmarks