Client side events - parameter count error

4 replies. Last post: March 13, 2012 3:53 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Frank GaryMember

Gentlemen,

Recenty I added a client side event - OnEventBound to my websheduler as follows:

<script language="javascript" type="text/javascript" id="WebSchedulerDetail_OnEventBound">

<!--

function WebSchedulerDetail_OnEventBound(controlId, evt)

{

var WebSchedulerDetail = ISGetObject(controlId); if (WebSchedulerDetail.ViewSettings.SelectedViewMode == "Timeline")

{

var location = evt.GetOriginalObject().Location; var ScheduledColor = location; var div = evt.GetContentElement(); //** Event bar div div.style.backgroundColor = ScheduledColor; //** Set color to div

}

return true;

}

-->

</script>

 

The client side event performs as intended in my code. However, when trying to add additional client side events in the webscheduler properties dialog by I am receiving a strange parameter count error, (screenshot attached).

If I remove the last two code lines from the OnEventBound client side event;

var div = evt.GetContentElement(); //** Event bar div

div.style.backgroundColor = ScheduledColor; //** Set color to div

The parameter count error no longer exists, but my OnEventBound client side event does not function as intended.

I have no idea what is going on, can you please advise?

Thanks - Frank

 

1 attachment
All times are GMT -5. The time now is 1:23 PM.
Previous Next