﻿<?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 - WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</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>WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</link><pubDate>Wed, 03 Jun 2015 01:27:28 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that the snippet code helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</link><pubDate>Mon, 01 Jun 2015 03:40:11 GMT</pubDate><dc:creator>BennySun</dc:creator><description>Thanks Yudi, It has helped me.</description></item><item><title>WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</link><pubDate>Fri, 29 May 2015 09:37:18 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can try to disable the toolbar command and then re-enable the command until some condition met.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function DisableToolbarItem()
{
    var toolbar = ISGetObject("wtcTray");
    toolbar.DisableCommand(toolbar.Commands[0]);

    // uncomment following line to enable toolbar command
    // toolbar.EnableCommand(toolbar.Commands[0]);

    return true;
}&lt;/pre&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</link><pubDate>Tue, 26 May 2015 02:47:19 GMT</pubDate><dc:creator>BennySun</dc:creator><description>&lt;p&gt;Any News?&lt;/p&gt;&lt;p&gt;Please help.&lt;br&gt;&lt;/p&gt;</description></item><item><title>WebToolBar buttom is duplicate submission</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebToolBar-buttom-is-duplicate-submission/</link><pubDate>Tue, 19 May 2015 07:11:46 GMT</pubDate><dc:creator>BennySun</dc:creator><description>&lt;p style="font-size: 13.3333330154419px;"&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;p style="font-size: 13.3333330154419px;"&gt;I want to know whether the WebToolBar has a fuction, can prevent the button is duplicate submission.&lt;/p&gt;&lt;p style="font-size: 13.3333330154419px;"&gt;&lt;span style="font-size: 10pt;"&gt;Means that when click on a button, the button is not available, when all the background code are performed, then the button becomes available.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size: 13.3333330154419px;"&gt;&lt;span style="font-size: 10pt;"&gt;i often received user feedback that he did not respond as first time, and then click second times. I want to avoid users to submit many times.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size: 13.3333330154419px;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size: 13.3333330154419px;"&gt;&lt;span style="font-family: 'Courier New', Tahoma; font-size: 9pt; background-color: rgb(255, 252, 225);"&gt;function wtcTray_OnClick(controlId,ToolCommand) {&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;                switch (ToolCommand.Name.toLowerCase()) {                   &amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: 9pt;"&gt;                    &lt;/span&gt;case 'cmdclose':                        // close this dialog
                        var dlgName = document.getElementById('hidDlgName').value;
                        //alert(dlgName);
                        parent.closeDialog(dlgName);
                        break;

                    case 'cmdsubmit':

                        //Postback to parent to create/append booking
                        // the logic is done on the server side
                        var wgTray = ISGetObject('wgTray');

                        if (wgTray.GetChangesCount() &amp;gt; 0) {
                            document.getElementById('hidActionAfterBatchUpdate').value = 'ToolbarSubmitBooking';
                            wgTray.AcceptAllChanges();
                        }
                        else {
                            invokeSubmitBooking();
                        }
                        
                        break;

                    default:
                        // do Nothing
                }
               
        }







&amp;lt;ISWebDesktop:WebToolBar ID="wtcTray" runat="server" AllowCustomize="No" AllowExpandCollapse="No"
                        AllowFloat="No" AllowMove="No" Caption="Tray" DisplayMode="TextAndImage" FillDockingRow="Yes"
                        HeaderHeight="" IntegratedTo="None" AutoPostBack="No" Height="24px" ViewStateServerConnection="path=C:\Inetpub\CacheStorage\ViewState"
                        ViewStateStorage="FileServer"  &amp;gt;
                        &amp;lt;Commands&amp;gt;
                            &amp;lt;ISWebDesktop:ToolCommand Category="WebToolBar1" Image="~/image/gear32.png" Name="cmdSubmit"
                                Text="Submit"&amp;gt;
                            &amp;lt;/ISWebDesktop:ToolCommand&amp;gt;
                            &amp;lt;ISWebDesktop:ToolCommand Category="WebToolBar1" Name="sep1" Type="Separator"&amp;gt;
                            &amp;lt;/ISWebDesktop:ToolCommand&amp;gt;
                            &amp;lt;ISWebDesktop:ToolCommand Category="WebToolBar1" Image="~/image/stop32.png" Name="cmdClose"
                                Text="Close"&amp;gt;
                            &amp;lt;/ISWebDesktop:ToolCommand&amp;gt;
                        &amp;lt;/Commands&amp;gt;
                        &amp;lt;CommandClientSideEvents OnClick="wtcTray_OnClick" /&amp;gt;
                        &amp;lt;HeaderCaptionStyle BackColor="#2A66C9" Cursor="Move" Font-Bold="True" Font-Names="Tahoma"
                            Font-Size="8pt" ForeColor="White"&amp;gt;
                        &amp;lt;/HeaderCaptionStyle&amp;gt;
                        &amp;lt;CommandDisabledStyle Font-Names="Segoe UI,Tahoma" Font-Size="8pt" ForeColor="DimGray"&amp;gt;
                            &amp;lt;Padding Bottom="1px" Left="3px" Right="3px" Top="1px" /&amp;gt;
                        &amp;lt;/CommandDisabledStyle&amp;gt;
                        &amp;lt;HeaderButtonStyle&amp;gt;
                            &amp;lt;Normal BackColor="#2A66C9" Cursor="Hand" Font-Size="8pt" ForeColor="White" Width="13px"&amp;gt;
                                &amp;lt;Padding Bottom="1px" Left="1px" Right="1px" Top="1px" /&amp;gt;
                            &amp;lt;/Normal&amp;gt;
                            &amp;lt;Over BackColor="#FFF2C8" BaseStyle="Normal" BorderColor="#316AC5" BorderStyle="Solid"
                                BorderWidth="1px" Cursor="Hand" ForeColor="Black"&amp;gt;
                                &amp;lt;Padding Bottom="0px" Left="0px" Right="0px" Top="0px" /&amp;gt;
                            &amp;lt;/Over&amp;gt;
                            &amp;lt;Active BackColor="#FE9855" BaseStyle="Over" BorderColor="#4B4B6F" Cursor="Hand"&amp;gt;
                            &amp;lt;/Active&amp;gt;
                        &amp;lt;/HeaderButtonStyle&amp;gt;
                        &amp;lt;CommandStyle&amp;gt;
                            &amp;lt;Normal Font-Names="Segoe UI,Tahoma" Font-Size="8pt" Overflow="Hidden" OverflowX="Hidden"
                                OverflowY="Hidden"&amp;gt;
                                &amp;lt;Padding Bottom="1px" Left="3px" Right="3px" Top="1px" /&amp;gt;
                            &amp;lt;/Normal&amp;gt;
                            &amp;lt;Over BackColor="#FFF5CC" BackColor2="255, 219, 117" BorderColor="#FFBD69" BorderStyle="Solid"
                                BorderWidth="1px" Cursor="Default" Font-Names="Segoe UI,Tahoma" Font-Size="8pt"
                                GradientType="Vertical" Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden"&amp;gt;
                                &amp;lt;Padding Bottom="0px" Left="2px" Right="2px" Top="0px" /&amp;gt;
                            &amp;lt;/Over&amp;gt;
                            &amp;lt;Active BackColor="#FE9855" BaseStyle="Over"&amp;gt;
                            &amp;lt;/Active&amp;gt;
                        &amp;lt;/CommandStyle&amp;gt;
                        &amp;lt;SeparatorStyle&amp;gt;
                            &amp;lt;BorderSettings&amp;gt;
                                &amp;lt;Left Color="154, 198, 255" Style="solid" Width="1px" /&amp;gt;
                            &amp;lt;/BorderSettings&amp;gt;
                        &amp;lt;/SeparatorStyle&amp;gt;
                        &amp;lt;HandleStyle BackColor="#E3EFFF"  GradientType="Vertical" /&amp;gt;
                        &amp;lt;BodyStyle BackColor="#E3EFFF" GradientType="Vertical" /&amp;gt;
                        &amp;lt;OptionStyle BackColor="#D3E6FF" BackColor2="116, 161, 220" ForeColor="Black" GradientType="Vertical" /&amp;gt;
                        &amp;lt;MenuStyleSettings BackgroundStripColor="233, 238, 238" BackgroundStripColor2=""
                            MenuAnimation="True" MenuWindowType="Normal"&amp;gt;
                            &amp;lt;ItemStyle&amp;gt;
                                &amp;lt;Normal Font-Names="segoe ui,tahoma" Font-Size="8.25pt"&amp;gt;
                                &amp;lt;/Normal&amp;gt;
                                &amp;lt;Over BackColor="#FFE7A2" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid"
                                    BorderWidth="1px"&amp;gt;
                                &amp;lt;/Over&amp;gt;
                            &amp;lt;/ItemStyle&amp;gt;
                            &amp;lt;DisabledItemStyle&amp;gt;
                                &amp;lt;Normal Font-Names="segoe ui,tahoma" Font-Size="8.25pt" ForeColor="Silver"&amp;gt;
                                &amp;lt;/Normal&amp;gt;
                                &amp;lt;Over BackColor="WhiteSmoke" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid"
                                    BorderWidth="1px" ForeColor="Gray"&amp;gt;
                                &amp;lt;/Over&amp;gt;
                            &amp;lt;/DisabledItemStyle&amp;gt;
                            &amp;lt;CheckedItemStyle&amp;gt;
                                &amp;lt;Normal BackColor="#FFBD69" BorderColor="#FFAB3F" BorderStyle="Solid" BorderWidth="1px"&amp;gt;
                                &amp;lt;/Normal&amp;gt;
                                &amp;lt;Over BackColor="#FB8C3C" BorderColor="#FB8C3C" BorderStyle="Solid" BorderWidth="1px"&amp;gt;
                                &amp;lt;/Over&amp;gt;
                            &amp;lt;/CheckedItemStyle&amp;gt;
                            &amp;lt;FrameStyle BackColor="White" BorderColor="#6593CF" BorderStyle="Solid" BorderWidth="1px"&amp;gt;
                            &amp;lt;/FrameStyle&amp;gt;
                            &amp;lt;SeparatorStyle&amp;gt;
                                &amp;lt;BorderSettings&amp;gt;
                                    &amp;lt;Top Color="154, 198, 255" Style="solid" Width="1px" /&amp;gt;
                                &amp;lt;/BorderSettings&amp;gt;
                            &amp;lt;/SeparatorStyle&amp;gt;
                        &amp;lt;/MenuStyleSettings&amp;gt;
                    &amp;lt;/ISWebDesktop:WebToolBar&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>