Skip to main content

Posts

Showing posts from May, 2013

Resolved : TypeError: dhtmlx.extend is not a function

TypeError: dhtmlx.extend is not a function I was working with dhtmlxDataView and created an individual application for testing my requirements. So, everything was working fine and was happy that my most of the work was done. Now it was time to integrate it with the project. When I included it, it started giving me  TypeError : dhtmlx.extend is not a function error and I had no idea what went wrong so now it was time to google it and start my quest for getting a solution. The most obvious way was to try it on the dhtmlx support forum but for some reason I do not get solutions for such answers. After searching for a while I got a hint and tried the solution and it worked. So here is the simple solution : The problem was happening because where I included my application already had other components of dhtmlx and in such case the order of the libraries included does matter a lot. So after trying few combinations with the order it started working. So that's it that's the solu

ReferenceError: dhtmlXGrid is not defined : Resolved

For the errors like : ReferenceError: dhtmlXDataView is not defined ReferenceError: dhtmlXGrid is not defined ReferenceError: dhtmlXTree is not defined ReferenceError: dhtmlXTreeGrid is not defined etc I have been working on dhtmlx for long time now and this is one of the most basic exception faced by the developer and which in fact is very easy to resolve. Reasons: 1. You are actually referring to a wrong location of the JS file.    - This is a very common mistake done and most of the time we are so damn sure that we don't even care about checking the path once. Even though you have copied it from your existing project where it is working, if you face this issue don't forget to check the path once, it won't harm you. 2. Check for relative path.    - So now you have copied it and paste it in your new file where you are going to use the dhtmlx component and when you open your file you get this error and it becomes frustrating knowing that same thing is wo

Hello World : Backbone.js

Firstly, a brief introduction about Backbone.js. Backbone.js is a very light weight javascript framework which allows you to organize your code in a MVC fashion. In conventional methods we use to keep on adding javascript code in the jsp or in separate js files at first this method looks simple and well organized but afterwards it's a pain to keep the code organized. Here backbone.js comes to rescue. It avoids all Javascript spaghetti and let you arrange your code in MVC fashion i.e. you have Model, View and Controller. Model : This basically let you retrieve the data and populates it. View : It's nothing but what you will be showing on GUI (Graphical User Interface). Controller : In this case it lets you save the state of the application via a hashback URL. We will have more information on the Controller in later post. For now, let's just concentrate on Hello world program. Backbone.js allows you to develop a single page application that means there is a singl