Friday, September 17, 2010

Executing scripts while posting Form to different URL

Technique to execute certain function or a file on a server
(i.e, posting form to some URL and want to track the hits on the search result)

function createlog(param1, param2) {
var u = "createlog.php?param1=" + param1 + "&param2=" + param2;
(new Image).src = u;
return true;
}

we can also use this approach to execute some functions i.e, to email a paypal form custom data while using paypal buttons.

No comments: