<!DOCTYPE html>
<html lang="tr">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <h1>Namaz Vakitleri</h1>

<button type="button" onclick="get_vakit(); return false;">Getir</button>
<div id="ajax-sonuc"></div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
      <script>
function get_vakit(){
    $.ajax({
        type: "POST",
        contentType: "text/json; charset=utf-8",
        url: "http://www.diyanet.gov.tr/tr/PrayerTime/PrayerTimesList",
        cache: false,
        data:"Country=2&State=506&City=9206&period=Aylik&as_sfid=AAAAAAXpGEmB003obSMYCA4ZFmPjwqVGnunku58g+Fg7nH/BKpNaDRKE4tNFIS0JMbDsmYO/dDQ5YUxljAhGU5+loqNGhajfsY4Smly1RUOTEX76pg==&as_fid=YcFmHLt7IXkAcr6HMbA9",
        dataType: 'json',
        success: function(view) {$("#ajax-sonuc").html(view).fadeIn("fast");},
        error: function(xhr, ajaxOptions, thrownError) {$("#ajax-sonuc").html(xhr.responseText).fadeIn("fast");}
    });
}
</script>
  </body>
</html>