Jul 12, 2010, 8:14 AM
[CLOSED] [1.0] Bug in IE 8 while loading/rendering dynamic panels using eval js function
hi,
I create a set of panels through DirectMethod call then on success I iterate through the panels and eval them one by one.
this approach work 95% in FireFox "rendering done just fine but few times its not render". in IE 8 only 10% this approach work otherwise some panels rendered and some not!!!
Please help me enhance the execution of the panels rendering "is there alternative for eval".
note: the actual code is copy-righted and can't be exposed...so i provided the major bits of it with dummy names.
example:
dynamic panel A: "Rendered fine with all children".
child dynamic panel 1.
child dynamic panel 2.
child dynamic panel 3.
dynamic panel B: "Rendered fine but WITHOUT children"
child dynamic panel 1.
child dynamic panel 2.
dynamic panel C: "Rendered fine but WITHOUT children"
child dynamic panel 1.
child dynamic panel 2.
child dynamic panel 3.
child dynamic panel 4.
in the given example it happen that even the first panel "A" children not get rendered...so why FF able to handle this complexity while IE goes nuts...
I create a set of panels through DirectMethod call then on success I iterate through the panels and eval them one by one.
this approach work 95% in FireFox "rendering done just fine but few times its not render". in IE 8 only 10% this approach work otherwise some panels rendered and some not!!!
Please help me enhance the execution of the panels rendering "is there alternative for eval".
note: the actual code is copy-righted and can't be exposed...so i provided the major bits of it with dummy names.
/*C#*/
[DirectMethod]
public static List<string> CreateDynamicPanels(long Id)
{
var resutls = new List<string>();
var currentObj = GetCurrentObj(Id);
foreach (var s in currentObj .Items)
{
/*CreatePanel is static method that create new panel with url...autloload params....nothing special AND RETURN TYPE is panel*/
resutls.Add(CreatePanel(s.Code, s.Name, Id).ToScript(RenderMode.AddTo,
"pnlContainers", true));
}
return resutls;
}
/*JS*/
/*Note: on success of calling the directMethod above i do the following to execute the DirectMethod Json Response*/
for (var i = 0; i < results.length; i++) {
eval(results[i]);
}
Important Remark: in the actual code each one of the dynamic created panels after being loaded...automatically I fire blur event that cause a creation of child dynamic panels just like the ones shown above...and IE browser stuck in rendering those child panels.example:
dynamic panel A: "Rendered fine with all children".
child dynamic panel 1.
child dynamic panel 2.
child dynamic panel 3.
dynamic panel B: "Rendered fine but WITHOUT children"
child dynamic panel 1.
child dynamic panel 2.
dynamic panel C: "Rendered fine but WITHOUT children"
child dynamic panel 1.
child dynamic panel 2.
child dynamic panel 3.
child dynamic panel 4.
in the given example it happen that even the first panel "A" children not get rendered...so why FF able to handle this complexity while IE goes nuts...
Last edited by geoffrey.mcgill; Jul 20, 2010 at 6:19 AM.