Login Register

scriptScope

CSS via dynamically inserted <link> in parent LayoutContainer -- ContentPane problem -- am I doomed?

Hi there.

I wonder if I am working against dojo's scriptScope but I am unsure. The (simplified) document is:

<head>
   <link> <!-- stylsheet for current 'page' -->
</head>
   <!-- menu items here -->

   <!-- AJAX loaded html fragments go in this: -->
   <div dojoType="dijit.layout.LayoutContainer">
      <div dojoType="dijit.layout.ContentPane" id="clientPage" layoutAlign="client"></div>
   </div>

Replacement for scriptScope from .4?

How do I transform the following code to work with 1.0 in the absence of scriptScope?

The following is loaded from a Dialog/ContentPane:

this.testMe = function () {
	console.log('got here');
};

Test

..in other words, how do I reference functions inside my ContentPane/Dialog?

Thanks!

Syndicate content