I have a dojox.grid.DataGrid, and one of the columns has date data in it. e.g.
09:01:00 18/10/2010
09:03:00 18/10/2010
09:02:00 19/10/2010
When I click the heading and sort the column, I get this...
09:01:00 18/10/2010
09:02:00 19/10/2010
09:03:00 18/10/2010
It has sorted on the String value, not sorting it as a date value, hen...
I have a simple list like this:
<div dojoType="dojo.dnd.Source" id="myList">
<div class="dojoDndItem">item 1</div>
<div class="dojoDndItem">item 2</div>
<div class="dojoDndItem">item 3</div>
</div>
And I use the dojo attributes to make the list sortable.
It works without any problems, but how do I add a listener to the ev...
Hi all,
i have a datagrid (created programmatically) wich is connected to an JsonRestStore.
In that Grid there are some columns rendered as checkboxes (type:dojox.grid.cells.Bool)
Everything works fine, displaying Data and so on. To be able to edit inline, i connected the onApplyEdit to store.save. The Problem is, that the change of the...
I am trying to parse to JSON object in java. I am posting json key value object using dojo.xhrPost() method as shown below:
dojo.xhrPost({
url: /esturl/,
handleAs : "text",
content : {INST1 : {"0001" : "aa"},
INST2 : {"0002" : "bb"},
INST3 : {"0003" : "cc"}},
load : load(data),
error : error
});
Now I am readin...
How can I assign a variable to content attr of dojo.xhrPost dynamically ? Below is the code and some explanation for my scenario:
Code with hard coded values for content
dojo.xhrPost({
url: /esturl/,
handleAs : "text",
content : {INST1 : '{"0001" : "aa"}',
INST2 : '{"0002" : "bb"}',
INST3 : '{"0003" : "cc"}'}
l...
Hi, we are using a dojox.grid.DataGrid in a jsp.
<script type="dojo/method" event="onStyleRow" args="inRow">
var grid = dijit.byId("someID");
var item = grid.getItem(inRow.index);
if(item != undefined) {
if(item.someAttribute == "1") {
inRow.customClasses = "dojoxGridMYRow";
} else {
i...
I want my graph some thing similar to Google finance graphs in the context of displaying x&y co-ordinates of the mouse when hover on the graph. Am using, DOJO's dojox.charting.Chart2D to draw the graph. Might be there is way to display the co-ordinates but i didn't find the option to display them. Please suggest me if some one is already...
Hello,
If I connect to my form's onSubmit event, how can I find out which button on the form was used for submit? Or, if the form was submitted by pressing the Enter key on an element, how can I find out which element was in focus?
I cannot rely on ExplicitOriginalTarget property of the event object, as this is Mozilla-specific.
Any s...
I've been looking into the spring-webflow/spring-js integration and can't seem to find a guide that describes what is required for implementing a js framework for spring.
There is a default integration with dojo, but I'd like to see about integrating jQuery or Prototype and am unclear on what is needed to accomplish this.
Thanks.
...
I have this security question answer input field validate function where I want to make sure the string are converted to lowercase just in case a user enter a answer in caps in the first field and in small case in the second field:
validate : function(){
//check if both input fields are not blank
//if not blank, check to see if they m...
Hi All,
I have a standalone html page that contains a dojo DataGrid that works just fine. I am including the relevant code below.
<script type="text/javascript">
var readStore, grid;
var gridLayout = [
new dojox.grid.cells.RowIndex({ name: "Row #", width: 5, styles: "text-align: left;" }),
{
name: "N...
Using DJ Native Swing it is possible to show a web page within a java application. When you do this it is also possible to communicate from the browser to the java runtime environment using the "command" protocol. The documentation has a code snippet which demonstrates it's usage:
function sendCommand( command ){
var s = 'command:/...
I want to pre populate check boxes on jsp. I have following code on my Mycheckbox.jsp
Code
MyDTO [] dtoArr = Context.getParameter("PREFdtoSettings");
<%=dtoArr.length%> is 6;
dtoArr[i].getId(); gives me the unique ID;
In above code am setting PREFdtoSettings parameter in request context in handler class
There are almost 100 checkbo...
How to read JSONObject in dojo?
I have a JSONObject in my jsp.
JSONObject myJSONObj = new JSONObject();
How can I read this myJSONObj in my dojo or *.js file, in 'onload function'.
...
I have been trying to connect to simply connect a datastore (ItemFileReadStore) to a dijit.form.Select widget and have been unable to. If I use the options field to populate it then the widget works fine but when I go to use the store field to populate it the widget appears but its contents are empty. The code that I am trying to use is...
My code is seperated by lots of controls on a masterpage, but on the master page I have this
<form dojoType="dijit.form.Form" id="form1" runat="server">
what gets injected into this is a validationtextbox, which is not validating
<input dojoType="dijit.form.ValidationTextBox" required="true"
...
This question might be a bit stupid, but how can I access the data returned from the xhrGet outside of the get itself? Firebug shows that the "json" object has an array called results, which stores the json Object from the response, but when I try to access it it is null. So: how do I access the received data on the last code line? Thank...
I am trying to use a custom build of DOJO, and deploy it on a web-server, so that applications running on an app server may be able to access and use it.
- The cross-domain build does not seem to work right for me, however, if I run a similar static page deployed on the web-server, it runs just fine.
- Tried using both, get the same pr...
I have been trying to use the query functionality of the ItemFileReadStore to filter the list of a select widget's selectable options and it seems that my queries are having no effect on the widget. The query is being done through the onChange event of another select widget, my objective is that when one widget selects a value the other ...
Hi all, this is the weirdest thing. My code is below:
function menuSwipe(init){
dojo.query('div.fill div.container div.menu div.group ul').forEach(function(item){
dojo.fx.wipeOut({
node: item,
duration: 1
}).play();
dojo.query('li', item).forEach(function(childrenItem){
if ...