jeudi 18 juin 2015

DOJO : Not able to initialize the js Using New Keyword

I have a link, if i click the link i need to call another Js using new keyword like below.

<a style="padding: 2px 15px" data-dojo-attach-event="click:display">Form</a>

display : function(){
new com.cn.clb.dr.mytasks.BrandForm({
            formInfo: brandForm,
            brand: brandName
        }, formPlacer).initialize();
}

Here very first time(1st time page loading) above js called perfectly, After that, i was clicked the link the above js is not called.

In the JS i have included both postcreate() and initialize().

Please tell me how to call the js.

Aucun commentaire:

Enregistrer un commentaire