Fórum
adding calendar portlet using JQuery
David Gitonga, modificado 10 Anos atrás.
adding calendar portlet using JQuery
Junior Member Postagens: 63 Data de Entrada: 26/07/13 Postagens 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.
);
any help for me.
<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.
);
any help for me.