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 <[email protected]> To: [email protected] 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 <[email protected]> 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 <[email protected]> > To: > [email protected] > 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 <[email protected]> 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 <[email protected]> To: > [email protected] > > 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 <[email protected]> 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 > > > > > > > > >

