dojo

Making Dojo Grid sort with Spring and JSON

做~自己de王妃 提交于 2019-12-04 07:05:17
So I've got a webapp that uses Dojo and Spring. I've got some grids in the app that are loaded using Json dojo stores. Things seem alright, but I'm now trying to implement sorting. According to this link dojo does not sort grids from Stores, instead it leaves that up to the server. Ok, I assume I can work with that, however I'm running into problems actually doing it. To get data into my grids, I have them call a path which is caught by my controller. For example, to load my Job grid, dojo creats the store and calls /job/data. Here is my controller code for that: @RequestMapping(value="/job

Dojo, how to do onclick event on a DIV

本小妞迷上赌 提交于 2019-12-04 07:04:18
There was a fade out sample in the internet.. http://docs.dojocampus.org/dojo/fadeOut?t=tundra but i want to do something different.. i want people directly click on the text then the text will fade out. in my code there is a div wrap the text <div id='parentNode'> <div id='textDiv' onClick='whenClickAnyWhereWithinThisDiv_performFadeOut()'> <div id='iconDiv'/> <div id='messageDiv'/> </div> <div> Code as show below, what i want is, when people click anywhere within the textDiv, then the whole textDiv will fade away..hmm.....why my code doesn`t work??? function whenClickAnyWhereWithinThisDiv

Dojo: how to use own onMove event (overwrite)

蹲街弑〆低调 提交于 2019-12-04 06:45:35
问题 In docs it was said that: onMove(mover, leftTop, e) called during every move notification; should actually move the node; can be overwritten. but no example how to overwrite it (onMove). Can somebody throw several lines of code to show how it works? Thanks. 回答1: You don't point out which dojo JavaScript class that the onMove function belongs to. However, you have a couple of generic ways to override functions that also applies in your case. 1) Create a new subclass using dojo.declare. Suppose

How do i create a div with dojo create?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 05:41:32
问题 i want to generate the divNodes0 div from this example via dojo create (including the h1 and ul): <body class="mobile"> <div dojoType="dojox.mobile.View" id="mobileView"> <div dojoType="dojox.mobile.ScrollableView" id="divNodes01" scrollDir="v" style="background-color: #d0d0d0;"> <h1 dojoType="dojox.mobile.Heading" fixed="top" id="h1Nodes01"></h1> <ul id="ulNodes01" dojoType="dojox.mobile.RoundRectList"></ul> </div> </div> [...] </body> i tried it this way (without sucess): var mobileView =

Dojo学习10 dijit.Menu

亡梦爱人 提交于 2019-12-04 05:25:08
10. dijit.Menu 介绍一下使用dojo创建右键菜单,有的时候很有用的。 右键菜单的核心类是dijit.Menu,菜单类是dijit.MenuItem; 如果想要添加二级菜单,需要使用dijit.PopupMenuItem; 如果只是简单的右键菜单,还需要设置一下dijit.Menu属性,设置contextMenuForWindow="true" 下面这个是最简单的一个例子: <html> <head> <title>测试菜单</title> <style type="text/css"> @import "../js/dojo/resources/dojo.css"; @import "../js/dijit/themes/tundra/tundra.css"; </style> <script type="text/javascript" djConfig="parseOnLoad: true, isDebug: false" src="../js/dojo/dojo.js"></script> <script type="text/javascript"> dojo.require("dijit.Menu"); </script> </head> <body class="tundra"> <div dojoType="dijit.Menu" id=

Layout implementation for Dojo MVC

你说的曾经没有我的故事 提交于 2019-12-04 05:07:10
I started a dojo project from scratch by trying using good practice from the very beginning. I'm really new to dojo toolkit, so I'm walking through lots of documentations and samples which leave me with a lots of cool stuff but no way on how to implement an architecture for future dev (or add-ons). I have searched the web and found this dojo boilerplate project which seems to be a good start for putting it all together, but I wanted something more, I wanted to implement the MVC pattern (I have lots of experience with JAVA and Ruby on rails dev) in my application and came across this very cool

Dojo custom build with NLS / localisation

只谈情不闲聊 提交于 2019-12-04 04:37:33
I have a problem implementing a cross domain custom build in Dojo. The situation is as follows: i have a pretty large application, with a good number of localisation bundles, so basicly the directory structures is like core\ (my module) nls\ fr\ en\ .... When building my module the result is a big core.js/core.xd.js file, which, bien sur, does not contain the localisations. In the localisation nls directories (en/fr/etc) i find after the build each bundle builded/minified, and a bigger file for each language, core_fr.js/core_en.fs, which contains only Dojo/Dijit related strings. so my build

How to debug Dojo in browser?

眉间皱痕 提交于 2019-12-04 03:13:58
I'm currently (trying) to develop an app with Worklight Studio 5.0.6 and Dojo (Mobile) 1.8.3. I have a really hard time to to find a proper method for debugging. After waiting 5-10 minutes for the build an deploy-process on the server, an error usually looks like this in the Chrome debugger: How am I supposed to track down this error in MY source? The whole stack trace consists entirely of Dojo code which generates an absolutely useless error message after 20 abstraction layers. Seriously, how do you guys handle this in real life? What methods do you use for debugging Dojo-driven apps in the

dojo editable-tree-dgrid : create or generate a new row supported in the dojo.store.JsonRest?

送分小仙女□ 提交于 2019-12-04 02:11:27
问题 I am trying a dojo-dgrid which is both Tree and Editable. In that I have the requirement as follows, I have a Add Button/Icon in a column(usually last column) for the parent rows. On clicking that Icon, a new Child-row should get generated/created (like store.newItem()) under this parent Row and this child row should be editable (there are 11 columns out of which 6 are editable,3 of them are digit.form.Select and the other 3 are Text-fields). Upon filling the editable areas , (there will be a

How to open a browser window without any bars like address bars, bookmarks bars etc in javascript?

放肆的年华 提交于 2019-12-04 01:45:20
I am looking to open a url (html file) without any kind of address bars, bookmarks bar so that the user just sees the application window. Is there a way to do so? window.open(url,'window','toolbar=no, menubar=no, resizable=yes'); You can read about these and more of the options here . 来源: https://stackoverflow.com/questions/31710446/how-to-open-a-browser-window-without-any-bars-like-address-bars-bookmarks-bars