This topic contains 0 replies, has 1 voice, and was last updated by juliet sunglasses oakley 8 years, 4 months ago.
You must be logged in to reply to this topic.
This topic contains 0 replies, has 1 voice, and was last updated by juliet sunglasses oakley 8 years, 4 months ago.
We’ve had a few people ask us this question, so I thought more people may want to know.
When you run our triggered script by clicking or dragging an event on the calendar, the date that’s showing on the calendar comes in as part of the $url variable. It works great for that purpose.
But what if you want to run a script elsewhere in your solution, not from the web viewer, but still want to know what date is showing on the calendar.
Well, we’ve included an optional plug-in that can handle this gracefully. Set a variable to the following calculation. The result will be your date. This works on Mac & Windows.
MBS( "WebView.RunJavaScriptReturnTitle"; $$web_calendar; "document.title=scheduler.getState().date.toISOString().substring(0, 10);" )
You must be logged in to reply to this topic.