Login Register

declarative

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

Problem with OnClick function in programmatic buttons

I have created several programmatic buttons but cannot get their respective onClick functions to fire.

In the example below, the onClick works fine if the button is created declaratively in the markup, but it returns "this.OnClick is not a function" when the button is created programmatically in javascript.

This works...

<button dojotype="dijit.form.Button"
    id="Clear_Form"
    jsid="Clear_Form"
    label="Clear Form"
    onclick="clearForm()">

</button>

But for some reason this does not...


var doc = document;

How do I get a ref to a store I declaratively instantiated??? byJsId, byId, byFunction, byMagic???


function init()
{	
    // how do you get a ref to the paletteStore here?
}

dojo.addOnLoad(init);





Is it possible to use declarative markup in a template made of just dojo widgets and get it parsed?

Is it possible to use declarative markup in a template that is just constructed of dojo widgets. I've found dojo.parse.parser(element); that will scan all the child contents of the that domNode and create the widgets but it doesn't work if the element passed is itself a widget? Any suggestions? Trying to use just dojo widgets and not apply anything but positioning to them to take advantage of all the support built into them.


// template file source

Syndicate content