Recent Changes - Search:

go to the forum

Contents

Site

Help

« jun 2022 · oct 2022 »

    add a calendar item

    JavaScript / Radio Schedule

    JavaScript.RadioSchedule History

    Hide minor edits - Show changes to output

    2020-08-18 15:29 [UTC-7] by Blue Hell -
    Changed line 4 from:
      var radio_source  = 'http://electro-music.com/wiki/pub/radio_schedule.php';
    to:
      var radio_source  = 'https://electro-music.com/wiki/pub/radio_schedule.php';
    2013-03-06 16:02 [UTC-7] by Blue Hell -
    Changed line 1 from:
    {script: jquery-1.9.1.js}
    to:
    {script: jquery-1.9.1.min.js}
    2013-03-06 15:32 [UTC-7] by Blue Hell -
    Changed line 1 from:
    {script: jquery-1.9.1.min.js}
    to:
    {script: jquery-1.9.1.js}
    2013-03-06 15:31 [UTC-7] by Blue Hell -
    2013-03-06 15:22 [UTC-7] by Blue Hell -
    Changed lines 12-13 from:
       var radio_refreshId = setInterval( function()
    to:
       var radio_refreshId = setInterval( 
       
    function()
    2013-03-03 11:06 [UTC-7] by Blue Hell -
    Changed line 1 from:
    {script jquery-1.9.1.min.js}
    to:
    {script: jquery-1.9.1.min.js}
    2013-03-03 11:05 [UTC-7] by Blue Hell -
    Added line 1:
    {script jquery-1.9.1.min.js}
    Deleted line 2:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.min.js'></script>
    2013-03-03 10:28 [UTC-7] by Blue Hell -
    Changed line 16 from:
         interval
    to:
         radio_interval
    2013-03-03 10:13 [UTC-7] by Blue Hell -
    2013-03-03 10:04 [UTC-7] by Blue Hell -
    Changed line 10 from:
       $( target).load( radio_source);
    to:
       $( radio_target).load( radio_source);
    2013-03-03 10:04 [UTC-7] by Blue Hell -
    Deleted line 2:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/common.js'></script>
    Changed lines 4-22 from:
      var source  = 'http://electro-music.com/wiki/pub/radio_schedule.php';
      var target  = '#radio_schedule';
      var interval = 3600 * 1000 / 4;              // 4 times an hour

      addLoadEvent(
        function(
    )
        {
         $( target).load( source);

     
         var refreshId = setInterval(
            function()
            {
              $( target).load( source + '?randval=' + Math.random());
     
         },
            interval
          );
          $.ajaxSetup({ cache: false });
        }
     
    );
    to:
      var radio_source  = 'http://electro-music.com/wiki/pub/radio_schedule.php';
      var radio_target  = '#radio_schedule';
      var radio_interval = 3600 * 1000 / 4;              // 4 times an hour

      $(document).ready(function()
      {
        $( target).load( radio_source);

       var radio_refreshId = setInterval( function()
          {
           $( radio_target).load( radio_source + '?randval=' + Math.random());
          },
          interval
     
      );
        $
    .ajaxSetup({ cache: false });
      });
    2013-03-03 10:00 [UTC-7] by Blue Hell -
    Added line 3:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/common.js'></script>
    Changed lines 9-20 from:
      $(document).ready(function()
      {
        $( target).load( source);

       var refreshId = setInterval( function()
          {
           $( target).load( source + '?randval=' + Math.random());
          },
          interval
        );
     
      $.ajaxSetup({ cache: false });
      });
    to:
      addLoadEvent(
        function(
    )
        {
         $( target).load( source);

     
         var refreshId = setInterval(
            function()
            {
             $( target).load( source + '?randval=' + Math.random());
     
         },
            interval
          );
          $.ajaxSetup({ cache: false });
        }
     
    );
    2013-03-02 15:12 [UTC-7] by Blue Hell -
    Changed line 22 from:
    <div id="radio_schedule" style="font-size"></div>
    to:
    <div id="radio_schedule" align="center"></div>
    2013-03-02 14:14 [UTC-7] by Blue Hell -
    Changed line 22 from:
    <div id="radio_schedule"></div>
    to:
    <div id="radio_schedule" style="font-size"></div>
    2013-03-02 14:07 [UTC-7] by Blue Hell -
    Deleted lines 0-1:
    >>font-size: smaller<<
    Deleted line 1:
    Deleted line 2:
    Deleted line 3:
    Deleted lines 19-20:

    Changed lines 23-24 from:
    (:htmlend:)
    >><<
    to:
    (:htmlend:)
    2013-03-02 14:06 [UTC-7] by Blue Hell -
    Added lines 1-2:
    >>font-size: smaller<<
    Deleted line 28:
    >>font-size: smaller<<
    Added line 30:
    (:htmlend:)
    Deleted line 31:
    (:htmlend:)
    2013-03-02 14:05 [UTC-7] by Blue Hell -
    Added line 27:
    >>font-size: smaller<<
    Changed line 29 from:
    to:
    >><<
    2013-03-02 13:09 [UTC-7] by Blue Hell -
    Changed line 3 from:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.js'></script>
    to:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.min.js'></script>
    2013-03-02 13:02 [UTC-7] by Blue Hell -
    Changed line 27 from:
    <div id="radio_schedule"></div>--]
    to:
    <div id="radio_schedule"></div>
    2013-03-02 13:02 [UTC-7] by Blue Hell -
    Changed line 27 from:
    [--<div id="radio_schedule"></div>--]
    to:
    <div id="radio_schedule"></div>--]
    2013-03-02 13:02 [UTC-7] by Blue Hell -
    Changed line 27 from:
    <div id="radio_schedule"></div>
    to:
    [--<div id="radio_schedule"></div>--]
    2013-03-02 13:00 [UTC-7] by Blue Hell -
    Deleted line 2:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/common.js'></script>
    Changed line 8 from:
      var target  = '#schedule_results';
    to:
      var target  = '#radio_schedule';
    Changed lines 27-28 from:
    <div id="schedule_results">
    </div>
    to:
    <div id="radio_schedule"></div>
    2013-03-02 12:51 [UTC-7] by Blue Hell -
    Changed line 8 from:
      var source  = 'http://electro-music.com/wiki/cookbook/radio_schedule.php';
    to:
      var source  = 'http://electro-music.com/wiki/pub/radio_schedule.php';
    2013-03-02 12:49 [UTC-7] by Blue Hell -
    Changed line 8 from:
      var source  = 'http://electro-music.com/~janpunter/view_schedule.php';
    to:
      var source  = 'http://electro-music.com/wiki/cookbook/radio_schedule.php';
    2013-03-02 12:40 [UTC-7] by Blue Hell -
    Changed lines 8-10 from:
      var source = 'http://electro-music.com/~janpunter/schedule_data.php';
      var target = '#schedule_results';
    to:
      var source   = 'http://electro-music.com/~janpunter/view_schedule.php';
      var target   = '#schedule_results';
      var interval = 3600 * 1000 / 4;              // 4 times an hour
    Changed line 20 from:
         9000
    to:
         interval
    2013-03-02 12:37 [UTC-7] by Blue Hell -
    Changed lines 8-18 from:
    function loadSchedule()
    {
      $(
    '#schedule_results').
      fadeOut( 'slow').
      load  ( 'http://electro-music.com/~janpunter/schedule_data.php').
      fadeIn ( 'slow');

      setInterval( loadSchedule, 5000);
    }

    loadSchedule
    ();
    to:
      var source = 'http://electro-music.com/~janpunter/schedule_data.php';
      var target = '#schedule_results';

      $(document).ready(function()
      {
        $( target).load( source);

       var refreshId = setInterval( function() 
          {
            $( target).load( source + '?randval=' + Math.random())
    ;
          },
          9000
        );
        $.ajaxSetup({ cache: false });
      });

    2013-03-02 12:31 [UTC-7] by Blue Hell -
    2013-03-02 12:30 [UTC-7] by Blue Hell -
    Added line 18:
    loadSchedule();
    2013-03-02 12:28 [UTC-7] by Blue Hell -
    Changed lines 8-32 from:
    var auto_refresh =
      setInterval
     
    (
       function()
        {
          $(
    '#schedule_results').
          fadeOut( 'slow').
         load( 'http://electro-music.com/~janpunter/schedule_data.php').
          fadeIn("slow")
    ;
       },
        5000
      );



    // $.ajax(
    //  {
    //    url : "http://electro-music.com/~janpunter/schedule_data.php",
    //    success :
    //      function( result)
    //      {
    //        alert( result);
    //      }
    //  }
    // );
    to:
    function loadSchedule()
    {
      $( '#schedule_results').
      fadeOut
    ( 'slow').
      load  ( 'http://electro-music.com/~janpunter/schedule_data.php').
      fadeIn ( 'slow');

      setInterval( loadSchedule, 5000);
    }
    2013-03-02 12:24 [UTC-7] by Blue Hell -
    Deleted line 7:
    <script>
    2013-03-02 12:23 [UTC-7] by Blue Hell -
    Changed lines 9-14 from:
    var auto_refresh = setInterval(
    function()
    {
    $('#schedule_results').fadeOut('slow').load('http://electro-music.com/~janpunter/schedule_data.php').fadeIn("slow");
    }, 5000);
    </script>
    to:
    var auto_refresh =
     
    setInterval
      (
       function()
       {
         $( '#schedule_results').
         
    fadeOut( 'slow').
         
    load( 'http://electro-music.com/~janpunter/schedule_data.php').
         
    fadeIn("slow");
        },
       
    5000
      );
    2013-03-02 12:21 [UTC-7] by Blue Hell -
    Changed lines 8-18 from:
    $.ajax(
      {
        url : "http://electro-music.com/~janpunter/schedule_data.php",
        success
    :
          function( result
    ) 
          {
            alert( result)
    ;
          }
      }
    );

    to:
    <script>
    var auto_refresh = setInterval(
    function()
    {
    $('#
    schedule_results').fadeOut('slow').load('http://electro-music.com/~janpunter/schedule_data.php').fadeIn("slow");
    }, 5000
    );
    Added lines 15-32:



    // $.ajax(
    //  {
    //    url : "http://electro-music.com/~janpunter/schedule_data.php",
    //    success :
    //      function( result)
    //      {
    //        alert( result);
    //      }
    //  }
    // );

    </script>

    <div id="schedule_results">
    </div>
    2013-03-02 12:17 [UTC-7] by Blue Hell -
    Changed line 10 from:
       url : "http://www.electro-music.com/~janpunter/schedule_data.php",
    to:
       url : "http://electro-music.com/~janpunter/schedule_data.php",
    2013-03-02 12:15 [UTC-7] by Blue Hell -
    Changed line 4 from:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.min.js'></script>
    to:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.js'></script>
    2013-03-02 12:13 [UTC-7] by Blue Hell -
    Added lines 18-19:

    </script>
    2013-03-02 12:12 [UTC-7] by Blue Hell -
    Added line 3:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/common.js'></script>
    2013-03-02 11:59 [UTC-7] by Blue Hell -
    Changed lines 3-5 from:


    $
    .ajax({
    to:
    <script type='text/javascript' src='http://electro-music.com/wiki/pub/jquery-1.9.1.min.js'></script>

    <script type="text/javascript">

    $.
    ajax(
     
    {
    Changed lines 10-13 from:
       success : function(result){
            alert(result);
        }
    }
    );
    to:
       success :
          function( result)
         {
            alert( result);
          }
      }

    );
    2013-03-02 11:58 [UTC-7] by Blue Hell -
    Changed line 6 from:
       url : "/mysite/file.html",
    to:
       url : "http://www.electro-music.com/~janpunter/schedule_data.php",
    2013-03-02 11:57 [UTC-7] by Blue Hell -
    Added lines 1-12:
    (:html:)



    $.ajax({
        url : "/mysite/file.html",
        success : function(result){
            alert(result);
        }
    });

    (:htmlend:)

    Edit - History - Print - Recent Changes - Search Page last modified on 2020-08-18 15:29 [UTC-7] - 1386 views