This is a migrated thread and some comments may be shown as answers.

RadConfirm problem Firefox 5.0

3 Answers 50 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pardon Jonathan
Top achievements
Rank 1
Pardon Jonathan asked on 02 Aug 2011, 12:47 PM
I'm using RadConfirm on a linkbutton to confirm a delete action. Since firefox 5.0 the button doesnt seem to continue the delete event untill i click it a second time. So first it shows the confirm, if I click ok, it does nothing untill i the linkbutton again. On older versions of firefox (havent tested 4.0) , IE or safari no problem..

I'm using the 2010 Q3 release.

I took the telerik examples and changed the button in the example into a linkbutton and noticed that it also stopped working on firefox 5.0.
Is there a workaround for this problem?

Thanks
Jonathan

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Aug 2011, 01:38 PM
Hello Jonathan,

I would like to note first that you are using a version of our controls that has been released before the browser you are using, so some issues may arise between them due to some changes in the browser behavior.

I am not sure for the way you are trying to confirm the click (postback), but I can assume that you are using the following CL article: http://www.telerik.com/community/code-library/aspnet-ajax/window/block-the-execution-thread-with-radconfirm.aspx. Please note that this approach is outdated and has been developed for older framework and controls versions that are no longer supported. Therefore I would recommend that you examine the approach illustrated in this post that is more recent and is the way I currently recommend to confirm such clicks: http://www.telerik.com/community/code-library/aspnet-ajax/window/block-the-execution-thread-with-radconfirm.aspx#1701380.


Kind regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Pardon Jonathan
Top achievements
Rank 1
answered on 05 Aug 2011, 09:39 AM
Thanks Marin,

Your right about the old version, we are about to renew our lincense.  But still, the thought that I have to update all the websites I'm using the radconfirm in, is a bit scary! Browser behaviour changes are no fun !
I prefer updating the javascript above updating the telerik components, less time taking.

The javascript code i originally used is exactly the same as the one that is still present in the online demo's, think it would be best if this is reviewed?

The problem is solved with the code you provided, I just had to change it a bit so it works for linkbuttons inside a web user control.

<script type="text/javascript">
<!--
    function blockConfirm(message,windowtitle, clickedButton) {
        function confirmHandler(args) {
            if (args == true) {               
                __doPostBack(clickedButton.id.replace(/_/g, '$'), "");
            }
        }
        radconfirm(message, confirmHandler, 250, 100, null, windowtitle)
 
        return false;
    }
     
//-->
</script>

Kind regards,
Jonathan


0
Marin Bratanov
Telerik team
answered on 05 Aug 2011, 04:13 PM
Hi Jonathan,

I am glad to hear that you managed to get this functionality working :)

I agree with you that browser changes tend to take us a lot of time, yet they seem inevitable nowadays. You are also correct that the onilne demo is outdated and this will be fixed with the Q2 2011 SP1 release.


All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Pardon Jonathan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Pardon Jonathan
Top achievements
Rank 1
Share this question
or