Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. var linkwjpg = $("#blurpost").attr("src").split("/").pop().split(".", 1);
  2. $("h1").text(linkwjpg);
  3. var myInterval = setInterval(function () {
  4. $.ajax({
  5. url: 'time.php',
  6. type: 'post',
  7. data: {'user':'<?php echo $_SESSION["login"] ?>','topost':'momo_1'},
  8. success: function() {
  9.  
  10. }
  11. });
  12. }, 1000);
  13.  
  14. var linkwjpg = $("#blurpost").attr("src").split("/").pop().split(".", 1);
  15. $("h1").text(linkwjpg);
  16. var myInterval = setInterval(function () {
  17. $.ajax({
  18. url: 'time.php',
  19. type: 'post',
  20. data: {'user':'<?php echo $_SESSION["login"] ?>','topost':linkwjpg},
  21. success: function() {
  22.  
  23. }
  24. });
  25. }, 1000);
  26.  
  27. topost%5B%5D=momo_1 // topost[]=momo_1 (https://jsfiddle.net/5k6jtew2/)
  28.  
  29. var linkwjpg = $("#blurpost").attr("src").split("/").pop().split(".", 1)[0];
  30.  
  31. data: {'user':'<?php echo $_SESSION["login"] ?>','topost':linkwjpg[0]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement