dojo

Does Dojo Framework have the version set in it somewhere?

I have a copy of Dojo framework but i am not sure which version it is. How can you tell? Surely it must be set as a value in it somewhere. My downloaded folder looks like this: dojo\ dijit\ dojo\ dojox\ util\ ...

JavaScript/Dojo Module Pattern - how to debug?

I'm working with Dojo and using the "Module Pattern" as described in Mastering Dojo. So far as I can see this pattern is a general, and widely used, JavaScript pattern. My question is: How do we debug our modules? So far I've not been able to persuade Firebug to show me the source of my module. Firebug seems to show only the dojo eval s...

Dojo script (fx.xd.js) not working IE

Hi folks, I've been teaching myself Dojo over the last few days... However, if you look at the following page: http://www.mechanic-one.suburban-glory.com/ You'll see that the simple script in the header doesn't work in IE I get the following message: Message: 'duration' is null or not an object Line: 8 Char: 622 Code: 0 URI: htt p:...

dojo connect mouseover and mouseout

When setting up dojo connections to onmouseover and onmouseout, and then adding content on mouseover, dojo fires the onmouseout event at once, since there is new content. Example: dojo.query(".star").parent().connect("onmouseover", function() { dojo.query("span", this).addContent("<img src='star-hover.jpg'>"); }).connect("onmouseout...

How to make a composite Zend Form Element that includes a Dojo Field

I used the zendcast video to get me this far. The form is properly displayed. However, I need to change the display order box into a number box of zend dojo type. I cannot figure it out. Even help with examples would be great. <?php class My_View_Helper_CategoryDetailElement extends Zend_View_Helper_FormElement { protected $html ...

Some input regarding Dojo (smooth css change on mouseover)

I've been playing around with Dojo over the last couple of days. The script below changes the background position of the list item when the mouse is over the link. dojo.query('a[class=main-menu-link]').forEach(function(linkTwo) { dojo.connect(linkTwo, "onmouseover", function(evt) { dojo.query('#main-menu ul li').forEach(function(lin...

Ajax backed List/Menu

Hi all, I am developing a web application using Spring JS and Dojo Toolkit. In this application I want a Menu that lists the different organzational units in my application. The users will be able to add/remove these units and I want the menu to immediately reflect those changes. Example: My user adds an new organizational unit "Strat...

dijit.form.FilteringSelectinitial initial value always null.

I'm using QueryReadStore as data and displaying the widget using the declarative way. My store looks like this: <div style="display:none" jsId="role_store" url="some/url/here" requestMethod="post" dojoType="dojox.data.QueryReadStore"></div> My widget is like this: <input dojoType="dijit.form.FilteringSelect" id="role_id" ...

How to control dojo widget classes, or how to get fine-grained control of style

I am creating a UI with dojo that is emulting some aspects of an existing thick client application. I need to programatically put two different menu bars on the same page. I have successfully created the two menu bars using new dijit.Menu(); new dijit.MenuItem(); and so on. Now I want to give them slightly different presentation style...

Dojo Tooltips missing the mark sometimes

Hi everyone, I'm using tooltips for icons that are displayed in a dijit.Dialog. Sometimes they work just fine, but other times they get placed around 25 to 50 pixels further away from the target than they should be. I can't see any pattern to when this happens. Any ideas on why the screen placement would be varying in this way? Thanks,...

Dojo DataGrid, programmatic creation

I'm trying to create a DataGrid dynamically. Declarative creation is working fine: A source of data: <span dojoType="dojo.data.ItemFileReadStore" jsId="theStore" url="dataonly001.json"> </span> a simple layout: <script type="text/javascript" > var layout = [ { field: 'custId', name: 'Id', ...

Is there a dojo enhanced grid example with context menu

I am looking for an example of a dojo enhanced grid that contains a context menu on either a cell or row menu where the cell or row data is accessed. I have managed to create an enhanced grid with a row context menu. I can create a function that captures the event of clicking on the row menu item. However, I am not sure how to access ...

dojo.event.topic.publish("show_detail");

hello, I am beginner if dojo and can't understand following line of code in dojo dojo.event.topic.publish("show_detail"); ...

Dojo or flex with Grails?

Hi, I plan to build a database management system using Grails as the main framework. On the client side, I'm thinking whether to use dojo or flex to make a nice front end. Could some experts here enlighten me on the pros and cons of choosing either, or both? or any other options? thanks! ...

Dojo Widget need event when everything is "ready"

Hi, i have an custom widget in dojo. My Problem is to check some kind of access rules wich are passed to the widget. if check the rules after the widget is fully loaded everything works fine. But i have to remove some text and buttons before it is displayed. I've tryted the startup, and postcreate hook (-: is there something like "aft...

Dojo Data grid with custom HTTP headers

I have DataGrid that connects to REST service. I need to pass some custom HTTP headers (Authorization and others) to fetch operation. How can I do that? Data store is JsonRestStore. ...

Is there a problem with datetimepicker in struts 2 dojo plugins

sx:datetimepicker id="sDate" label="Date de debut" displayFormat="yyyy-MM-dd" weekStartsOn="0" required="true" valueNotifyTopics="/sDateValue" startDate="testdate2" /> I tried to add a limitation of date and when i set the first date posible nothing works anymore. If you chose a date it is not selected. ...

How do I handle dojo datagrid cell updates so I can post them back automatically to the server?

I am using dojo datagrid to display my data. When the end user edit the cell values it should be updated in the server using ajax calls(when the focus goes out of the cell). Else, I should have a Edit & update/cancel buttons for each row to handle the same feature. But I don know how to place edit & update buttons inside the grid and ...

What kind of library to use for display of graphical objects and right click context menus

Hi all, Goal: To develop a web based NMS interface which displays a network topology (e.g., switches, routers, links, endhosts). Each node should be 'movable' (draggable to an appropriate place manually or their best location computed algorithmically). I should be able to zoom into the network graph (say if there are many clusters of ...

Filter Datagrid onLoad

My data grid successfully filters when I select a month from a dropdown list, however when I try to filter it onLoad it just doesn't filter. The dropdown successfully displays the current month, and the grid should also show the current month data. <script type="text/javascript"> dojo.require("dojox.grid.DataGrid"); doj...