0

I am trying to do something like this to make a simple log reader with a navigation on the left side and can display the txt files on the right side one by one:

$('.menuItem a').click(function(e) {
    e.preventDefault();
    var log = $(this).attr('id');
    $.get(log, function(data) {
        console.log(data)
        $('.log').text(data);
    });
});

This doesn't work at the moment from what I have discovered since I am trying to use file:// directives instead of http:// with local web services...is there any way to make this work on a local copy?

Thanks

4

0 に答える 0