easyxdm

Multiple easyXDM in one page

天涯浪子 提交于 2019-12-13 13:15:08
问题 I am trying to use two easyXDM sockets on a single parent page without success. Both the sockets connect to the same remote domain but different endpoints. The parent page has two divs false_app_div and dummy_app_div .The following shows the code snippets - On the parent page I have two JS functions activate_false_app() and activate_dummy_app() . window.loadScript = function(src, onload, onerror) { var head = document.getElementByTagName('head')[0]; var script = document.createElement('script

`Uncaught TypeError: Cannot read property 'postMessage' of undefined ` error while sending cross domain messages using EasyXDM

对着背影说爱祢 提交于 2019-12-10 16:36:34
问题 I am trying to make a data exchange system between two websites at their client sides. I am using EasyXDM for this. (http://easyxdm.net/). Here is my code of parent website: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>EasyXDM Test</title> <script type="text/javascript" src="easyXDM.debug.js"></script> <script type="text/javascript"> var serv_socket = new easyXDM.Socket({ remote: "http://localhost:39452/EasyXDM/Default.aspx", onMessage: function

IFrame resizing with easyXDM

耗尽温柔 提交于 2019-12-05 07:00:20
问题 I give my iFrame code to clients, so they can display the dynamic content from my site. I'd like the iFrame that lives on their page to resize to fit my content. I followed the instructions from the easyXDM site, but maybe I am missing something. I don't get any errors, but the iFrame stays the default height (150px). The code I give my client site is : <script src="http://test.pronetis.net/SNM.CMS/js/easyXDM/easyXDM.debug.js" type="text/javascript"></script> <script type="text/javascript">

EasyXDM: download files from 3rd party service

南笙酒味 提交于 2019-11-26 11:41:47
问题 I want to make JavaScript cross domain request to 3rd party server. I\'ve read about easyXDM but still can\'t finally figure out how does it work. I tried their example in Chrome but it doesn\'t work for me ( Entity to Large for music and Not Allowed for text files). Question: Is easyXDM appropriate for my needs? I still don\'t understand whether it\'s possible to download smth from 3rd party service/domain 回答1: Unless the third-party server you are communicating specifically supports EasyXDM