Thanks for the quick reply. Yes, I also tried this.$.theThing.postMessage(), and it does not work either.
On Thursday, July 16, 2015 at 9:16:07 PM UTC-5, Eric Bidelman wrote: > > Did you try just this.$.theThing.postMessage()? Since that node is local > to your element's DOM, you shouldn't need the Polymer.dom() wrappers. Those > are mainly for cases where you're manipulating the light DOM of an element > and doing > things that could affect distribution. > > On Fri, Jul 17, 2015 at 10:28 AM eric sherouse <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I am migrating my app from Polymer 0.5 to 1.0. I have an element with an >> embed tag in it (used to communicate with a Native Client module actually). >> >> <embed id="theThing" src="{{nmf}}" type="application/x-pnacl" >> on-load="loaded" on-message="receive"> >> >> In 0.5, I was able to use postMessage to communicate with this embed >> element like this: >> >> this.$.theThing.postMessage() >> >> In 1.0, it appears I can no longer access the postMessage method (it is >> undefined). I have tried multiple element selector variations: >> >> Polymer.dom(this.$.theThing).postMessage(); //does not work >> this.$$("#theThing").postMessage(); //does not work >> Polymer.dom(this.root).querySelector("#theThing").postMessage(); //does >> not work >> >> Is there a new way to access these sorts of methods? If this is described >> in the docs, I have missed it so far. Any thoughts would be appreciated. >> >> Thanks, >> Eric >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 >> --- >> You received this message because you are subscribed to the Google Groups >> "Polymer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/a4acb0ab-765c-49f6-823c-66d1e1c76d3b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/polymer-dev/a4acb0ab-765c-49f6-823c-66d1e1c76d3b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/f15702e6-b5cb-4351-b7f1-519479f7116d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
