Skip to main content

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 working for other file. The reason might be relative path.i.e. the path you copied is right but the new file that you created might be a at one level down in hierarchy so the same path is not going to work. Correct the path, you can do that by using '../' before the path if your dhtmlxcomponent library is one level up in the hierarchy from the specified path or may be '../../' for two level up and so on.

These are the two reasons I have faced yet relating to 'ReferenceError: dhtmlXGrid is not defined' error. 

Hope this helped you. If you find anymore reason please let me know so that I'll include it in my post and that might be helpful for someone.


Comments

  1. This section of our website is dedicated for Online Gujarati Typing .Here you can write in English and it will automatically get converted into Gujarati Language.

    ReplyDelete
  2. Boxers western wear and have a group of very much experienced individuals attempting to give a tasteful edge to the items they have faith in giving the right answer for the present style needs and they comprehend the necessities they host fancy dresses ideal for the gathering, easygoing trip or a normal office day.

    ReplyDelete
  3. Thank you for the solution. Sometimes tiny errors can make a huge impact. Nice informative post! Here is my blog where I share valuable information too, related to education and technology. Please visit this website to know the benefits of touch typing.

    ReplyDelete
  4. Voizac technologies developed Job board software. Via our job portal board software, companies/recruiters will be able to add/edit jobs on the platform by adding the specifics of the job and the skills required. Jobseekers can browse/search for jobs on the platform in several categories for ex location, experience, salary range, skills, experience etc. They will see details of the job, add to favourite and save search. Jobseeker will able to manage several cover letters within their profile and use any of them while applying for the job. Jobseekers can easily create or update their profile, CV’s by selecting the suitable format for ex PDF, Word, TXT, Excel. Administrator can activate, deactivate, edit and delete the information of any company/recruiters and Job seekers.PHP Job Script Solutions

    ReplyDelete
  5. Auditax are SMSF Auditing experts and provide superfund audit services to SMSF trustees and accountants throughout Australia.

    ReplyDelete
  6. The Stonemart" has been the corner stone of this unique mine to market online maretplace. The family owned business which has existed for more than 50 years has been supplying sandstone,china clay,quartz and other minerals wordwide 600x900 sandstone slabs

    ReplyDelete

Post a Comment

.

Popular posts from this blog

Create Table in Liquibase

For creating table using liquibase you can use below code and add it in your liquibase file. <createTable tableName=“employee”>      <column name="id" type="int">      <constraints primaryKey="true" nullable="false"/>   </column>      <column name="first_name" type="varchar(255)"/>   <column name="last_name" type="varchar(255)"/>   <column name="username" type="varchar(255)">      <constraints unique="true" nullable="false"/>   </column> </createTable> The use is pretty simple it's the way it looks : Tag: <createTable></createTable> This is an opening/ending tag for creating a table. These tags will enclose column sub tags which will define columns for the table. Attribute:   tableName : Name of the table which you want to create. (This is a mandatory  

How databasechangeloglock and databasechangelog table used by liquibase?

Liquibase takes care of executing the query on the database while maintaining the list of queries executed and also maintaining the locks over the tables simultaneously. The two tables that are used by the liquibase for this purpose are : Databasechangeloglock : This table have following columns ID | LOCKED| LOCKGRANTED | LOCKEDBY. This maintains the locks information granted to the user. The primary purpose of this table is to make sure that two machines don't attempt to modify the data at the same time. Databasechangelog : This table have following columns ID | AUTHOR | FILENAME | DATEEXECUTED | ORDEREXECUTED | EXECTYPE | MD5SUM | DESCRIPTION | COMMENTS | TAG | LIQUIBASE This table maintains the list of the statements that are executed on the database.