{"size": 795, "ext": "js", "max_stars_repo_path": "web/js/13b8adf_suggest_1.js", "max_stars_repo_name": "christian6x/BSLWorkbench", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/js/13b8adf_suggest_1.js", "max_issues_repo_name": "christian6x/BSLWorkbench", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/js/13b8adf_suggest_1.js", "max_forks_repo_name": "christian6x/BSLWorkbench", "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": 20.9210526316, "max_line_length": 79, "alphanum_fraction": 0.534591195}
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
jQuery(document).ready(function()
{
$('#search_suggest').keyup(function(key)
{
    var value = this.value;
    var x;
    $.ajax({
        type: "POST",
        url: path_to_controller,
        data: { "value" : value},
        succes : function(result)
        {

        },
        
        error: function(XMLHttpRequest, textStatus, errorThrown)
        {
            alert('Error: ' + errorThrown + '\n' + textStatus);
        }
        
    }).done(function(result)
    {
        if(result.name)
        {
            console.log(result);
            var name = result.name;

        }
    });
});
});

