JSFiddle

  • jQuery AJAX

    Send AJAX requests with this jQuery script.

    $(document).ready(function(e) {
        
        $("form[ajax=true]").submit(function(e) {
            
            e.preventDefault();
            
            var form_data = $(this).serialize();
            var form_url = $(this).attr ...
  • XMLHttpRequest

    No-Library (pure JS), HTML, CSS, JavaScript

    var url = "http://go";
    
    var request = new XMLHttpRequest();  
    request.open("GET", url, false);   
    request.send(null);  
      
    if (request.status === 200 ...
  • Retry Image Load

    No-Library (pure JS), HTML, CSS, JavaScript

    var count = 1, loaded = false;
    var sequence = Rx.Observable.create(function(observer) {
        console.log('subscribing to image load event ' + count ...
  • Retry Image Load

    No-Library (pure JS), HTML, CSS, JavaScript

    var count = 1, loaded = false;
    var sequence = Rx.Observable.create(function(observer) {
        console.log('subscribing to image load event ' + count ...
  • Retry Image Load

    No-Library (pure JS), HTML, CSS, JavaScript

    var count = 1, loaded = false;
    var sequence = Rx.Observable.create(function(observer) {
        console.log('subscribing to image load event ' + count ...
  • Sparse Array Test #7 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var sparse = new SparseArray();
    var sparse2 = new SparseArray();
    sparse.setGap(10);
    sparse2.setGap(10);
    
    var data = [
        { width: 10, height: 10 ...
  • Retry Image Load

    No-Library (pure JS), HTML, CSS, JavaScript

    var count = 1, loaded = false;
    var sequence = Rx.Observable.create(function(observer) {
        console.log('subscribing to image load event ' + count ...
  • Keyboard Model #14 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var originDelta = new Rx.Subject(),
        data = new Rx.Subject(1);
    
    data.select(function(d) {
        
        return originDelta.
            startWith({
                origin: 0,
                data ...
  • Keyboard Model #1 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var originDelta = new Rx.Subject(),
        data = new Rx.Subject(1);
    
    data.select(function(d) {
        
        return originDelta.
            startWith({
                origin: 0,
                data ...
  • Keyboard Model #2 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var originDelta = new Rx.Subject(),
        data = new Rx.Subject(1);
    
    data.select(function(d) {
        
        return originDelta.
            startWith({
                origin: 0,
                data ...