﻿<?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 - LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</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>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Sun, 29 Nov 2009 20:53:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Well, it could be. The latest Combo build version is 217 and Framework is 705. Please try to update by using Update manager and apply those into your project bin folder. Please let me know if it works well or not.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Wed, 25 Nov 2009 03:42:32 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've just tried and I've got alert with "value is Thomas Hardy"&lt;/p&gt;
&lt;p&gt;Maybe it'e a question of my version: Combo: 4.0.7200.214 ; WebUI.Net Frm: 3.0.5000.702 !?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;regards &lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;</description></item><item><title>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Wed, 25 Nov 2009 03:21:06 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Andrzej,&lt;/p&gt;&lt;p&gt;Could you please recheck again? I got "AROUT" in here. Here is my snippet code, same as before.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt; function Button1_onclick() {
            var combo = ISGetObject("WebCombo1");
            //    combo.XmlHttp.Asynchronous = false;
            combo.SetText("Thomas Hardy", true);
            combo.LoadValue(true)
            alert("value is " &amp;#43; combo.Value);
        }
&lt;/pre&gt;
&lt;p&gt;Insert additional button like your suggestion also shows "AROUT".&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Wed, 25 Nov 2009 02:51:19 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for answer, but (please analyze comments):&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; Button1_onclick() {&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; combo = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebCombo1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;combo.SetText(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Thomas Hardy"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;, &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;span style="background-color: #ff0000; color: #ffff00"&gt;// true =&amp;gt; text=value&lt;/span&gt;
combo.LoadValue(&lt;/span&gt;&lt;/p&gt;
combo.LoadValue(&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;alert(combo.Value); &lt;span style="background-color: #ff0000; color: #ffff00"&gt;// =&amp;gt; alert show the same text as you set (Thomas Hardy), we expected Value='AROUT' not Text &lt;/span&gt;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Try to&amp;nbsp;put on the page second button, then click Button1 and next Button2, you get Value='AROUT'&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Button2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="button"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="button"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; 

&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;onclick&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="return alert(ISGetObject('WebCombo1').Value);"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards&lt;/p&gt;&lt;p&gt;Andrzej&lt;/p&gt;&lt;/span&gt;</description></item><item><title>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Tue, 24 Nov 2009 20:53:43 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;May i know when you call LoadExample function? I attached my sample. It works fine. I used a button click to SetText and loadvalue. The function shows alert of WebCombo.Value. &lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>LoadValue in synchronous mode</title><link>http://www.intersoftsolutions.com/Community/WebCombo/LoadValue-in-synchronous-mode/</link><pubDate>Tue, 24 Nov 2009 17:16:12 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I try to load WebCombo and next read Value after loading, but no result&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;function LoadExample(){&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebCombo1 = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebCombo1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); WebCombo1.SetText(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Condiments"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt; 

&lt;p&gt;//&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;WebCombo1.XmlHttp.Asynchronous = false;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;WebCombo1.LoadValue(&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;/span&gt;&lt;span style="font-size: 13px"&gt;
alert(WebCombo1.Value); //&amp;lt;=always empty WHY? 
&lt;/span&gt;&lt;/p&gt;
alert(WebCombo1.Value); //&amp;lt;=always empty WHY? 

&lt;p&gt;}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;It's a copy of help:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;Parameters&lt;/b&gt;&lt;/span&gt; &lt;/p&gt;&lt;dl&gt;&lt;dt&gt;useSync ( boolean ) &lt;/dt&gt;&lt;dd&gt;Determines whether the LoadValue method is performing the function synchronously or asynchronously. If the synchronous mode is used by inserting true value, then developers can obtain the direct value after the LoadValue method is invoked. &lt;/dd&gt;&lt;/dl&gt;
&lt;p&gt;What's wrong with it ?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>