News.
I tried using
TimeRangeSelectedHandling= "JavaScript"
TimeRangeSelectedJavaScript = "openPopup(start, end, column);"
and this as per example on site
function openPopup(e)
{
window.open('bookingPopupNew.aspx?start='
+ DayPilot.ds(start)
+ '&end=' + DayPilot.ds(end)
+ '&column=' + column,
'PopupDetail','width=400,Height=400,top=200,left=200');
}
This didnt work, got the error above.
I then tried another example
function newEvent(start, end, column)
{
document.location = 'bookingPopupNew.aspx?start='
+ encodeURIComponent(start.toUTCString())
+ '&end=' + encodeURIComponent(end.toUTCString())
+ '&column=' + encodeURIComponent(column);
}
This worked!
So I put it together into a dialog box showing details
function newBooking(start, end, column)
{
window.open('bookingPopupNew.aspx?start='
+ encodeURIComponent(start.toUTCString())
+ '&end=' + encodeURIComponent(end.toUTCString())
+ '&column=' + encodeURIComponent(column),
'PopupDetail','width=400,Height=400,top=200,left=200');
}
This works fine.
Can a VB examples section be put up on the site?
Cheers
John