Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. onload = function start() { $(".row").load("/load/stream/dead_flip");
  2. console.log("teste");
  3. $("#follow").click(function(e) {
  4. e.preventDefault();
  5. data_string = "channel=" + dead_flip;
  6. $.ajax({
  7. type: "POST",
  8. url: "/follow/",
  9. data: data_string,
  10. dataType: "text",
  11. cache: false,
  12. success: function (data) {
  13. alert(data_string);
  14. //document.getElementById("follow").innerHTML = "<div class=\"follow\" id=\"unfollow\"><div class=\"btn\">Following This Channel</div></div>";
  15. }
  16. });
  17. return false;
  18. });
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement