dojo

Stateful server side filtering in dojo

眉间皱痕 提交于 2019-12-02 12:52:33
I am doing server side filtering in the enhanced grid in dojo 1.10 version. Here in document it is clearly mentioned to use isStateful property. Also, if we use isStateful property we need to use the URL parameter also, which according to documentation is When both isServerSide and isStateful are true, this is a place to set the server url, if it cannot be retrieved by store.url. I want to know how what is here store.url ? I have searched in other sites, the other definition I get of url is from here and here If using stateful, this is the url to send commands. default to store.url Can anybody

Dojo build fails on IE9 when loading layer from HTML header: property 'dir' is undefined

心已入冬 提交于 2019-12-02 12:26:29
问题 I've made a dojo build, but I wanted the flexibility when enabling/disabling the build, so I've tried to load in in <script> tags in HTML header: <script src="js/config.js"></script> <script src="/dojo/1.9/dojo/dojo.js" data-dojo-config="async: true"></script> <script src="/dojo/1.9/dojo/dojo-all.js"></script> and I've left my JS file unmodified. It seems to function, however, there was a problem, but only on IE9, and only on application version deployed on WebSphere (I've tested on Apache2).

How to query on object type in dojo?

不羁的心 提交于 2019-12-02 12:07:14
问题 We can use dojo.query to get certain elements based of CSS selectors but how do we query on object types? For example, get all the TextBox elements on the page and then use dojo.connect to bind a function? 回答1: This is not completely supported, yet there are two ways of doing it as i see it. One, figure out which is the unique class for a TextBox ( .dijitTextBox ), call dojo.query('.dijitTextBox') , loop result dojo.forEach and get the widget with dijit.getEnclosingWidget(domnode) var

“TypeError: deps.map is not a function” in resolveDepMaps() of node_modules/dojo/dojo.js

僤鯓⒐⒋嵵緔 提交于 2019-12-02 11:27:32
问题 I've been changing my org's underlying infrastructure to switch our automated tests from running in browser client using a separate web server to running in the test runner (intern-runner). In the test runner environment, things had been going swell--I'd gotten past a ton of issues, but then boom! Someone drops a new unittest, that runs just fine in the browser client, but then when I run it with test runner, I get this error: ! TypeError: deps.map is not a function at http://9.77.140.51:9000

Bower does not download git submodule (DojoX candidate plugin)

不羁的心 提交于 2019-12-02 11:21:00
I am using dojo, dijit, dojox in my project, they are installed with: $ bower install dojo dijit dojox bower dijit#* cached git://github.com/dojo/dijit.git#1.9.3 bower dijit#* validate 1.9.3 against git://github.com/dojo/dijit.git#* bower dojo#* cached git://github.com/dojo/dojo.git#1.9.3 bower dojo#* validate 1.9.3 against git://github.com/dojo/dojo.git#* bower dojox#* cached git://github.com/dojo/dojox.git#1.9.3 bower dojox#* validate 1.9.3 against git://github.com/dojo/dojox.git#* Everything is fine until I discover dojox.calendar is missing. This is a candidate plugin for DojoX and using

Retrieving XML data from a ReST service across domains with Dojo

可紊 提交于 2019-12-02 09:29:19
I am trying to write a browser-based Javascript client for a ReST application which responds with XML (so it seems JSONP is out of the questions). I am trying to retrieve the data using dojo.io.script.get but the parameter that is passed to the callback function is an object from which it seems I cannot retrieve the XML data of the response. dojo.io.script.get({url:"http://enterpriseapp.enterprisedomain/path/to/rest/collection", load:function (data) { // 'data' does not contain the actual response (which is XML) } }); What is the correct way to retrieve this data? Stephen Simpson The dojo.io

How to migrate dojo.connect code from Dojo 1.3.1 to 1.9.3

为君一笑 提交于 2019-12-02 09:19:15
问题 I've following piece of code in my application which is written in Dojo 1.3.1 . My task if to migrate this code to Dojo 1.9.3 . My questions is that how I can achieve this? I'm a newbie to Dojo so don't know much about migration from old Dojo syntax to new. dialogWidget._proxyConnects.push(dojo.connect( newDialog._fadeIn, "onEnd", dialogWidget, "onLoad" )); EDIT I would also like to know that what the above piece of code will do actually? If anyone can explain this to me in one or two

Using Dojo's dgrid, JsonRest and subrows/arrays

这一生的挚爱 提交于 2019-12-02 09:17:48
问题 I have a grid that I am creating drawing off a JSON data source that is formatted like this: {"recordsReturned":10, "totalRecords":471, "startIndex":0, "sort":"num", "dir":"asc", "pageSize":100, "visitors":[ {"num":1, "uid": "1", "ipaddress": "24.217.129.98", "hostname": "", "referer": "", "useragent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14", "date":1352086661000}, {"num":2, "uid": "0", "ipaddress": "100.43.83

DOJO form FilteringSelect allow user entered data

笑着哭i 提交于 2019-12-02 09:04:28
I want to create a form with FilteringSelect element and would be great if use could enter custom value. I tried to do that with comboBox but without success (it sends always value - tried all available tricks). With FilteringSelect I already tried to set up custom Validator (function(value,constraints){return false;}) but it still doesnt now allow me to send custom value. BTW: Im creating a form with Zend_Dojo_Form . Robert I made small work around ;) dijit.byId('nameOfTheWidget').item.value; assigned in onChange event to hidden input. Tricky but works as I wanted. It means I made it with

How to implement JavaScript automatic semicolon insertion in JavaCC?

佐手、 提交于 2019-12-02 08:28:25
I am finishing my ECMAScript 5.1/JavaScript grammar for JavaCC . I've done all the tokens and productions according to the specification. Now I'm facing a big question which I don't know how to solve. JavaScript has this nice feature of the automatic semicolon insertion: What are the rules for JavaScript's automatic semicolon insertion (ASI)? To quote the specifications , the rules are: There are three basic rules of semicolon insertion: When, as the program is parsed from left to right, a token (called the offending token) is encountered that is not allowed by any production of the grammar,