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

possible bug with firefox 10.2 ???

2 Answers 19 Views
Window
This is a migrated thread and some comments may be shown as answers.
aykut
Top achievements
Rank 1
aykut asked on 04 Mar 2012, 03:42 PM
Dear friends,

I need help about radwindows. The code in attahed files worked for months until firefox 10.2 update. It is still working with ms internet explorer.

Issue is about web page -> open modal radwindow -> open another modal radwindow

I isolated the problem and added necessary information on pages. As I cannot attach rar files to message, I gave a link. Sorry for that. Also this problem is about multiple web pages, so I did not write code here in this message. Sorry about that.

I tried 2011q4 and 2012q1 telerik versions. aslo I tried 2012q1 hotfix228

Can you confirm this as a bug ? If so, is it about telerik or about firefox ? Can I do something to make this code work ?

www.karina-mira.org/test.rar

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 06 Mar 2012, 12:34 PM
Hi Aykut,

Please change the onmousedown with onclick. The mouseup changes the focus and thus may cause issues. I believe that there has been some change in FireFox related to focusing elements after mouse events, yet I cannot confirm this with 100% certainty. Also, when opening a RadWindow from a Radwindow you only need to set a small timeout when calling radopen() or show(), you do not need setActive() in this case. This is shown in this help article.

This means that I suggest you change the following lines:
in AdminUrunler.aspx:
function OpenWindowBigPicture(s)
{
    setTimeout(function ()
    {
        var wnd = window.radopen('BigPicture.aspx?im=' + s, null);
        wnd.setSize(650, 500);
    }, 0);
    return false;
}

and in ProductDetails.aspx
<div style="cursor: pointer; white-space: nowrap;" onclick="javascript:window.parent.OpenWindowBigPicture('0C67EF7C61FF4785BA1F16A231981C84.jpg');">
                                           <table>
. . . . . .

Similarly, you can replace the other onmousedown handlers with onclick, as it is a more reliable event.

Once I did this things were working properly with me (a screenshot is attached, as well as the two modified pages).


Kind regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
aykut
Top achievements
Rank 1
answered on 07 Mar 2012, 10:38 PM
great... thanks for your solution. it works.

have a nice day.
Tags
Window
Asked by
aykut
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
aykut
Top achievements
Rank 1
Share this question
or