Ah yeah, that makes sense. I only ever dynamically add polymer elements by
doing a document.createElement and then appendChild it.

On Wed, Apr 1, 2015 at 9:25 PM Elliott Sprehn <[email protected]> wrote:

> This doesn't work because you're taking elements from an xhr document
> where there's no custom element registry and then just moving them. You
> need to do appendChild(document.importNode(response.body.children[0]))
> which will create a clone of the node, but using the document where polymer
> has registered the custom elements.
>
> On Wed, Apr 1, 2015 at 5:50 PM, Pavel Sergeev <[email protected]> wrote:
>
>> Importing "paper-button" in a <head> of index.html doesn't help.
>> BTW, a live demo of my example can be found here http://dzhioev.net:8000/
>>
>> On Wed, Apr 1, 2015 at 3:23 AM Eric Eslinger <[email protected]>
>> wrote:
>>
>>> I know that I have been able to insert polymer elements into the DOM
>>>  pretty easily, but I declared all the element types at start time. As a
>>> matter of fact, I kind of thought that all the link rel imports had to be
>>> in the document head. I'd try that part first, to see if it's the item
>>> declaration that's the problem or the injectoin.
>>>
>>> e
>>>
>>> On Tue, Mar 31, 2015 at 5:15 PM <[email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> can anybody help me with problem
>>>> http://stackoverflow.com/questions/29308986 ?
>>>>
>>>> I posted the question to SO several days ago, but got no answers.
>>>>
>>>> Thanks
>>>>
>>>> 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/cc4a07d8-ec0c-4e4b-82b1-0b14eb31c8cd%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/polymer-dev/cc4a07d8-ec0c-4e4b-82b1-0b14eb31c8cd%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/CAFQpGzJvoYqPMHiwernOY27d%3DCnkTpkmjNeNxSOYikzVN6a3AQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/polymer-dev/CAFQpGzJvoYqPMHiwernOY27d%3DCnkTpkmjNeNxSOYikzVN6a3AQ%40mail.gmail.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/CABsi40%2B9LZoFa4ZqwiJa81K5BbbRi9a6jMKCDk_QudG6bEEKNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to