Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Dojo Interview Questions and Answers

Experienced / Expert level questions & answers

Ques 1. Tell us about Environment-Specific Libraries in Dojo.

Libraries provides routines for handling the environment
Consist of svg, html, style and dom packages 
Provides some methods for arrange HTML document
There is also methods for handling DOM trees and SVG models
Those routines extend existing routines

Is it helpful? Add Comment View Comments
 

Ques 2. What are Application Support Libraries in Dojo?

Consist of the most interesting routines
IO package provides routines e.g. for AJAX binding
DND package provides routines for drag-and-drop operations
There is also some useful routines in logging, storage and animation packages

Is it helpful? Add Comment View Comments
 

Ques 3. What are the disadvantages of Dojo?

  • Even if Dojo is nice, beautiful etc, it is quite heavy
  • The documentation is still quite narrow
  • Needs much network
  • Developer depends on the browser support for the Dojo
  • There is no way to hide the Dojo code in case of commercial application

Is it helpful? Add Comment View Comments
 

Ques 4. Example of Tree in Dojo Framework.

The tree is a GUI that helps to lists the hierarchical lists. The tree widget is a simple but the real power comes in the data. It represents the hierarchical structure of tree. Data is fed by the powerful dojo.dataAPI.

There are following steps for creating Dojo trees :

  • Create a rooted or rootless trees (forests)
  • Nest, each branch is independently expandible
  • Different icons for different leaf or branch classes
  • Tree data are stored in any dojo.data implementing API.
  • Events fire when users clicked on it.
  • Add, remove or disable nodes of tree.
<html>
<title>Tree</title>
<head>

  <style type="text/css">
  @import "../resources/dojo.css";
  @import "../dijit/themes/tundra/tundra.css";
  </style>

  <script type="text/javascript" src="dojo.xd.js"
djConfig="parseOnLoad: true"></script>

  <script>
  dojo.require("dojo.data.ItemFileReadStore");
  dojo.require("dijit.Tree");
  dojo.require("dojo.parser");
 </script>

</head>
<body class="tundra">
Simple Tree:<br><br>
  <div dojoType="dojo.data.ItemFileReadStore"
 url="tree.txt" jsid="popStore" />
  <div dojoType="dijit.Tree" store="popStore" 
labelAttr="sname" label="Tree"></div>
</body>
</html>

tree.txt file contains:
{ label: 'name',
identifier: 'name',
items: [
{ name:'Students', type:'cat',
children: [
{ name:'Vinod', type:'st' },
{ name:'Suman', type:'st' },
{ name:'Deepak', type:'st' }
]}

Is it helpful? Add Comment View Comments
 

Ques 5. Example on Color Picker in Dojo framework.

The dojox.widget.ColorPicker widget that allows user to select a color (in hexa format). This is a form component. We can add this component on the form to our requirement.
<html>
<head>
<title>Color Picker Example</title>

  <style type="text/css">
  @import "../dijit/themes/soria/soria.css";
  @import "/resources/dojo.css";
  @import "../dojox/widget/ColorPicker/ColorPicker.css";

  </style>

  <script type="text/javascript" src="dojo.js" djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">
  dojo.require("dojox.widget.ColorPicker");
  dojo.require("dojo.parser");
  
  </script>
</head>

<body class="soria">
  <b>Please select the color:</b>
  <div id="colorPicker" dojoType="dojox.widget.ColorPicker"></div>

</body>
</html>

Is it helpful? Add Comment View Comments
 

Ques 6. Example on Drag and Drop in Dojo framework.

This is a technique of dragging an item. Click an object or specific item that have to be dragged and dropped,  you hold down the mouse button and drag the object to the suitable destination.
<html>
  <head>
  <title>Dojo Drag and Drop Example</title>

  <script type="text/javascript" src="dojo.js" djConfig="parseOnLoad: true">
  </script>
  <script type="text/javascript"> 
  dojo.require("dojo.dnd.source");
  dojo.require("dojo.parser"); 
  </script>
  </head>
<body>

  <h1>Drag and Drop</h1>
  <table border="1" cellpadding="0" cellspacing="0">
  <tr>
  <td valign="top">
  <!-- Source -->
  <div dojoType="dojo.dnd.Source" jsId="sourceData" class="source">
  <b style="background-color:#999999 ">Source Data</b>
  <div class="dojoDndItem" dndType="Arindam">
  <div>Arindam</div>
  </div>
  <div class="dojoDndItem" dndType="Sumana">
  <div>Sumana</div>
  </div>
  <div class="dojoDndItem" dndType="Arunita">
  <div>Arunita</div>
  </div>
  </div>
  </td>
  <td valign="top">
  <!-- Target -->
  <div dojoType="dojo.dnd.Target" jsId="targetData" class="target" 
accept="Arindam,Sumana,Arunita">
  <b style="background-color:#999999; ">Target Data</b>
  </div>
  </td>
  </tr>
  </table>

</body>
</html>

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

PHP interview questions and answers - Total 27 questions
jQuery interview questions and answers - Total 22 questions
React interview questions and answers - Total 40 questions
Dojo interview questions and answers - Total 23 questions
Ajax interview questions and answers - Total 58 questions
ASP interview questions and answers - Total 82 questions
Angular interview questions and answers - Total 50 questions
Oracle JET(OJET) interview questions and answers - Total 54 questions
ExtJS interview questions and answers - Total 50 questions
Angular JS interview questions and answers - Total 21 questions
JavaScript interview questions and answers - Total 59 questions
©2023 WithoutBook