﻿<?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 - WebDesktop - WebButton enabled state by javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-enabled-state-by-javascript/</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>WebButton enabled state by javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-enabled-state-by-javascript/</link><pubDate>Sun, 01 Nov 2009 21:23:37 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebButteon enabled</category><description>&lt;p&gt;You can set disable by using Disable() method or Enable() for enabling.&lt;/p&gt;&lt;p&gt;e.g&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function Enable() {
  var button=ISGetObject("WebButton1");
  button.Enable();
}
function Disable() {
  var button=ISGetObject("WebButton1");
  button.Disable();
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebButton enabled state by javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-enabled-state-by-javascript/</link><pubDate>Sat, 31 Oct 2009 09:47:30 GMT</pubDate><dc:creator>tj@domesticsoft.com</dc:creator><category>WebButteon enabled</category><description>&lt;p&gt;Onece again I hit the lack of JavaScript reference for the Intersoft controls.&lt;/p&gt;
&lt;p&gt;I have to disable a WebButton in JavaScript. How do I do that? I have tried:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;var wb = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"&amp;lt;%=c_wbRetrieve.ClientID %&amp;gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;alert(wb.Enabled);&lt;br /&gt;c_wbRetrieve().Enabled = "false";&lt;br /&gt;alert(wb.Enabled);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;In this case the first alert shows "true" and the later alert shows "false" as expected. However the web button does not become disabled. It can still be pressed.&lt;br /&gt;&lt;br /&gt;So&amp;nbsp;probably I have to call a SetEnable() og SetDisable() or whatever. How should I know as I can nowhere find the Javascript documentation for WebButton.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>