Login Register

Declarative Instantiation Problem With IE

This works for FF but I can't get it to work in IE. The my.DialogContent widget is dropped into my.Dialog using my.Dialog.setHref(). It instantiates correctly creating the widget and its components and runs their declarative scripts but doesn't run the top ones I've put in the code block below. Any help would be greatly appreciated. Thanks :)

PS. The init method that is not being overwritten below is invoked in my.DialogContent postCreate

Ignore the fact I took out the < and > brackets below wasn't showing the code block when I left them in

div dojoType="my.DialogContent"

  script type="dojo/method" method="postMixInProperties"
    alert("just a test... why not???");
  /script

  script type="dojo/method" method="init"
    
    var dialogContainer = this.container;
    alert("please oh please run this");
	
    // overwrite my.DialogContent method
    this.confirmOnClick = function() 
    { 
      alert("key to my success");	
    }

  /script

  some other declarative widgets instantiated

/div

Okay it's solved in IE you

Okay it's solved in IE you need to have some kind of content before the script tags like

"Required to parse in IE"

or

div style="display:none;"
    Required to parse in IE 
/div

I put in a div with the display set to none otherwise it shows up when rendered and if you this.setContent it overwrites the content already in the containerNode... This should probably be documented or fixed.