Wednesday, November 30, 2016

Portuguese Army Commandos Convoy Ambush

but if you want get new url by ajax:
$(document).ready(function () {
    $('a').on('click', function (e) {
        var $this = $(this);
        $.ajax({
            url: 'GetUrl',
            async: false,
            success: function (url) {
                $this.attr("href", url);
                $this.attr("target", "_blank");
            },
            error: function () {
                e.preventDefault();
            }
        });
    })

})

PHP Include from Root


gets a little more complicated when dealing with a server side language like PHP. You can also do includes with PHP like this:
  1. <?php include("header.php"); ?>