Login   Register  
PHP Classes
elePHPant
Icontem

File: podcast.js.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: fix ui

fixed ui css, now links will work on iPhone and i can load the other
playlists. updated javascript class css selecters
Date: 2 years 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 });
        },
    });
});