﻿<?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 - WebCombo - Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</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 event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Tue, 19 Oct 2010 21:33:24 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Ellen,&lt;/p&gt;
&lt;p&gt;Glad to hear its working well.&lt;/p&gt;
&lt;p&gt;Please don't hesitate if you have anymore questions. We will do our best to keep assisting you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Niven&lt;/p&gt;</description></item><item><title>Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Tue, 19 Oct 2010 12:44:12 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p style="margin: 0in 0in 0pt"&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt"&gt;&lt;/p&gt;&lt;span style="font-family: 'lucida sans unicode', 'sans-serif'; font-size: 10pt"&gt;&lt;p style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'lucida sans unicode', 'sans-serif'; font-size: 10pt"&gt;Niven,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'lucida sans unicode', 'sans-serif'; font-size: 10pt"&gt;&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Actually, it was my mistake. I instead of ISGetObject, I used IsGetObject what caused all the trouble.&lt;/p&gt;&lt;p&gt;-Ellen&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Actually, it was my mistake. I instead of ISGetObject, I used IsGetObject what caused all the trouble.&lt;/p&gt;&lt;p&gt;-Ellen&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Tue, 19 Oct 2010 00:06:40 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please look into my attached simple sample of your scenario. You can do whatever you want with your function. It will automatically pass a parameter.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Niven&lt;/p&gt;</description></item><item><title>Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Mon, 18 Oct 2010 11:34:34 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;Niven,&lt;/p&gt;
&lt;p&gt;Thanks for the replying. The problem is I need to pass a WebCombo (wcbo) as a parameter. Otherwise,&lt;/p&gt;
&lt;p&gt;I cannot take any actions with this control in JavaScrtiptj, since this WebCombo is created dynamically on the .aspx.vb page and doesn't exist in the .aspx page.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ellen&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Mon, 18 Oct 2010 03:01:13 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes you can. Please try the snippet below based on your given code.&lt;/p&gt;&lt;pre&gt;wcbo.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "MyFunction"; &lt;/pre&gt;
&lt;p&gt;You can only type the method's name not with the paramaters.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Niven&lt;/p&gt;</description></item><item><title>Client Side event from the Server Side: problem passing parameters </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Client-Side-event-from-the-Server-Side-problem-passing-parameters/</link><pubDate>Thu, 14 Oct 2010 23:40:18 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I created and populated WebCombo dynamically on a Server Side (and added it to the table).&lt;/p&gt;
&lt;p&gt;This is a main declaration:&lt;/p&gt;
&lt;p&gt;Dim wcbo = New WebCombo&lt;/p&gt;
&lt;p&gt;------ more coding-------&lt;/p&gt;
&lt;p&gt;-------and finally:--------&lt;/p&gt;
&lt;p&gt;wcbo.PopulateUnboundData(....)&lt;/p&gt;
&lt;p&gt;Everything works fine. Now I need to code for a ClientSideEvent, for example OnAfterItemSelected.&lt;/p&gt;
&lt;p&gt;I need to pass parameters to a JavaScript function and have a problem doing that.&lt;/p&gt;
&lt;p&gt;I tried two methods:&lt;/p&gt;
&lt;p&gt;wcbo.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "MyFunction(document.all.wcbo);" - parameter is passed as an Input instead of a WebCombo and it doesn't work&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;wcbo.Attributes.Add("OnAfterItemSelected", "MyFunction(document.all.wcbo);" - I don't get any errors, but Attributes.Add seems to not working for WebCombo at all. I cannot even make work a simple function like "alert('Test');".&lt;/p&gt;
&lt;p&gt;Unfortunately, knowledge base id down. Does anyone know how to call JavaScript function from the Server Side?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&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;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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;/span&gt;&amp;nbsp; 

&lt;p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>