Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- "use strict";
- //Update the feed
- $("a.feedName").click(function(e) {
- e.preventDefault();
- var feedURL;
- feedURL = $(this).attr("href");
- $.ajax('model/RSSFeed.php', {
- data: {url: feedURL},
- beforeSend: function() {
- $("#feedBody").html("<div class=\"alert alert-info span7\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button><strong>Loading Feed…</strong>");
- },
- cache: false,
- success: function(result) {
- $("#feedBody").html(result);
- alert(result);
- },
- error: function(result) {
- $("#feedBody").hide();
- alert("Error!");
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement