﻿<?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 - WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</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>WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</link><pubDate>Tue, 12 Jul 2011 00:26:35 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebExplorerBarItem</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to use the code below and let us hear your feedback.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;explorerPane.Panes.GetNamedItem("bar_VirtualServer").PaneItems.GetNamedItem("itm_ModifyVM").TargetURL = "http://www.google.com/ncr";&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</link><pubDate>Fri, 08 Jul 2011 18:49:40 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>WebExplorerBarItem</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Ok now i need to set on the client side the TargetURL.  The following code doesnt work, what am i doing wrong?&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;explorerPane.Panes.GetNamedItem(&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;"bar_VirtualServer"&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;).PaneItems.GetNamedItem(&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;"itm_ModifyVM"&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;).GetElement().TargetURL = &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;"ModifyVM.aspx?ID="&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; &amp;#43; vmGUID;&lt;/span&gt;&lt;/span&gt;&lt;/p&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;&lt;/span&gt;&lt;/span&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;Eric&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</link><pubDate>Thu, 30 Jun 2011 22:40:24 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebExplorerBarItem</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You are heading to the right direction. Disabling WebExplorerBarItem in client-side can be done simply by setting the value of &lt;strong&gt;Enabled&lt;/strong&gt; property of the specific WebExplorerBarItem to &lt;strong&gt;false&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;button1_onclick() {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WEP1 = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebExplorerPane1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;// set the 'Enabled' property to "false" in order to have the WebExplorerBarItem disabled&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WEP1.Panes.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"bar_ExplorerPane01"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).PaneItems.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"itm_ItemA"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).Enabled =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;false&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In WebExplorerBarItem, we can specify the &lt;strong&gt;TargetURL&lt;/strong&gt; and &lt;strong&gt;TargetWindow&lt;/strong&gt; property like the following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebDesktop&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebExplorerBarItem&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="itm_ItemA"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Text&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Item A"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;TargetURL&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="http://www.intersoftpt.com/"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;TargetWindow&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="_blank" /&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;By setting those properties, clicking the WebExplorerBarItem will open a new browser window that opens the Intersoft Solutions home page. When WebExplorerBarItem is disabled, clicking on it will not open the specified URL in a new browser window.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to have the WebExplorerBarItem greyed out, we need to get its element (by invoking GetElement() method) and then set the value of disabled property to true. This step will make the WebExplorerBarItem becomes grey like ordinary disabled item shown in browser.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;button1_onclick() {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WEP1 = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebExplorerPane1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;// set the 'Enabled' property to "false" in order to have the WebExplorerBarItem disabled&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WEP1.Panes.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"bar_ExplorerPane01"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).PaneItems.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"itm_ItemA"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).Enabled =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;false&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;// get the element of WebExplorerBarItem and set the disabled property to "true"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;// in order to greyed out the row element&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WEP1.Panes.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"bar_ExplorerPane01"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).PaneItems.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"itm_ItemA"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;).GetElement().disabled =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Apologize for the delay in sending this.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</link><pubDate>Thu, 30 Jun 2011 15:24:16 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>WebExplorerBarItem</category><description>&lt;p&gt;Still need an answer on this please.&lt;/p&gt;</description></item><item><title>WebExplorerBarItem disable</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebExplorerBarItem-disable/</link><pubDate>Tue, 28 Jun 2011 15:54:41 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>WebExplorerBarItem</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How do i disable a WebExplorerBarItem.  I want to disable a single item Client Side in a WebExplorerBar, but there doesnt seem to be a way to do it.  I tried setting Enable = false, but that didnt work.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item></channel></rss>