﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><pubDate>Tue, 13 Mar 2012 03:53:34 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Thank you very much for the contribution by confirming the result.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The reported problem deals with the WebScheduler properties dialog when developer tries to add client side event but not affecting the performance of the WebScheduler control at runtime.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The development team will check what may cause the issue and fix it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need further assistance or run into technical problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><pubDate>Mon, 12 Mar 2012 05:09:28 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;Tried the above steps and the results are as follows:&lt;/p&gt;
&lt;p&gt;1). I can add client side events with the two lines of code REMOVED from the OnEventBound.&lt;/p&gt;
&lt;p&gt;2). I can "manually" add client side events with the two lines of code NOT removed from the OnEventBound.&lt;/p&gt;
&lt;p&gt;For now, I will just either add manual client side events, or remove the two lines of code, add a new event and then put the two lines of code back. The issue does not seem to affect the performance of the wescheduler control at runtime.&lt;/p&gt;
&lt;p&gt;Thanks - Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><pubDate>Sat, 10 Mar 2012 16:15:02 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Yudi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I will look at this next week and post back the results.&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;</description></item><item><title>Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><pubDate>Fri, 09 Mar 2012 02:58:28 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Thank you for the detail step by step guide to reproduce the reported problem. I suspect that there is something wrong with the designer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Temporarily, please do the following (before add other client side events of WebScheduler).&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;&lt;li&gt;Open text editor such as Notepad.&lt;/li&gt;&lt;li&gt;Back up the code of WebSchedulerDetail_OnEventBound() JavaScript function on the text editor application.&lt;/li&gt;&lt;li&gt;Remove the last two code lines (or all the lines) from WebSchedulerDetail_OnEventBound() JavaScript function.&lt;/li&gt;&lt;li&gt;Add other client side event of WebScheduler, for example: OnAfterDelete.&lt;/li&gt;&lt;li&gt;Switch the view to source view.&lt;/li&gt;&lt;li&gt;Restore the code of WebSchedulerDetail_OnEventBound() JavaScript function from the text editor application.&lt;/li&gt;&lt;li&gt;Complete the code on the newly added client side event, in this sample is: OnAfterDelete.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I will have this reported problem forwarded to WebScheduler development team to be investigated further. I’m quite sure that the problem only happens with the WebScheduler properties dialog when developer tries to add client side event.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Please let us know if you have other questions.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Client side events - parameter count error</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Client-side-events---parameter-count-error/</link><pubDate>Thu, 08 Mar 2012 01:28:59 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;
&lt;p&gt;Recenty I added a client side event - OnEventBound to my websheduler as follows:&lt;/p&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;language&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;="javascript"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;="text/javascript"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;="WebSchedulerDetail_OnEventBound"&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;p&gt;&amp;lt;!--&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; WebSchedulerDetail_OnEventBound(controlId, evt) 

&lt;p&gt;{&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; WebSchedulerDetail = ISGetObject(controlId); 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; (WebSchedulerDetail.ViewSettings.SelectedViewMode == &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;"Timeline"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;) 

&lt;p&gt;{&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; location = evt.GetOriginalObject().Location; 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; ScheduledColor = location; 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; div = evt.GetContentElement(); &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;//** Event bar div &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
div.style.backgroundColor = ScheduledColor; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;//** Set color to div &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;p&gt;}&lt;/p&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;; 

&lt;p&gt;}&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;--&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;p&gt;&amp;lt;/&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;If I remove the last two code lines from the OnEventBound client side event;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; div = evt.GetContentElement(); &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;//** Event bar div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
div.style.backgroundColor = ScheduledColor; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #006400; font-size: 13px"&gt;//** Set color to div &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;The parameter count error no longer exists, but my OnEventBound client side event does not function as intended.&lt;/p&gt;
&lt;p&gt;I have no idea what is going on, can you please advise?&lt;/p&gt;
&lt;p&gt;Thanks - Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>