﻿<?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 - WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</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>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Thu, 05 May 2011 04:57:43 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I have good news regarding work item #975.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The WebDesktop development team has managed to fix the issue. A nightly-build hotfix is ready to be tested. Should anyone would like to test the nightly-build, please kindly let us know so that we can process your request further.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Mon, 02 May 2011 22:41:05 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I apologize for any inconvenience this problem may have caused you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The WebDesktop development team has agree to fix this minor glitch. A work item, &lt;strong&gt;#975&lt;/strong&gt;, has been submitted regarding this behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’ll keep the information updated when I heard any news from the team regarding work item #975. Thank you for the valuable feedback.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Mon, 02 May 2011 12:38:54 GMT</pubDate><dc:creator>huzzy143</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;Though you dont except this as Bug. I think it is a Bug.&lt;/p&gt;
&lt;p&gt;Why should i have to introduce a new control and then on the click event of the confirm button i have to write my Delete Logic? You are just &lt;strong&gt;catching&lt;/strong&gt; the &lt;strong&gt;ear&lt;/strong&gt; from the &lt;strong&gt;other way round.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have wrtten all my Logic on Command Click of toolbar, now just for Delete i have to introduce a new control and code behind the new control click. This should have been simple.&lt;/p&gt;
&lt;p&gt;This is not what is expected. It should allow to verify from ClientSide code first. If the returned value is true then only server side code should be run.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Mon, 02 May 2011 03:36:12 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’m afraid that this is not considered as bug. It is the default behavior of the control.&lt;br /&gt;Please try to follow the workaround as offered by Glenn Layaar in the following &lt;a href="http://www.intersoftpt.com/Community/WebDesktop/Confirmation-before-postback/"&gt;thread&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Fri, 29 Apr 2011 14:32:42 GMT</pubDate><dc:creator>huzzy143</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;When is intersoft planning to fix this BUG??&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Mon, 05 Apr 2010 09:15:49 GMT</pubDate><dc:creator>dragon</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;Thanks for your reply. I am trying a workaround for this. Though it has become a lot hard to do so for the easy task. I hope in future this feature will be available.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Thu, 25 Mar 2010 22:44:47 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;My test show that using return false during client side command click, we will not be able to cancel the postback click event handler in the WebToolBar.&lt;/p&gt;&lt;p&gt;A workaround, as posted in this &lt;a target="_blank" href="../Confirmation-before-postback/"&gt;thread&lt;/a&gt;, is using a WebDialogBox to handle the confirmation.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebDesktopToolbar - Javascript confirm dialog on click</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktopToolbar---Javascript-confirm-dialog-on-click/</link><pubDate>Thu, 25 Mar 2010 08:06:01 GMT</pubDate><dc:creator>dragon</dc:creator><category>WebDesktop</category><category>Toolbar</category><category>Event</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have a delete button in my toolbar, i also have a server side and a client side event for the button.&lt;/p&gt;
&lt;p&gt;The button is also allowed to do AutoPostBack.&lt;/p&gt;
&lt;p&gt;Now, what i want is when the user click the delete button, it will call the client side event and there i will open a javascript confirmation. If user cancels the confirmation, then nothing will happen (no post back will happen/no server side event execution), otherwise the server side event will be executed.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I want to give an Asp.net version of the task that i am trying.&lt;/p&gt;&lt;pre&gt;&amp;lt;asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="Delete_Click" OnClientClick="return confirm('Are you sure that you want to delete?');" /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But the problem i face is when i set AutoPostBack = Yes, then clicking the button fires both server side and client side event altogether. without waiting for the confirmation box, the page postbacks. I tried to stop the postback by putting a javascript alert inside the client side event, but still post back happens, ignoirng the alert. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So my question is, is it possible to cancel the serverside event from the clientside event for toolbar.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please help me on this. Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>