dojo

Sub-widgets won't render (will have 0 height) in Dojo

为君一笑 提交于 2019-12-08 03:19:04
问题 Have a look at this simple fiddle: http://jsfiddle.net/mercmobily/y4uG2/10/ Basically I declare a Widget, and start adding away sub-widgets. At one point, I have the sub-widget "section" which is a templated widget with a tab container and sub-tabs. The main widget has: '<div data-dojo-type="Section" data-dojo-props="title: \'Sub Widget\'" data-dojo-attach-point="section"></div>' + And that "section" widget has: templateString: '' + ' <div>' + ' <div class="subWidget" data-dojo-type="dijit

Dojo dialog nesting

折月煮酒 提交于 2019-12-08 02:56:32
问题 can a dojo dialog bring up another dojo dialog? 回答1: dojo 1.3 only supports one modal dialog at a time, so while, yes, one dialog can open another, closing the second destroys the modality of the first. This happens because dojo.Dialog uses a single global underlay object that provides screen between the dialog and anything else on the page. You can make it work if you're wiling to create your own underlay for each dialog and manage the z-indexes yourself. I understand this will be rectified

Dojo - XHTML validation?

流过昼夜 提交于 2019-12-08 01:27:24
Is it possible to make Dojo (javascript) widgets validate for XHTML? If so, how? Can it be something as simple as using CDATA? Yes, instead of using the dojoType="dojo.foo.bar" non-standard attribute, you instead need to have a document onload event that "takes over" standard HTML tags in your document and rewrites them into Dojo ones. CDATA won't help you here. If you really want to write code according to XHTML DTD/schema, you can do it, but cannot take advantage of the flexibility of Dojo markup language (DojoML). What you can do is that you define your own way to mark the widgets, like

How to configure an xe:viewFileItemService on an XPage to filter the data in a categorized view?

倖福魔咒の 提交于 2019-12-08 01:20:54
问题 I have a DocsByUsername categorized view, sorted and categorized by the username. For the authenticated user I only want to display their documents in a Dojo Data Grid. The grid needs to support in-grid editing so I need to use an xe:viewFileItemService read/write service as the data source for the grid. I thought this would be fairly straight forward using the following service configuration ... <xe:restService id="restService1" jsId="restServiceObj" pathInfo="pathinfo"> <xe:this.service>

diji.Tree + JsonRestStore - selecting node programmatically with tree.set(“path”

牧云@^-^@ 提交于 2019-12-08 01:08:45
问题 I've this problem. I'm using dijit.Tree with dojox.data.JsonRestStore as datasource. All nodes are lazy loaded. When I try to programmatically select a node using tree.set("path", [1,2]) I get an error saying "Could not expand path at undefined" Is it possible to use tree.set("path"...) when the tree structure is being loaded dynamically ? My code contains 2 files. source.php is the implementation of data source tree.php is available here http://jsfiddle.net/hd2MZ/2/ source.php is available

how can I expand, or make a dojo button wider?

瘦欲@ 提交于 2019-12-07 18:40:19
问题 I have this piece of code: <div dojoType="dijit.layout.ContentPane" style="width:200px;margin:0;padding:0;" doLayout="true"> <button dojoType="dijit.form.Button" style="width:100%;" doLayout="true"><span style="width:200px;"> </span></button></div> I think it is clear what I try to do. Do you know how I could make the button take 100% of it's container's width? Thank you. 回答1: Alright, I got the answer at an IBM's forum, someone told me to override the dijit style: .dijitButtonNode{ width:100

Dojo Custom Build 1.6 into a single file

二次信任 提交于 2019-12-07 18:14:34
问题 I've a problem trying to create a custom build on Dojo, I dont even know is it possible what I want.. I want to have a "single js file" loading all the components that i use across the application. so it doesnt load several files just one containing what I need, or at least just the ones I need. As far as I read I need to create a Profile for this build, this is the profile I use (file in profiles folder ex: test.profiles.js). dependencies ={ layers: [ { name: "test_dojo.js", customBase: true

Dojo: Can I add two or more widgets to the same BorderContainer region?

落花浮王杯 提交于 2019-12-07 18:06:58
问题 Please bear with me as I am new to dojo, javascript, and web programming in general. In a part of the web page I am working on, I have a BorderContainer (inside of a TabContainer, which is inside of another BorderContainer, but I don't think this is relevant to the issue) and I want to put a number of widgets inside it. I am using the "headline" design on the BorderContainer and - ideally - I would like to have a ContentPane in the center region and a TextBox and four buttons all in the

Dojo Dialog onEnd() animation exception

 ̄綄美尐妖づ 提交于 2019-12-07 17:39:06
问题 I have a problem with the Dojo Dijit Dialog .hide() method during the animation sequence. I am using Dojo 1.7 with Tundra theme. I have a cancel button in my dialog that closes the dialog. var global_welcome = new Dialog({ id: 'global_welcome', style: "width: 750px", draggable: false, content: '<button type="button" id="global_welcomeCancel"> Cancel </button>', onShow : function () { on(dojo.byId('global_welcomeCancel'), "click", function (evt) { dojo.stopEvent(evt); global_welcome.hide(); })

How do I use uncompressed files in Dojo 1.7?

筅森魡賤 提交于 2019-12-07 17:18:41
问题 I've created a Dojo module which depends on dojox/data/JsonRestStore like this: define("my/MyRestStore", ["dojo/_base/declare", "dojox/data/JsonRestStore"], function(declare, JsonRestStore) { var x = new JsonRestStore({ target: '/items', identifier: 'id' }); ... which is fine. But now I want to have the the uncompressed version of the JsonRestStore code loaded so that I can debug it. I can't find any documentation on how to do this, but since there is a file called 'JsonRestStore.js