Views

Mixendo XHR Demos

Contents

In this page we present a few examples of how to use the Mixendo XHR service, and what cross-domain Ajax can be useful for. This is just the beginning, since the only limit is your own imagination!

Remember, enabling is as easy as including this code:

<script type="text/javascript" src="http://api.mixendo.com/lib/xhr"></script>
                                

into your page.

Without your own unique Application Key you are running with the limited Demo Mode; to fully exploit our cross-domain service please Register!

Create your own widgets! (Extract data from a page)

Add simple widgets to your page!

In this example you will get a page with cross-domain Ajax, then extract part of it content, and make it into a Widget.

Disclaimer: the code is currently not functional on IE because of the different DOM that IE constructs. It is left as an exercise to the reader :-) to adapt the JS code to other browsers. And by the way, we are working on making web scraping widgets way easier, stay tuned.

This will be a widget!
URL:

Just click on Load Widget to try it out.

Once you grasp the concept, you can then try getting weather from a different city, or make your own Widget!

Test cookies persistency

Choose a website which uses cookies, such as one that requires a login/password combo. The Mixendo XHR will safely store the cookies.

Click on the three 'steps' in the order to

  1. go to the first website (get a cookie)
  2. go to another website
  3. go back to the first website and find your cookie again

URL:


Test your sources Access Control

This demo shows you the behaviour of the Mixendo cross-domain XHR in registered mode, which will validate the domain name on which your application is running and the domain name of the web sources your application connect too.

To see this demo, just go to your XHR Configuration page.