dojo

dojo - how to allow a module to popup a dialog

i have a module. I need it to be able to display a modal dialog. Seems like I need to inject a div into the main DOM and then parse it. Is this the right approach. Are there samples (or even a util- seems like this would not be that uncommon) ...

How do I change constraints in a dojo DateTextBox dynamically?

I tried to do this: dojo.mixin(endDate.constraints, {min: new Date(2009,09,14)}); But as a result I got this: min Wed Oct 14 2009 00:00:00 GMT+0200 (CET) ??? It always adds one month! Is this a bug? But what I actually want to do is something like this: dojo.mixin(endDate.constraints, {min: dijit.byId("beginDate").date}); Th...

Dojo/Dijit Layout - tried to add a banner at the top of an existing layout

Please look at these two attempts: http://3wcloud-com-provisioning-qa.appspot.com/testDijitLayout?menuStyle=dijitTest1 http://3wcloud-com-provisioning-qa.appspot.com/testDijitLayout?menuStyle=dijitTest2 Test1 doesn't show the body, but the header is correct. Test2 shows the body, but the heading/banner is behind the dojo components. ...

How to use dojo.io.FormBind with dijit.Dialog

Lets create a great example here I have a short survery in a dijit.Dialog which I an email hanadler on the server using the code below. What I have not been able ot find is a good example vaildating the form and then doing an ajax submit (using ojo.io.FormBind) and then either sowing an Thank you and then closing the Dialog or showing a...

Are there any restrictions as to the content of a dijit.StackContainer? [solved]

Hi! Are there any restrictions regarding the elements that can be posted inside of the ContentPane of a dijit StackContainer? I'm asking this because I'm trying to put some div's inside it but when doing so, the content from the second Pane is displayed in the first one and the second Pane's button does not apear at all. (Sorry for my ba...

Cannot load custom dojo module

I'm trying to follow the custom module tutorial at http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/modules-and-namespaces/creating-your-own-modul I've got a local deployment of dojo at http://localhost:8081/dojo-1.3.2/dojo/dojo.js For my custom module I've created the following javascript file at http://loca...

problem with dojo

Hi there, Im trying out some sample code from a dojo tutorial. I have <button dojoType="dijit.form.Button" id="helloButton"> Test <script type="dojo/method" event="onClick"> dojo.xhrGet({ url: 'response.txt', load: testCallback, error: testError }); alert("getting thru"); </script> </button> When I click my but...

How to force relative pathing with Struts 2.1 and Dojo?

I upgraded from Struts 2.0.6 to 2.1.6 and converted all my Ajax themes to plugins. Everything works except the pathing has changed from relative to absolute. For example, here is the rendered HTML before upgrade: <script type="text/javascript" src="../struts/simple/dojoRequire.js"></script> And here it is after upgrade: <script lan...

IE Forces a Horizontal Scrollbar in a dojo AccordionPane

HI all, I have and issue that looks like it's due to IE's box model bug, but I'm not quite sure how to solve it in dojo. I have a ContentPane which I put into a typical AccordionContainer, and static content is palced in the ContentPane. On all other browsers, if the content in the ContentPane overflows the bottom, a vertical scrollba...

dijit.form.FilteringSelect does not display any value

I create a filtering select like so: var lensMapServiceFS = new dijit.form.FilteringSelect({ displayedValue: this.layerNames[0], value: this.layerNames[0], name: "lensMapServiceFS", required: false, store: lensMapServiceOptions, searchAttr: "name", style: {'width': '100px', 'fontSize': '8pt'} }, this.id + ".lensMapService"); ...

Dojo Grid not displaying properly

I'm using a datagrid/table construct and the data is appearing over the column headers and two check boxes are appearing. <style type="text/css"> @import "StyleSheet.css"; @import "js/dojotoolkit/dijit/themes/pfga/pfga.css"; @import "js/dojotoolkit/dojo/resources/dojo.css"; @import "js/dojotoolkit/dojox/resources/Grid.cs...

best ide for javascript dev - dojo is my target

what do people use when working with complicated framework - dojo , jquery etc vs2008 plus ie has nice debugging plain editor plus firebug is ok but what about intellisense, are there any editors that can deal with these complex frameworks any other 'must have' tools ...

Dojo - Filtering Select - How to add a blank option '-' that allows submission

Hello, Been trying to fix this for a while now. I have loads of Dojo Filtering Select elements in my form. I need them to have a blank option which should be selected by default. Here is an example (of a normal <select> structure) that I want to emulate: <select> <option value="">-</option> <option value="foo">Bar</option> </s...

Dojo Composite/Group validation

Hi, Given 2 text fields that (e.g. House Number, and House Name) on a form, and in order to be valid the user must enter a number or name in the appropriate field before the 'group' of 2 fields is considered valid. A user could enter just a house number, or a house name, but entering a value in either field marks both of them valid. I...

Layout: From Swing to Dojo

I've had some experience in Swing and now I'm trying my hand at writing an ajax app in dojo. I'm particularly having a problem with layout. In Swing I'm used to putting widgets in containers with layout managers for simple things like left-to-right layout to more complicated things like 4 border regions and a center region. After using ...

Dojo ItemFileWriteStore issue with IE7

I have a grid that is embedded within a ContentPane which is in a tabContainer. When loading the itemfilewritestore IE7 pops an error. Code: var theData = {identifies : id , items[]}; var theStore = new dojo.data.ItemFileWriteStore({data: theData}); console.debug(theStore); // this throws some weird error error: {close:function(_81)i...

Dijit Combobox filter autocomplete

Hi All, I'm using dijit combobox for populating a JSON List. Also I'm using ItemFileReadStore for getting the JSON data from the server. Once the data is downloaded, when I click on the combobox it shows all the data. But I don't want the user to see all the data. The user should see the list only when he types something. I tried using q...

Sorting a Dojo DataGrid Declaratively

I have a DataGrid that is loaded from an XML data store, all created declaratively. I'd like to set the sort when the data is loaded. All of the examples I've found deal with doing this programatically and hint that it should be doable Declaratively. This is the code that creates the datasource. <head> <title>Untitled Page</title>...

using dojo tab container with viewScript

Hi, I am trying to get dojo tab containers working using this example: Creating Tab Form. However although this gives a basic feel for a tab form container, I would like to know if it is possible to alter the layout so that I can cusomise it to fit with my current look and feel of the application. I was thinking of viewscripts but uns...

how many dojo fliteringselect can I have on a form?

I have a quick question How many dojo filteringselects can I have on a form? I have a form with 2 filteringselects on it, both getting data from different json datastores to populate the values. However only the first filteringselect is being populated, the other grabs no data. I am using Zend Framework and Zend_Dojo_Form to create ...