User:Bkkbrad/2pedia.js

Ajax.Responders.register({ onException: function(o,e) { alert(e); } });

/^http:\/\/([a-z]+)/.test('');

wiki_handler[RegExp.$1] = { call: function(title, callback) { var query_url = '/w/index.php?action=render&title=' + title; alert("GO: " + title); new Ajax.Request(query_url,     {          method:'get',         onSuccess: function(transport){            var response = transport.responseText || "no response text";            alert("ran!");            callback(response);         },         onFailure: function{ alert('Something went wrong...') }      }); } };