I continued investigating the issue:
1. LinkedId uses noConflict too.
2. LinkedIn uses RPC instead for sockets.
3. if i open the embedded iframe created by easyXDM in a separate browser window the LinkedIn buton starts working if I remove all easyXDM related query parameters and reload the page.
Don't know if that is useful. I will continue to investigate.
Still hoping for some tips though :)
regards
On Friday, 28 September 2012 16:12:30 UTC+2, Jonas.Hartwig wrote:
Hi all.
I tried to figure out on how to make the following working:
I have a website (parent) which creates a socket to an iframe via easyXDM. Both ends (the iframe and the parent side) communicate without any problems or difficulties. Inside the iframe is a LinkedIn share button. LinkedIn uses easyXDM as well to transfer a json object. This json object for some reason ends up on my web site (parent) which makes the linked in button unusable and results in a wrong target location. Here is the example page: http://www.cision.com/uk/news-room/#!/pressroom feel free to try it urself.
code on the parent which creates the socket:
if (window.easyXDM)
window.lib = { easyXDM: easyXDM.noConflict("cwsync") };
window.lib.socket = new window.lib.easyXDM.Socket({
remote: url,
props: { style: { width: "100%", padding: "0px 0px 10px 0px" }, id: "CisionRemoteContent", scrolling: "no" },
container: container,
onMessage: function (message, origin) {
//here arrives twitters json
},
onReady: function () {
//...
}
});
script on the iframe (the other side of the socket):
if(window.easyXDM)
window.lib = { easyXDM: easyXDM.noConflict("cwsync") };
window.lib.socket = new window.lib.easyXDM.Socket({
onReady: function () {
//...
},
onMessage: function (message, origin) {
//...
}
});
regards
Jonas