Index: trunk/extensions/ContributionReporting/cc-reporting.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | //if not exist insert into DB |
| 22 | + //via REQUEST['utm_src'] |
22 | 23 | } |
23 | 24 | |
24 | 25 | function handleSubmit(){ |
Index: trunk/extensions/ContributionReporting/cc-reporting.js |
— | — | @@ -0,0 +1,24 @@ |
| 2 | + |
| 3 | +runOnloadHook = function(){ |
| 4 | + sendReq("cc-reporting.php?load=1&utm_src=" + document.payment.utm_source.value); |
| 5 | +} |
| 6 | + |
| 7 | +submitForm = function(){ |
| 8 | + sendReq("cc-reporting.php?submit=1&utm_src="+ document.payment.utm_source.value); |
| 9 | + return validate_form(document.payment); |
| 10 | +} |
| 11 | + |
| 12 | +sendReq = function(sendRequest){ |
| 13 | + if (window.XMLHttpRequest) |
| 14 | + { |
| 15 | + xhttp=new XMLHttpRequest(); |
| 16 | + } |
| 17 | + else // Internet Explorer 5/6 |
| 18 | + { |
| 19 | + xhttp=new ActiveXObject("Microsoft.XMLHTTP"); |
| 20 | + } |
| 21 | + xhttp.open("GET",sendRequest ,false); |
| 22 | + xhttp.send(""); |
| 23 | + dummyVar=xhttp.responseXML; |
| 24 | +} |
| 25 | + |
Property changes on: trunk/extensions/ContributionReporting/cc-reporting.js |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 26 | + native |