Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Alex Curtui
Detach Event
20 de Novembro de 2012 22:48

Alex Curtui

Ranking: Junior Member

Mensagens: 30

Data de entrada: 8 de Novembro de 2012

Mensagens recentes


Please help me with this problem:
I'm trying to update a liferay-ui:search-container through AJAX and not submitting. Everything works fine until now, when I'm trying to detach the onchange event from the dropdown which displays delta (items on page).

I tried with this code:
1A.one("#<portlet:namespace/>userInterfacesSearchContainerPageIteratorBottom_itemsPerPage").on("change", function(event){
2        event.halt();
3    });

but doesn't work, so now I'm trying with
1var node = A.one("#<portlet:namespace/>userInterfacesSearchContainerPageIteratorBottom_itemsPerPage");
2    alert(node.detach());

which still fails...

It may be a simple answer, but I struggled for more than 4 hours with no result, so Please help!

Thank you in advance,
Alex C.