PHP Classes

File: podcast.js.php

Recommend this page to a friend!
  Classes of Karl Holz   Proxy Cast   podcast.js.php   Download  
File: podcast.js.php
Role: Example script
Content type: text/plain
Description: load podcast via jQuery ajax
Class: Proxy Cast
Generate JSON from podcast feeds to serve players
Author: By
Last change: Update of podcast.js.php
Date: 1 year ago
Size: 707 bytes
 

Contents

Class file image Download
<?php
$key
='';
if (
array_key_exists('PATH_INFO', $_SERVER)) {
 
$key=$_SERVER['PATH_INFO'];
}
?>jQuery(function ($) {
    $.ajax({
        url: './SalamCast.php<?php echo $key; ?>',
        type: 'GET',
        dataType: 'json',
        success: function(result) {
            $.each(result, function(i, r) {
                $('head').append('<link title="'+result[i].title+'" href="'+result[i].href+'" type="application/rss+xml" rel="alternate" />');
            });
            $('#CastPlayer').SalamCast({
                swf: "./js/",
                jPlayerSolution: "flash, html",
                debug: false
            });
// $('#tabs').tabs({ collapsible: true });
        },
    });
});