Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
$.ig.loader with igDialog as a resource - still can't reference object
posted

I have some global code running in an MVC application but I cannot guarantee that the igDialog resource has been loaded for all views.  So I am using the igLoader to pass in the resource so the framework loads that dependency.  The code below is what I am executing but when it reaches that point, I receive this error:

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'igDialog'

$.ig.loader("igDialog", function () {
   
$("#" + dialogId).igDialog({
       
state: "opened",
       
headerText: "",
       
height: "500px",
       
width: "450px",
       
modal: true,
       
draggable: false,
       
resizable: false
   
});
});

What am I doing wrong?  Looking at Fiddler, I do not see the resource loading.

Parents
No Data
Reply Children