Coder Social home page Coder Social logo

Broken Examples about rx-book HOT 2 OPEN

xgrommx avatar xgrommx commented on May 23, 2024
Broken Examples

from rx-book.

Comments (2)

kevindqc avatar kevindqc commented on May 23, 2024

This is because JSBin is loaded through HTTP, so if you're visiting the site through HTTPS (e.g.: https://xgrommx.github.io/rx-book/content/observable/observable_instance_methods/every.html) then the examples don't work:
plugin.js:42 Mixed Content: The page at 'https://xgrommx.github.io/rx-book/content/observable/observable_instance_methods/every.html' was loaded over HTTPS, but requested an insecure resource 'http://jsbin.com/kaxifo/1/embed?js,console'. This request has been blocked; the content must be served over HTTPS.

You can switch to a HTTP URL instead, and examples will work:
http://xgrommx.github.io/rx-book/content/observable/observable_instance_methods/every.html

Unfortunately, it seems you need to pay if you want to embed with HTTPS, so who knows if this will get fixed.
https://jsbin.com/gelaz/1/embed?js,output

Embedding JS Bin under https is only available to bins created by users with a pro account.

from rx-book.

GuillaumeLeclerc avatar GuillaumeLeclerc commented on May 23, 2024

Indeed with http it works but still I have a problem for the forkjoin example:

When I use the code provided at the bottom of the page I get n is not a function, which is very weird. Maybe example is not up to date with the latest version of Rx?

Code:

var source = Rx.Observable.just(42).forkJoin(
  Rx.Observable.range(0, 3));

var subscription = source.subscribe(
  function (x) {
    console.log('Next: %s', x);
  },
  function (err) {
    console.log('Error: %s', err);
  },
  function () {
    console.log('Completed');
  });

from rx-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.