dojox.grid - Upgrade from Dojo 1.4 to 1.8 -


I am working on Dojo's migration from 1.4 to 1.8. I have a project in which there are some jeep pages in which the dojo is written and it takes the path of dojo from an XML file. I have changed the path to dojo 1.8 library from the dojo 1.4 library, but after doing this, the references of dojo widgets are throwing an error

for example dijit.byId ("idofwidget")

Error: dijit.byId ("idofwidget") Whether an object is empty or not.

Please guide to solve this problem and it will be better if steps are taken to upgrade the basics.

Thanks in advance

If you are actually going to upgrade to Dojo 1.8 , You will have to type your code again in the AMD, for example:

  // Load the required modules (["dijit / registry ", Dojo / Ready", "Dojo / Parser"], Function (Registry, Ready) {Wait until the dome ends + Widgets are generated on the page (function () {// Widget instance registry. Recovering D ( "idofwidget");});});   

One important thing to know is that you do not upgrade dojo, then you migrate it (at least when using pre-and post-17). Usually it involves that you can not simply change the dojo library, but you have to migrate your code too.

For example, there are some articles about the migration of pre-1.7 to 1.7.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -