Fóruns

Início » Liferay IDE » English

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
David Gitonga
adding calendar portlet using JQuery
4 de Dezembro de 2013 23:42
Resposta

David Gitonga

Ranking: Junior Member

Mensagens: 48

Data de entrada: 26 de Julho de 2013

Mensagens recentes

I have added calendar to my custom page with Jquery which is working well.

<liferay-portlet:renderURL var="calURL" portletName="8" windowState="<%=LiferayWindowState.MAXIMIZED.toString() %>" >
</liferay-portlet:renderURL>
<div id="cal"></div>
$(function(){

$("#cal").load("<%=calURL%> #portlet_8");

});

everything is working fine except when i click on a date its not responding, when i look for errors using firebug am getting

ReferenceError: _8_updateCalendar is not defined

what am i missing, am guessing maybe there should be some code after loading the page e.g.
$("#cal").load("<%=calURL%> #portlet_8",function(){

//some code here.
);
emoticon
any help for me.