function callerIt(div){
    $.ajax({
        type: "POST",
        url: "/forms",
        data:  $('#'+div).find("#new_form").serialize(),
        success: function(returnValue) {
            $('#'+div).html(returnValue);
        },
        error: function(returnValue) {
            alert("Something's wrong");
        }
    });

}

$(document).ready(function() {
    $('#caller').load("/forms/caller");
    $('#caller').submit(function(){
        callerIt("caller");
        return false;
    });
});

