Код: Выделить всё
<script type="text/javascript" charset="utf8" > $(document).ready(function() { VK.init(function() { var viewer_id = 0; var auth_key = 0; var image =''; viewer_id = '<?php echo $_SESSION['viewer_id'];?>'; auth_key = '<?php echo $_SESSION['auth_key'];?>'; VK.api("getProfiles", {uids:viewer_id,fields:"photo_big"}, function(data) { image = data.response[0].photo_big; $.post('http://***.ru/valentin/main.php', { "image": image}, function(data){ }); }); }); });</script>Код: Выделить всё
<script type="text/javascript" charset="utf8" > $(document).ready(function() { VK.init(function() { var viewer_id = 0; var auth_key = 0; var image =''; viewer_id = '<?php echo $_SESSION['viewer_id'];?>'; auth_key = '<?php echo $_SESSION['auth_key'];?>'; VK.api("getProfiles", {uids:viewer_id,fields:"photo_big"}, function(data) { image = data.response[0].photo_big; $.post('http://***.ru/valentin/main.php', { "image": image}, function(data){ }); }); }); window.location.href = "content.php" });</script>Как сделать редирект после выполнения скрипта?
Пробовал через php, в конец добавлял :
Код: Выделить всё
<?phpheader("Location: content.php");?>