easyXDM just became even easier to use!

To accommodate older browsers that does not implement the postMessage interface, easyXDM is able to fall back to using the URI fragment trick, and until now this has meant that the provided hash.html file had to be uploaded to the local domain (the ‘calling’ domain).

This seems to be a dealbreaker for many as they are unable to upload files to the server, either due to special systems, or because they just want to present an API in the form of ‘just include this javascript file’ etc..

With the new 1.5.5 release, this has all changed.

For scenarios where you do not want to upload the hash.html file, you can now point the local attribute to any file present on the local domain, like robots.txt or favicon.ico, and supply a readyAfter attribute with the number of milliseconds to wait before assuming the local file to be loaded and the library to be ready for interaction.

local: "/robots.txt",
readyAfter: 1000,
remote: "http://.........",

Update: Just released 1.6.0 which makes it possible to utilize the current document instead of loading a new one from the local domain. This makes it very easy to integrate, but does mean that you will be modifying the documents location when falling back to the HashTransport – and this might interfere with for instance history managers etc.

local: window,
remote: "http://.........",

The hash.html file is still the recommended approach for stable
implementations as it is unobtrusive and it guarantees that the library is indeed ready
when transitioning into a ready state.
Using hash.html also shortens the time needed to initialize easyXDM
as there is no need for the delay to give the local file time to
properly load.

All the different ways to set up easyXDM can now be viewed at http://easyxdm.net/wiki/Documentation.ashx

26 thoughts on “easyXDM just became even easier to use!

  1. Pingback: Alan Trider
  2. Pingback: sbobet
  3. Pingback: UMS Banking
  4. Pingback: Dror Soref
  5. Pingback: Bryan Zwan
  6. Pingback: m88
  7. What i do not realize is actually how you are not
    actually much more smartly-liked than you might be now.

    You are so intelligent. You recognize therefore significantly
    on the subject of this topic, made me in my view consider it from a lot of varied
    angles. Its like women and men don’t seem to be involved unless it’s one thing to do with Woman gaga!

    Your individual stuffs outstanding. At all times
    handle it up!

  8. I comment whenever I like a article on a website or if I have something
    to contribute to the conversation. It’s caused by the sincerness communicated in the article I browsed.

    And on this article easyXDM just became even easier to use!
    | Rantings in the dark. I was actually excited enough to post a thought :-P I do have a couple of questions for you if you tend not to mind.
    Could it be only me or do a few of the responses look as if they are left
    by brain dead people? :-P And, if you are writing at other sites,
    I would like to follow you. Would you list all of your social sites like your Facebook page, twitter feed, or linkedin profile?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>