Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Examples #66

Open
GuillaumeLeclerc opened this issue Sep 22, 2016 · 2 comments
Open

Broken Examples #66

GuillaumeLeclerc opened this issue Sep 22, 2016 · 2 comments

Comments

@GuillaumeLeclerc
Copy link

Hello,

On most pages under example I see a white box and nothing inside is it that the examples are broken, or to be done in the future ?

Thanks for your answer u

@kevindqc
Copy link

kevindqc commented Oct 6, 2016

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.

@GuillaumeLeclerc
Copy link
Author

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');
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants