Open URL from XML file onClick

I would like for an events website to open when the event is clicked in the calendar. The code I’m using is below:

scheduler.attachEvent(“onClick”, function (){
window.open(“http://www.google.com”);

This works fine, however instead of opening Google I need to open the event URL stored in the XML file (the tag the URL is stored in is called ‘popup’). Any insight into how I can point to that tag name in the XML file?

Hi,
if the url is loaded as one of data properties of an event, you can access it from the event objectscheduler.attachEvent("onClick", function (id, e){ window.open( scheduler.getEvent(id).pupup); return false; });

Thank you, that worked beautifully! :slight_smile: