Is it possible to use IWEventRegistry.addItemHandlerl ike this? I am not able to get this workIWEventRegistry.addItemHandler("/Events/events_section/strt_date", "onCallout", handleDate('st_date')); IWEventRegistry.addItemHandler("/Events/events_section/end_date", "onCallout", handleDate('en_date'));function handlePubDate( url_data) {if url_data == 'st_date' showCalendar("/arts/arts_section/strt_date");else if url_data=='en_date' showCalendar("/arts/arts_section/end_date");return false;}
IWEventRegistry.addItemHandler("/Events/events_section/strt_date", "onCallout", handlePubDate); IWEventRegistry.addItemHandler("/Events/events_section/end_date", "onCallout", handlePubDate);function handlePubDate( iwItem) {if iwItem.getName() == 'st_date' showCalendar("/arts/arts_section/strt_date");else if iwItem.getName()=='en_date'showCalendar("/arts/arts_section/end_date");return false;}
IWEventRegistry.addItemHandler("/Events/events_section/strt_date", "onCallout", handlePubDate); IWEventRegistry.addItemHandler("/Events/events_section/end_date", "onCallout", handlePubDate);function handlePubDate( iwItem) {if iwItem.getName() == 'st_date' showCalendar("/arts/arts_section/strt_date");else if iwItem.getName()=='en_date'showCalendar("/arts/arts_section/end_date");return false;} Cheers
function handlePubDate( iwItem) { if(iwItem.getName().match(/strt_date$/)){ showCalendar("/arts/arts_section/strt_date"); else if(iwItem.getName().match(/end_date$/)){ showCalendar("/arts/arts_section/end_date"); } else { alert("How did I get here? ("+iwItem.getName()+")"); } return false;}