On Fri, Mar 27, 2009 at 3:48 PM, Jordan Zimmerman <[email protected]> wrote:

> >Yes, those instructions are right. What browser are you using?
> FF3. I've tried everything I can think of. I've step through the JS and
> see that postMessage is being called on the parent window. But, after
> that nothing happens.
>
> Maybe someone can answer these questions and that will help me:
>
> * Why do I have to call gadgets.rpc.setRelayUrl()? Why isn't that done
> automatically (internally) in Shindig?


Your container code has to call setRelayUrl. Shindig can't do this because
shindig isn't your container.


>
>
> * What is the relationship between
> gadgets.rpc.register('requestNavigateTo', ...) and
> gadgets.rpc.setRelayUrl()?


setRelayUrl is used for the IFPC communications channel, which is used for
IE (< 8), chrome (< 2.0), safari (< 4.0), and any other browser that doesn't
support a more sophisticated channel.

gadgets.rpc.register is how you register an RPC service that the gadget is
allowed to call.


>
>
> * What is the purpose of rpc_relay.html? It's confusing to me why this
> needs to be a separately served file.


Because that's how IFPC works. A deep explanation is in the source code.


>
>
> * The doc says that "/gadgets/js/rpc.js?c=1" must be included. It seems
> to me that this code is already included by the default Shindig
> container. In any event, I've tried both including it and not including
> it and requestNavigateTo() still does nothing.


Shindig is not your container. There is no way for shindig to put code into
your container. You have to include rpc.js because your container needs it
to function.


>
>
> * What are the different transport methods? Should I be using something
> other than the default?


rpc.js selects the transport based upon browser capabilities. The fallback
chain is:

window.postMessage (HTML5 standard)
document.postMessage (HTML5 draft, opera only)
window.frameElement (FF2)
super ugly vb script hack "nix" (IE6/7)
IFPC


>
>
> 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.
>

Reply via email to