You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2009/04/17 07:41:02 UTC
svn commit: r765851 -
/incubator/shindig/trunk/javascript/container/gadgets.js
Author: lindner
Date: Fri Apr 17 05:41:02 2009
New Revision: 765851
URL: http://svn.apache.org/viewvc?rev=765851&view=rev
Log:
SHINDIG-158 | reloading using postMessage causes RPC errors
Modified:
incubator/shindig/trunk/javascript/container/gadgets.js
Modified: incubator/shindig/trunk/javascript/container/gadgets.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/gadgets.js?rev=765851&r1=765850&r2=765851&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/gadgets.js (original)
+++ incubator/shindig/trunk/javascript/container/gadgets.js Fri Apr 17 05:41:02 2009
@@ -407,8 +407,10 @@
gadgets.Gadget.prototype.render = function(chrome) {
if (chrome) {
+ var gadget = this;
this.getContent(function(content) {
chrome.innerHTML = content;
+ window.frames[gadget.getIframeId()].location = gadget.getIframeUrl();
});
}
};
@@ -517,7 +519,7 @@
gadgets.rpc.setAuthToken(iframeId, this.rpcToken);
continuation('<div class="' + this.cssClassGadgetContent + '"><iframe id="' +
iframeId + '" name="' + iframeId + '" class="' + this.cssClassGadget +
- '" src="' + this.getIframeUrl() +
+ '" src="about:blank' +
'" frameborder="no" scrolling="no"' +
(this.height ? ' height="' + this.height + '"' : '') +
(this.width ? ' width="' + this.width + '"' : '') +