JSFiddle

  • Downloading redirect links #2 is the latest revision

    When downloading an MP3 from a URL that 302 redirects, Firefox Developer Edition 40.0a2 (and many previous versions) downloads the 0 byte redirect response, without requesting the URL which the 302 response indicates.

    <p>From https://changelog.com/155/</p>
    <ul>
        <li><a href="http://fdlyr.co/d/changelog/cdn.5by5.tv/audio/broadcasts/changelog/2015/changelog-155.mp3">with 302 redirect</a></li>
        <li><a href="http://cdn.5by5.tv/audio/broadcasts/changelog/2015/changelog-155.mp3">Direct link</a></li>
    </ul>
  • Knockout Talk, Complete Demo #6 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript, jQuery UI 1.8.18

    /*globals ko */
    var data = {
            formId: 1,
            title: 'Contact Form',
            questions: [{
                title: 'Name',
                type: 'text'},
            {
                title: 'Reason',
                type: 'dropdown',
                answers: ['Sales ...
  • Knockout Talk, Example 4

    jQuery (edge), HTML, CSS, JavaScript

    /*globals ko */
    var data = {
            formId: 1,
            title: 'Contact Form',
            questions: [{
                title: 'Name',
                type: 'text'},
            {
                title: 'Reason',
                type: 'dropdown',
                answers: ['Sales ...
  • Knockout Talk, Example 3

    jQuery (edge), HTML, CSS, JavaScript

    /*globals ko */
    ko.applyBindings({
        formId: 1,
        title: 'Contact Form',
        questions: [{
            title: ko.observable('Name'),
            type: 'text'},
        {
            title: ko.observable('Reason ...
  • Knockout Talk, Example 2

    jQuery (edge), HTML, CSS, JavaScript

    /*globals ko */
    ko.applyBindings({
        formId: 1,
        title: 'Contact Form',
        questions: [{
            title: 'Name',
            type: 'text'},
        {
            title: 'Reason',
            type: 'dropdown',
            answers: ['Sales ...
  • Knockout Talk, Example 1 #3 is the latest revision

    jQuery (edge), HTML, CSS, JavaScript

    /*globals ko */
    ko.applyBindings({
        formId: 1,
        title: 'Contact Form',
        questions: [{
            title: 'Name',
            type: 'text'},
        {
            title: 'Reason',
            type: 'dropdown',
            answers: ['Sales ...
  • Knockout Empty Template

    jQuery (edge), HTML, CSS, JavaScript

    ko.applyBindings({}, document.getElementById('wrap'))
  • Answer to http://stackoverflow.com/q/11403179/2688

    Showing hidden divs one at a time

    jQuery(function($) {
        var showDivs = function() {
            var divs = $('div.view:hidden');
            if (divs.length) {
                divs.first().fadeIn();
                setTimeout(showDivs, 300);
            }
        };
    
        showDivs();
    });