(Example: var frameid = 'gadget_frame_id'; var rpcToken = 'long-random-string'; var gadgetRelayUrl = 'http://gadgetdomain.com/path/to/rpc_relay.html';
var renderUrl = 'http://gadgetdomain.com/gadgets/ifr?url=<gadget>&rpctoken=<rpctoken>&parent=<container-url>'; var ifr = document.createElement('iframe'); ifr.setAttribute('id', frameid); ifr.setAttribute('name', frameid); ifr.setAttribute('src', renderUrl); document.body.appendChild(ifr); gadgets.rpc.setAuthToken(frameid, rpctoken); gadgets.rpc.setRelayUrl(frameid, gadgetRelayUrl); ) On Fri, Mar 27, 2009 at 4:49 PM, Brian Eaton <[email protected]> wrote: > I've got some complete examples of how to do this all written up, but > unfortunately I don't have karma to edit that wiki. > > Anybody know how to fix that? > > > > On Fri, Mar 27, 2009 at 4:31 PM, Jordan Zimmerman <[email protected]> wrote: >>>Your container code has to call setRelayUrl. Shindig can't do this >> because >>>shindig isn't your container. >> >> I understand this now. So, in my container, I need to have: >> gadgets.rpc.setRelayUrl("..", >> "/gadgets/files/container/rpc_relay.html"); >> Correct? >> >> Where do I put the gadgets.rpc.register('requestNavigateTo', ...)? In >> the container? >> >> BTW - I've tried this and the handler still never gets called. >> >> Jordan Zimmerman >> Principal Software Architect >> 831.647.4712 >> 831.214.2990 (cell) >> [email protected] >> >> SHOP*COMTM >> Shop Smart, Save Big(tm) >> www.shop.com >> >> This message (including any attachments) is intended only for >> the use of the individual or entity to which it is addressed and >> may contain information that is non-public, proprietary, >> privileged, confidential, and exempt from disclosure under >> applicable law or may constitute as attorney work product. >> If you are not the intended recipient, you are hereby notified >> that any use, dissemination, distribution, or copying of this >> communication is strictly prohibited. If you have received this >> communication in error, notify us immediately by telephone and >> (i) destroy this message if a facsimile or (ii) delete this >> message >> immediately if this is an electronic communication. >> >> Thank you. >> >

