You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by zh...@apache.org on 2008/04/12 00:58:40 UTC
svn commit: r647343 -
/incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html
Author: zhen
Date: Fri Apr 11 15:58:16 2008
New Revision: 647343
URL: http://svn.apache.org/viewvc?rev=647343&view=rev
Log:
Added an uncompressed, more readable version of rpc_relay.html.
Original patch by Michael Mahemoff.
SHINDIG-160
Added:
incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html
Added: incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html?rev=647343&view=auto
==============================================================================
--- incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html (added)
+++ incubator/shindig/trunk/javascript/container/rpc_relay.uncompressed.html Fri Apr 11 15:58:16 2008
@@ -0,0 +1,14 @@
+<script>
+var url = location.href,
+ hashParams = url.substr(url.indexOf('#') + 1).split('&'),
+ targetFrame, receive;
+
+try {
+ targetFrame = hashParams[0] === '..' ? parent.parent
+ : parent.frames[hashParams[0]];
+ receive = targetFrame.gadgets.rpc.receive;
+} catch (e) {
+}
+
+receive && receive(hashParams);
+</script>