0

I've seen other posts about getting javascript to load in a dojo contentpane by using the dojox extension. However, I can't seem to get this to work in my scenario.

To make it easy to replicate, I'm using the example app here: http://demos.dojotoolkit.org/demos/parserAutoRequire/

Basically I just want to be able to run javascript in one of the loaded tabs (divs). I've tried changing dijit to dojox everywhere a contentpane is referenced by this isn't working and has been driving me mad...apart from this it's all working great!!

Any suggestions will be greatfully recieved!!!

  • Have you tried setting the [executeScripts](http://dojotoolkit.org/api/#1_10dojox_layout_ContentPane_executeScripts) property to true? – undefined May 11 '15 at 18:45
  • Yes, my understanding is that executeScripts is deaulted to true in a dojox contentpane, but I tried that as well just in case but still didn't work. – Nick Harris May 12 '15 at 10:21

1 Answers1

0

You should try getting an object of content pane in javascript and then executing the code on that object.

dijit.byId("ContentPaneId") 

should return you the object to your content pane.

Tarang
  • 318
  • 1
  • 10
  • Hi Tarang.. thanks, I'll give that a try this evening and feed back results. Does that remove the need to use dojox instead of dijit for contentpane? – Nick Harris May 12 '15 at 10:20
  • I would suggest you to use dojox.layout.contentpane only. I have used the same in some of my previous work. – Tarang May 26 '15 at 17:03