dojo

Is there anyway to disable the client-side validation for dojo date text box?

In my example below I'm using a dijit.form.DateTextBox. <input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' /> So for example, if the user starts to enter "asdf" into the date the field turns yellow and a pop...

Event handling in Dojo

Hello All: Apologies in advance for the appaling long post (and pretty applaing code, too). Taking Jeff Atwood's advice, I decided to use a JavaScript library for the very basic to-do list application I'm writing. I picked the Dojo toolkit, version 1.1.1. At first, all was fine: the drag-and-drop code I wrote worked first time, you can ...

problem with dojo dijit.form.ValidationTextBox

The following xhtml code is not working: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="/dojo...

Coding Dojo with IE and SSL

My application is using Dojo 1.1.1 on an SSL-only website. It is currently taking advantage of dijit.ProgressBar and a dijit.form.DateTextBox. Everything works fabulous in Firefox 2&3, but as soon as I try the same scripts in IE7 the results are an annoying Security Information dialog: This page contains both secure and nonsecure item...

What is the best resource you know to learn Dojo?

The Dojo toolkit looks like it is very useful, but the docs feel very incomplete and buggy. Can anyone suggest a book or other resource to help a javascript novice really learn to use Dojo? ...

Google's hosted dojox.gfx

I'm using the following html to load dojo from Google's hosting. <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript">google.load("dojo", "1.1.1");</script> <script type="text/javascript"> dojo.require("dojox.gfx"); ... This errors out on the requre line with an error like dojox.gfx is undefined....

GWT or DOJO or something else?

I come from the Microsoft world (and I come in peace). I want to rapidly prototype a web app and if it works out, take it live - and I don't want to use ASP.Net. I am not sure which web application toolkit to use though. Should I use GWT, DOJO...other recommendations? I am open to any server-side language but am looking at RoR, Php or ...

MalformedInputException while using Shrinksafe with IBM JRE

While trying to use Shrinksafe custom_rhino.jar to build Dojo I get MalformedInputException. The problem occurs when build reaches custom widgets/templates which contain french letters stored in UTF-8. The AIX machine has LANG=en_US which should be correct, judging by other documented problems regarding MalformedInputException with IBM J...

With DojoX Layout, is it possible to replace the content of a layout?

I have a div in which a page is loaded with the DojoX Layout capability: <div dojoType="dojox.layout.ContentPane" adjustPaths="true" renderStyles="true" executeScripts="true" href="my/page/containing/scripts/and/styles/in/a/sub/folder.html"> Initial cont...

Dojo Framework

Is there a better ajax framework than DOJO for web apps using struts? ...

Dojo DnD acceptance of outside objects

Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example. ...

Batch file uploading with a flashplayer dialog.

I'm currently looking at ways to allow people to select multiple files at once to batch upload images. I'm evaluating these options for my ASP.NET web app: YUI Uploader Flajaxian SWFUpload Dojo Toolkit Multi file uploader I'm leaning toward YUI because the documentation is clear and I basically already wrote the file uploaders and th...

How Do You Fix A Parameter Names Mismatch - DOJO and PL/SQL

How do you fix a names mismatch problem, if the client-side names are keywords or reserved words in the server-side language you are using? The DOJO JavaScript toolkit has a QueryReadStore class that you can subclass to submit REST patterned queries to the server. I'm using this in conjunction w/ the FilteringSelect Dijit. I can subcla...

How to make Dojo a bit more lightweight?

I've been looking at Dojo, and it has some nice tricks, however its quite huge IMHO. Basically when viewing my test my slow machine (600mhz), just loading Dojo was kind of painful, and can imagine lots of mobile devices will also not be happy with it. Is there a slim version or something like that available? ...

What is the best practice for passing variables from one HTML page to another?

I'm relatively new to web application programming so I hope this question isn't too basic for everyone. I created a HTML page with a FORM containing a dojox datagrid (v1.2) filled with rows of descriptions for different grocery items. After the user selects the item he's interested in, he will click on the "Submit" button. At this...

Can I change the Dojo namespace to something other than dojo?

I know you can do it for jQuery using jQuery.noConflict. Is there a way to do something similar with Dojo? ...

Dynamic url for dojo combobox source

I'm trying to use a dojo combobox with an Ajax data source. What I have is <div dojoType="dojo.data.ItemFileReadStore" jsId="tags" url="<%=ResolveClientUrl("~/Tag/TagMatches")%>" > </div> <select dojoType="dijit.form.ComboBox" store="tags" value="" name="tagName"> </select> Which does work exce...

Is there an Erase for dojo's gfx surface routines?

I'm using Dojo's gfx routines to draw some shapes onto a div, and other than surface.clear(), is there a way to clear or erase just part of the surface? Thanks. ...

How to cancel a file upload using dojo.io.iframe.send?

I am using the dojo.io.iframe.send method to send a file to my server. I want to provide a way that the user can cancel the send once it is in progress, in case it is taking too long or the user realizes she sent the wrong file. I can't figure a way to do this. I could use a timeout to terminate the send if it is taking a long time (tha...

How do you manage your DojoX code?

How are you managing your usage of DojoX code or widgets in a production application? The Dojo Toolkit is comprised of Core, Dijit, and DojoX. As an incubator for new ideas to extend the toolkit, DojoX code and widgets are functional with varying degrees of instability. DojoX Code like QueryReadStore (for fetching batches of data from...