{"size": 888, "ext": "js", "max_stars_repo_path": "src/app/webmin/media/js/custom_embed.js", "max_stars_repo_name": "ivanmurashko/kalinka", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app/webmin/media/js/custom_embed.js", "max_issues_repo_name": "ivanmurashko/kalinka", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/app/webmin/media/js/custom_embed.js", "max_forks_repo_name": "ivanmurashko/kalinka", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.6206896552, "max_line_length": 90, "alphanum_fraction": 0.4515765766}

    AJAX_FORM_URL = 'test.html';
    //var st = new Element('a', { 'id': 'starter', 'text': 'go!' });
    //var el = new Element('div', { 'id': 'klk' });
    document.write("<a href='#' id='starter'>go</a><br/><div id='klk'></div>");
    //document.adopt(st);
    //document.adopt(el);
    //alert(AJAX_FORM_URL);
    var target = $('klk');
    
    
//    window.addEvent('domready', function() {
//    });
    
    var req = new Request.HTML( { url: AJAX_FORM_URL, update: target,
            onSuccess: function() {
                alert('ok');
            },
            onFailure: function(xhr) {
                alert('fail');
                target.empty();
                var el = new Element('h2', { 'text': 'Request failed!' }).inject(target);
            }
        });
    $('starter').addEvent('click', function() { req.send() });
    
    
    
