javascript-error in dialog

Jun 26, 2009 at 11:12 AM
Edited Jun 26, 2009 at 11:13 AM

 If the dialog is in an Usercontrol which is invisible then there is an javascript-error because $.ui.dialog.defaults  is undefined.
A try/catch solves the problem in file: DNA.JQuery\Dialog\Dialog.cs

  927       protected override void OnInit(EventArgs e)

  928         {

  929             if (!DesignMode)

  930             {

  931                 if (Context.Request.Browser.Browser == "IE")

  932                 {

  933                     if (Context.Request.Browser.MajorVersion < 8)

  934                     {

  935                         this.BgiFrame = true;

 

 

  936          ClientScriptManager.RegisterDocumentReadyScript(this
                  "try{$.ui.dialog.defaults.bgiframe = true;}catch(err){}");

 

  937                     }

  938                 }

  939 

  940                 if (BgiFrame)

  941                     ClientScriptManager.AddCompositeScript(this, "jQuery.plugins.bgiframe.js", "jQuery");

  942             }

  943             base.OnInit(e);

  944         }

<!--EndFragment-->

Coordinator
Jun 27, 2009 at 7:25 PM

I am tracking this issue i will find the answer soon.

Jun 27, 2009 at 7:33 PM

Cool, thanks for your help.

Chris