shindig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Voorhees <stephen.voorh...@autodesk.com>
Subject Re: Bugs in rpc.js? (Was: Is pub/sub from trunk broken?)
Date Mon, 13 Jul 2009 17:36:34 GMT
>You might try updating to the most recent trunk.  I committed some fixes
> that insure that IE8 uses the postMessage (wpm) transport this past week.

Thanks, I had pulled the latest right before your commit.  I'll pull it and see if it helps.


On 7/12/09 11:24 PM, "Paul Lindner" <lindner@inuus.com> wrote:

You might try updating to the most recent trunk.  I committed some fixes
that insure that IE8 uses the postMessage (wpm) transport this past week.
On Sun, Jul 12, 2009 at 10:10 PM, Stephen Voorhees <
stephen.voorhees@autodesk.com> wrote:

>
> I've been trying to figure out an issue with dynamic-height on Internet
> Explorer lately and noticed a possible issue that may also effect pub-sub.
>  Currently, the relay URL is being calculated as follows in rpc.js:
>
> parentRelayUrl = getOrigin(params.parent) + parentRelayUrl;
>
> This seems wrong.  If you set your parent parameter as something that
> includes a path such as http://example.com/path/to/relay/file, the code
> above will remove "/path/to/relay/file".  This seems wrong and is changed
> behavior from previously.  It seems it should just be:
>
> parentRelayUrl = params.parent + parentRelayUrl;
>
> Also, Even with this change, I am still getting problems with
> dynamic-height on Internet Explorer 8.  I am seeing the following error "Nix
> transport setup failed, falling back..."  Any ideas what may be going on?
>  Is rpc.js working for other in IE8?  Am I required to pass rpcToken in my
> parameters to ifr to get this to work?   If so, how should it be formatted?
>
> Thanks!
> --Steve
>
> On 7/10/09 1:56 PM, "Kevin Brown" <etnu@google.com> wrote:
>
> The example pages are probably broken then. You should definitely always
> have a parent parameter in the iframe url.
>
> On Fri, Jul 10, 2009 at 1:21 PM, Han Nguyen <hnguy@us.ibm.com> wrote:
>
> > Kevin,
> > I didn't specify the value for the "parent" parameter of the iframe url.
> I
> > think it was built by the framework.
> > I ran the sample-pubsub.html and have the same problem as Andy's
> >
> > Thanks,
> > Han
> >
> >
> >
> > From:
> > Kevin Brown <etnu@google.com>
> > To:
> > shindig-dev@incubator.apache.org
> > Date:
> > 07/09/2009 04:30 PM
> > Subject:
> > Re: Is pub/sub from trunk broken?
> >
> >
> >
> > That doesn't look right, then. The value of "parent" should point to the
> > full path of the rpc_relay file (scheme, host, and path) -- it looks like
> > it's just the path here.
> >
> > What are you specifying for the "parent" parameter of the iframe url?
> >
> > On Thu, Jul 9, 2009 at 7:32 AM, Han Nguyen <hnguy@us.ibm.com> wrote:
> >
> > > Kevin,
> > > The relay value is:
> > >           /gadgets/files/container/rpc_relay.html
> > >
> > > And the targetWin value is
> > > Window
> > >
> ifr?container=default&mid=1&nocache=1&country=ALL&lang=ALL&view=default&
> > > parent=http%3A%2F%2Flocalhost%3A8080
> > >
> > >
> >
> >
> &st=john.doe:john.doe:appid:cont:url:0:1&url=http%3A%2F%2Flocalhost%3A8080%2Fmum%2Ftest%2FosgSub.xml#rpctoken=600865889
> > >
> > >
> > >
> > > From:
> > > Kevin Brown <etnu@google.com>
> > > To:
> > > shindig-dev@incubator.apache.org
> > > Date:
> > > 07/09/2009 01:48 AM
> > > Subject:
> > > Re: Is pub/sub from trunk broken?
> > >
> > >
> > >
> > > What was the value of  "relay" though? For postMessage, the "parent"
> > > parameter to the gadget must contain a valid origin (scheme and host,
> > and
> > > possibly port). Is this being specified?
> > >
> > > On Wed, Jul 8, 2009 at 6:13 PM, Han Nguyen <hnguy@us.ibm.com> wrote:
> > >
> > > >
> > > > Hi Kevin,
> > > > *Test case1;*  we ran the gadgets out of the sample container on
> > tomcat
> > > > 6.0. Below  screen shot of the values we got from firebug.
> > > > *uncaught exception: An invalid or illegal string was specified
> > > > (NS_ERROR_DOM_SYNTAX_ERR)*
> > > > *targetWin.postMessage(gadgets.json.stringify(rpc), relay);*
> > > >
> > > >
> > > >
> > > >
> > > > *Test case2: *we ran sample pubsub on Safari and had similar error
> > > *Error:
> > > > SYNTAX_ERR: DOM Exception 12 *
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > relay: "../../files/container/rpc_relay.html"
> > > >   rpc: Object
> > > > a: Array
> > > >    0: "random-number"
> > > >    1: "*
> > > >
> > >
> >
> http://localhost:8080/gadgets/files/container/sample-pubsub-publisher.xml"
> > > > *<
> > >
> >
> http://localhost:8080/gadgets/files/container/sample-pubsub-publisher.xml>
> > > >    2: 0.3694564469624311
> > > > c: 0
> > > > f: ".."
> > > > l: false
> > > > s: "pubsub"
> > > > t: "1841555346"
> > > >
> > > > Thanks for helping!!!
> > > > Han
> > > >
> > > >
> > > >  From: Kevin Brown <etnu@google.com> To:
> > > shindig-dev@incubator.apache.org
> > > > Date: 07/08/2009 06:53 PM Subject: Re: Is pub/sub from trunk broken?
> > > > ------------------------------
> > > >
> > > >
> > > >
> > > > What are the values of "rpc" and "relay" when you get the error?
> > > >
> > > > On Wed, Jul 8, 2009 at 12:27 PM, Han Nguyen <hnguy@us.ibm.com>
> wrote:
> > > >
> > > > > Hello,
> > > > > My teammate and I synched down the code from the trunk yesterday,
> > and
> > > our
> > > > > previously working pub/sub test cases are now broken with the below
> > > error
> > > > > found in FF console.
> > > > > Has anyone seen this error? is pub/sub broken?
> > > > >
> > > > > uncaught exception: An invalid or illegal string was specified
> > > > > (NS_ERROR_DOM_SYNTAX_ERR)
> > > > >        targetWin.postMessage(gadgets.json.stringify(rpc), relay);
> > > > >
> > > > > Thanks much!
> > > > > Han
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>


Mime
View raw message