good afternoon, i have a problem...
my html page
<body fullbleed vertical layout unresolved>
>
>
>
> <core-scaffold>
>
> <core-header-panel navigation flex mode="seamed">
>
> <core-toolbar>Dispositivos</core-toolbar>
>
> <core-menu>
>
> <input id="getAllClientes" type="button" value="Get
>> Clientes" >
>
>
>> </core-menu>
>
> </core-header-panel>
>
> <div tool>Dispositivo</div>
>
> <div fit>Main content goes here...</div>
>
> </core-scaffold>
>
> </body
>
>
my js file
...
> $("#getAllClientes").click(function () {
>
> $.getJSON("/getAllClientes", function (data) {
>
> //console.log(data.toString());
>
> //$("#result").html(JSON.stringify(data));
>
>
>> var list = data.toString().split(",");
>
> $("core-menu > core-item").each(function (index) {
>
> $("core-menu > core-item").remove();
>
> });
>
> for (mac in list) {
>
> var html = "<core-item icon='perm-scan-wifi'
>> class='antena-item'>" +
>
> "<div flex>" +
>
> "<div class='name'>" + list[mac] + "</div>" +
>
> "<div class='address'>Localização
>> desconhecida<div>" +
>
> "</div>" +
>
> "</core-item>";
>
> $("body > core-scaffold > core-header-panel >
>> core-menu").append(html);
>
> }
>
> }).done(function () {
>
>
>> });
>
> });
>
>
>> //body > core-scaffold > core-header-panel > core-menu >
>> core-item:nth-child(2)
>
> $("body").find("core-menu > core-item").on("click", function () {
>
> console.log($(this));
>
> });
>
>
>>
>> $("body").find(".name").click(function () {
>
> alert($("this"));
>
>
>> });
>
>
but click don't work
i think append to html, it's not correct
if someone get me help, I am very grateful.
(sorry for my bad english)
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/cfce1c7f-3be9-411a-a0d5-e4169f05649b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.