dojo

How can I connect GWT to CometD/Bayeux events?

I've got a GWT application, which periodically needs to update the screen with new tick items as they come in. We also have messages published by a CometD/Bayeux server (for a different AJAX application) and I'd like to consume them in my GWT. Of course, I can drop into JavaScript, hook up Dojo, and receive callbacks in the JavaScript ...

dojox.layout.ContentPane

The followig code is inside a tag script in the head of a JSP. I wanted to emulate this behaviour http://dante.dojotoolkit.org/static/xd/stack-accordion.html. The main differences from that sample are: 1) I use e Tree to navigate contents in the StackContainer; 2) Content are handled by dojoX.Layout.ContenPane beacuse I want to load so...

Getting Enter key to submit a dojo.form

I have a form element I want to use in many forms, a standard submit button. <div dojoType='dijit.form.Button' type='submit' iconClass='dijitEditorIcon dijitEditorIconRedo' style='float:left;margin:0 2px 00;padding:0;' onClick=\"filter{$this->_grid->getId()}(); return false;\">Refresh </div> Current, this submit buttons ...

Is dojo 1.3 and 1.4 compatible with IE?

Examples found in the dojo documentation won't load in IE. Such as: http://docs.dojocampus.org/dijit/Calendar I've tried it in IE7, IE8, and quirks mode. Is this problem merely in how they've implemented their documentation? Or are the new dojo frameworks incompatible with IE? ...

Generically Replace Loading Message for a dijit ContentPane

I want to replace the standard dijit.ContentPane loadingMessage with a animated GIF instead of the default "Loading..." message. According to documentation, the default message is: <span class='dijitContentPaneLoading'>${loadingState}</span> So I have overridden the CSS with: .dijitContentPaneLoading { background-image: url('../...

deleting multiple nodes in dojo.fadeOut onEnd

I'm trying to remove multiple nodes specified by checkboxes after a dojo fadeout. The nodes are simple HTML tr elements. There is an onclick event on a button that executes the below. var tbody = dojo11.byId("resultBody1"); for (var k=0; k < selections.length; k++) { var temp = selections[k]; dojo11.fadeOut( { ...

Value of dojox.CheckedMultiSelect not being posted with dojo.xhrPost

When I post a form using dojo.xhrPost, I get all the fields in my form POSTed except for the value of my dojox.CheckedMultiSelect, no matter what options are selected. The declaration of my CheckedMultiSelect: <div dojoType="dojo.data.ItemFileReadStore" jsId="processTypeList" url="json/processtypelist.json.php"></div> <label for="proce...

Struts2 and Dojo (double?) publish

I am publishing with dojo topics: dojo.event.topic.publish("publishThisTarget"); And in JSP I have listenTopics: <s:url var="url2publish" action="MyAction" namespace="/public" /> <sx:div showLoadingText="false" indicator="ajaxIndicator" id="content" href="%{url2publish}" theme="ajax" listenTopics="publishThisTarget" preload="fal...

dojo and google closure compiler

I noticed that dojo 1.4.0 support google compiler in simple mode, will it eventually support advance mode anytime soon??? ...

handling mouseover/mouseout events for dijit.TitlePane's titleNode

I have a lot of dijit.TitlePanes stacked up one after another. I wish to handle the onmouseover and onmouseout events for the tile part of the TitlePane. What is the correct way of doing this? Will something like : dojo.connect(titlePane.titleNode, 'onmouseover', function f() {}); work, where titlePane is a reference to some dijit.T...

Dojo 1.4 - IE 8 dojox.charting label not shown -> dojox.gfx

Hey guys, I have a problem concerning dojox.charting, after updating to the new version of dojo IE 8 doesn't show the labels of my charts anymore. Seems to be a dojox.gfx text problem. See with IE8: http://download.dojotoolkit.org/release-1.4.0/dojo-release-1.4.0/dojox/gfx/tests/test_text.html Any idea how to fix that? Cheers -jstr ...

Dojo 1.4 - <a href> in dojox.grid.DataGrid's cell behaves differently from Dojo 1.3's

In Dojo 1.3 I was able to populate dojox.grid.DataGrid's cell with an <a href> HTML element (e.g. <a href='/test?id=xxx'>xxx</a>) and the (clickable) html link would then be shown. Dojo 1.4 breaks(?) this behaviour and the literal string is shown (not a link). How can I achieve the same behaviour in Dojo 1.4? ...

Accessing dojox.grid.DataGrid cells by name instead of index

I have a menu of checkbox menu table column names and would like the checking/unchecking of the column name to result in the table column being hidden or shown. I would like to be able to get the column to change via it's cell.name property rather than it's index. Currently, I am accomplishing this by generating an associative array o...

How can I load my own js module with goog.provide and goog.require?

We are trying to switch the packaging for our project from dojo to google closure, but we haven't had any luck so far. Here is a simple example that illustrates what we are trying to accomplish: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="runtime/src/core/lib/goog-rev26/base.js"></scr...

dijit Form toJson returns empty object for dijit.form.DateTextBox

Running the following code: dojo.toJson(formSearch.attr("value")); Appears to not serialize the value of dijit.form.DateTextBox controls. Looking in Firebug, I can see that formSearch.attr("value")) returns the appropriate DOM object that contains the value that the control is set to, but when I try to serialize it, I get something l...

Dojo on a CDN vs own install

I use quite a lot of Dojo, but to date I've only used if by including from a CDN such as AOL/Google. Are there advantages to hosting a copy of Dojo rather than using it via a CDN? I don't have much need to alter the code base, but I imagine there are other advantages/disadvantages? ...

How to locally test cross-domain builds?

Using the dojo toolkit, what is the proper way of locally testing code that will be executed as cross-domain, without making the actual build? As it appears, there are three possible options (each, with their own drawbacks): Using local (non xd) XMLHttpRequest dojo.require This option does not really test the xd behavior, since it do...

dijit.Dialog not showing up in some environments

Hi All Using dojo version 1.3. I have an annoying problem with a dijit Dialog. In my development environment it works fine, but in my test and production environments the Dialog is simply not showing up. The background is disabled/greyed-out but the Dialog cannot be seen? Other dijit stuff such as TooltipDialog works fine. Dojo/Diji...

dojo newbie read json response from web service

i have a webservice that is returning this response : <string xmlns="http://tempuri.org/"&gt;{ "H...[ { "ID":"1","Name":"Test"} ]}</string> when i try to get the response back, i keep getting the error : "missing ; before statement" i am just starting to get into this so am probably doing something very wrong. why is the response n...

dojo newbie read json response from web service

i have a webservice that is returning this response : <string xmlns="http://tempuri.org/"&gt;{ "Head":[ { "ID":"1","Name":"David"} ]}</string> when i try to get the response back, i keep getting the error : "missing ; before statement" i am just starting to get into this so am probably doing something very wrong. why is the respons...