Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "POST",
- url: "/home/generate",
- //async: false,
- data: {"url": url},
- success: function (response) {
- var last = $("#last_sitemap");
- var name = response.name;
- var link = "/sitemaps/" + response.link;
- var path = window.location.pathname;
- var file = (path + link).replace("//", "/");
- last.html('<a href="' + file + '" onclick="rem()">' + name + '</a>');
- isStarted.val(false);
- $('#url').val('');
- },
- error: function () {
- isStarted.val(false);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement