jquery - How to get event resourceId when adding a new one -
i'm trying add new event manually (selecting time range) specific resource, need resourceid after doing save event on db. method select: function (start,end,allday)
gives me time range not resourceid if i'm working multiple resources. solution?
edit below
ok, i'll try explain better.
i'm using resource view of calendar can see @ fullcalendar resourceview
when try select time range (select method) add new event, can starttime , endtime, can see on link provided.
but, problem is, when i'm using multi column view (resource view), need resourceid, send server using ajax , store somewhere.
i have tried:
this: select: function(start, end, resourceid){alert(resourceid)},
alert is: false
and this: select: function(start, end, event){alert(event.resourceid)},
alert is: undefined
sorry short question!
thanks!
i had same issue , in fact select method has resource parameter in 5th position, :
select: function(start, end, event, view, resource) { var resourceid = resource.id; }
it did trick me on fullcalendar (^3.0.0-beta) scheduler (v1.3.3)
Comments
Post a Comment