dojo

Dojo datetimepicker doesn't take any event

I am using the dojo dateTimePicker in my application. Now i want to limit its start date and end date on particular event e.g. If the selected period is current finacial year then i want change the startDate value of my dateTimePicker to 1st April 2010 & lastDate value to 31st march 2011. And i want to do that on onchange/onblur event of...

Dojo Dialog boxes clearing dijit filteringselect / comboboxes

Hi I'm having a small issue with a form that uses dojo for validation and other UI tasks such as auto complete etc. The form is dynamic so that elements can be added by the user by calling a sub form within a dojo dialog box. This adds other elements to the form quite nicely however, all filtering selects or comobo boxes have their val...

Dynamically adding dijit on button click programatically...how?

Hi, I've got a problem with another dojo enabled form that I am working on. A user can enter details onto the page by entering the data using a dialog box, which in turn updates the database and then displays the user data entered on to the form. Each element added consist of 2 x Validation Text boxes 1 x FilteringSelect. When it's ...

Dojo: What event fires when the page/window loses focus?

In the javascript framework Dojo, is there an event that fires when the entire page loses focus? If there is no event fired, is there another way to track the window losing focus? I want to be able to tell when someone clicks away from the page so that i can log the action (its an educational project, we're monitoring students actions ...

Native widgets created by Dojo don't work

I'm using dojo.create to throw some native widgets onto a page. In particular, I have put a set of radio buttons onto the page, and whether they function properly depends on where I put them. I want to put them into a DIV I create. However, when I do that, they don't work. If I put them at the bottom of the body, they work. If I put the...

Dojo parse unparsed widjits

Zend framework adds the dojo.parser.parse(); to your script if you have widgets on the page, but not if you don't - makes sense. But I have a common js file which should set up lightbox images within all pages, and for this i need dojo.parser.parse(); to be included. I can add it to my common js file, but if I do, the parser runs twice a...

Posting JSON string using dojo.xhrPost

Hi, I am having an issue trying to post a JSON string using dojo.xhrPost to a Zend Framework Controller. When I post the string to the server I get no data being sent. I've even tried just sending "A Test string", even that is not being sent. I've done a var dump to see the contents of the request but clear as day, there is no para...

How to programatically build a window widget with tabs?

I'm very new to Dojo, so please don't beat me up. What I want to do is create a window like Child layout test: <div dojotype="dojox.layout.FloatingPane" title="Child layout test" style="width:400px; height:300px;" resizable="true"> <div dojotype="dijit.layout.TabContainer"> <div dojotype="dijit.layout.ContentPane" title="Ta...

How do I "get" the ID for a "clicked" tab in a dijit.layout.tabcontainer?

I haven't been able to find a clearly defined solution for this. Most are incomplete snippets. Here is a simple sample. See the doSomething() comment: <head> <style type="text/css"> body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } </style> <link rel="stylesheet" type="text/css" href="http://a...

Setting value of dojo datetimepicker

I want to set the value of datetimepicker tag through code please help me! ...

escaping json string with a forward slash?

Hi, I am having a problem passing a json string back to a php script to process. I have a json string that's been created by using dojo.toJson() that contains a / and looks like this: [{"id":"2","company":"My Company / Corporation","jobrole":"Consultant","jobtitle":"System Integration Engineer"}] When I pass the string back to the ...

Dojo login to secure REST JAX-RS server

Hi All, I am using the JAX-RS REST service on a GlassFIsh server (JDK6 application). I secured my REST application with @RolesAllowed() annotations. I have a Dojo web client that need access to the REST resources. I am using FORM authentication on the REST server but happy to change it if there is a better way. When I access my resource...

DOJO slider - value on top of the slider

Hi All, I have implemented dojo slider in my application : dojo.require("dojo.parser"); dojo.require("dijit.form.Slider"); dojo.require("dijit.form.TextBox"); // this we only include to make the textinput look prettier dojo.addOnLoad( function() { var slider = new dijit.form.HorizontalSlider( { na...

DataGrid row height problem when using formatter and image

I'm adding image to DataGrid cell with formatter. The problem is that the image gets partially cut out (limited to row default height). If I add static width and height attribute, problem is fixed, but in this case image sizes are dynamic. Also if I only add text, row height is grown correctly. <div dojotype="dojo.data.ItemFileReadStore...

Dojox datagrid data vanishes when clicking the header row

I have a table that contains multiple rows. In one row I have two datagrids that load up properly with the data that is provided but if the header column is clicked then the entire data of the grid just vanishes and the rows beneath the grid row move up. I am only showing the one item but the results are the same. function addRow(){ ...

Why I am seeing static method warnings from Eclipse with dojo.*() ?

I'm writing a Dojo class that looks something like: dojo.provide("my.class.name"); dojo.declare("my.class.name", null, { myFunction: function(param) { // ... dojo.aValidDojoFunctionSuchAsrawXhrPost(param) { // ... } // ... } } I'm using Eclipse (in fact Rational Application Develope...

Dojo fileuploader without AJAX

I want to use Dojo to be able to style the upload input, since the browser will not allow CSS to style it. Currently I can only get the FileUploader to work as AJAX, and this is not desired because it needs to be passed with other form data. Is it possible to do this with Dojo? Or should I just write my own transparent file input and s...

Dojo : Unable to stop "onClick" dijit event

I could not stop the "onClick" event ? If i just use the dom node with the "onclick" event then dojo.stopEvent() works but not with the widget's "onClick". I am getting the error "Unable to load page ......status 0". I found out that this happens when the page refreshes while the Ajax call is being executed. I am posting my code. Any he...

How to combine Dojo.Deferred + dojo.data.read

I have a chain of asynchronous events that i want to execute, some of them fetch commands. I understand the basics of using dojo.Deferred, but all of my attempts so far to add a fetch callback have failed... What im trying to do is 1) add a fetch call to my Deferred object 2) have that fetch function be run, possibly with some extra ar...

dojo.Deferred: Gracefully canceling a .then() chain?

I have a chain of async calls, linked together using dojo.Deferred objects as async wrapper (at least how i understand it) and the .then() function to 'link' the async calls. At any one of the links in the chain, some test could fail (such as my async store fetch returned no objects, etc) and i want to gracefully exit the entire .then(...