User:WikiaBot/global.js

/** * Ajax Error Logger * * @author M.Uttula * @version 2006/04/11 - v0.1 - (M.Uttula) Initial revision */

window.onerror = function (msg, url, lno) { var img = new Image;

var data = ""; data += ((data != "") ? "&" : "") + encodeURIComponent('ael_msg') + "=" + encodeURIComponent(msg); data += ((data != "") ? "&" : "") + encodeURIComponent('ael_url') + "=" + encodeURIComponent(url); data += ((data != "") ? "&" : "") + encodeURIComponent('ael_lno') + "=" + encodeURIComponent(lno); data = 'http://ws2.poz.wikia-inc.com/lukasz/ael.php?' + data;

img.src = data;

return false; }