dojo

Programmatic Dojox Uploader - ajax upload not working

北城余情 提交于 2019-12-20 01:38:51
问题 I can't find any docs about creating dojox/form/Uploader programmatically. I tried it by myself, but it looks like that plugin registering mechanism is somehow broken. require([ "dojo/dom-construct", "dijit/form/Button", "dojox/form/Uploader", "dojox/form/uploader/FileList", "dojox/form/uploader/plugins/IFrame", "dojo/domReady!" ], function(domConstruct, Button, Uploader, UploaderFileList) { var form = domConstruct.create('form', { method: 'post', enctype: 'multipart/form-data', class:

Node.innerHTML giving tag names in lower case

风流意气都作罢 提交于 2019-12-19 19:44:01
问题 I am iterating NodeList to get Node data, but while using Node.innerHTML i am getting the tag names in lowercase. Actual Tags <Panel><Label>test</Label></Panel> giving as <panel><label>test</label></panel> I need these tags as it is. Is it possible to get it with regular expression? I am using it with dojo (is there any way in dojo?). var xhrArgs = { url: "./user/"+Runtime.userName+"/ws/workspace/"+Workbench.getProject()+"/lib/custom/"+(first.type).replace(".","/")+".html", content: {}, sync

Dojo DataGrid (DGrid) Adding checkbox column

99封情书 提交于 2019-12-19 12:05:45
问题 I am using Dojo Dgrid however i am trying to add a checkbox column however i am not sure of the approach. Most of the tutorials i have been looking at follow a different code structure and i am unable to create the check box column. I would like to create a checkbox column to select rows Code (Here is also a Fiddle of my code) require([ ....................... "dojo/domReady!" ], function(parser, declare, Grid, ColumnSet, Selection, selector,Keyboard, DijitRegistry){ parser.parse(); var data

How do can watch DOM Object properties?

爷,独闯天下 提交于 2019-12-19 04:47:30
问题 I would like to watch a DOM node property but I can't seem to get it to work. Within my widget, I've tried the following. startup: function() { this.inherited(arguments); // First try using the dojo 1.6 watch. // I'm setting the property of the widget // to reference the DOM node's offsetWidth property this.width = this.domNode.offsetWidth; this.watch("width", function() { console.debug('Width changed to ' + this.domNode.offsetWidth ) }) // Does this.width contain a reference or a copy of

How do can watch DOM Object properties?

故事扮演 提交于 2019-12-19 04:47:04
问题 I would like to watch a DOM node property but I can't seem to get it to work. Within my widget, I've tried the following. startup: function() { this.inherited(arguments); // First try using the dojo 1.6 watch. // I'm setting the property of the widget // to reference the DOM node's offsetWidth property this.width = this.domNode.offsetWidth; this.watch("width", function() { console.debug('Width changed to ' + this.domNode.offsetWidth ) }) // Does this.width contain a reference or a copy of

How do I dynamically show and hide an entire TabContainer using DOJO?

自作多情 提交于 2019-12-19 02:27:37
问题 DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The first thing I tried is setting style.display = "none" to start, and then setting style.display = "block" on the click event. Unfortunately, this only partially works- the page will render an invisible box in the right location/dimensions, but not render the actual contents. The box's contents only get rendered when triggered

DOJO error when using this.inherited(arguments) in strict mode

Deadly 提交于 2019-12-18 16:59:58
问题 I am declaring a base "Class" for a Dijit Custom widget. When in 'strict mode' routine this.inherited(arguments) ; is being called, I receive this error: Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them I need to keep the usage 'strict mode'. Any idea how to solve it? define([ 'dojo/_base/declare', 'dojo/topic', 'dojo/_base/lang' ], function ( declare, topic, lang ) { 'use strict'; var

Dojo AMD: Can't call a function inside a require

瘦欲@ 提交于 2019-12-18 13:01:18
问题 I am really a newbie to dojo but as i started developing a new application with dojo version 1.7.2 i also wanted to use the new AMD syntax for functions. Unfortunately i don't seem to get it. :-( What annoys me most is that i can't simply call any function which is inside of a "require"-block. For example i have a page which on opening creates a dynamic table with several widgets in each row. Then i have a button which adds one empty row each time pressed. Without AMD syntax it would be easy:

Dojo AMD: Can't call a function inside a require

一笑奈何 提交于 2019-12-18 13:01:05
问题 I am really a newbie to dojo but as i started developing a new application with dojo version 1.7.2 i also wanted to use the new AMD syntax for functions. Unfortunately i don't seem to get it. :-( What annoys me most is that i can't simply call any function which is inside of a "require"-block. For example i have a page which on opening creates a dynamic table with several widgets in each row. Then i have a button which adds one empty row each time pressed. Without AMD syntax it would be easy:

dojo dgrid multiple cells edit

Deadly 提交于 2019-12-18 12:49:12
问题 Is it possible to edit multiple cells of the dgrid at the same time ? I know that we can edit a single cell at a time by double/single clicking that cell and update it. And on the onBlur of that cell, the edited data gets updated for that cell. But my requirement is: click edit-link/edit-button for each row, which will display editors for the all the editable cells of that row, update/edit the cells, then click the save button(which will be next to the edit button) for that same row, on