dojo

displaying dojo tooltip on a disabled validation text box

帅比萌擦擦* 提交于 2019-12-25 05:18:10
问题 How can I display dijit.tooltip on a validation text box , when the validation text box is disabled. Currently <div dojoType="dijit.Tooltip" id = "SomeId" connectId="someId" label = "Hello" ></div> But this only works for validation boxes that are enabled, how can I show this on disabled boxes. 回答1: html part <span id="abcd"> <input type="text" disabled="true" dojoType="dijit.form.ValidationTextBox" id="someId11" /> </span> <div dojoType="dijit.Tooltip" connectId="someId11" jsId="tt1" label =

Testing Dojo with DOH without local Dojo installation

妖精的绣舞 提交于 2019-12-25 05:08:08
问题 I'm trying to work out how to use DOH to test Dojo modules if I don't install Dojo locally to my project. I'm working in Eclipse and ideally, I'd like something that I can run as part of a Maven build eventually. The Dojo package is 5-20Mb and I don't want to have it stashed in my source control system with each project if possible. I've tried a few options with the runner.html test runner, but DOH is going to need to find a Dojo somewhere, and then it seems that modules will be found

Dojo JsonRest appends &name=* to target URL

余生长醉 提交于 2019-12-25 04:28:24
问题 I try to use the Dojo JsonRest to fill a dijit.form.select Box and I use the following code: var stateStore = new JsonRest({target: "ip-address/activiti-rest/service/repository/process-definitions?startableByUser=kermit", headers: {"Authorization": "Basic a2VybWl0Omtlcm1pdA=="}}); The Problem is, that the target-url is extended with &name=* Therefore, the Server sees the following request: ipaddress/activiti-rest/service/repository/process-definitions?startableByUser=kermit&name=* I can not

Why does dojo work when using CDN but not when using $this->dojo->setLocalPath (using Zend Dojo)?

别说谁变了你拦得住时间么 提交于 2019-12-25 04:26:45
问题 I have been using Dojo hosted on Google's CDN. I just downloaded the development version so I can do some debugging. When using dojo stored locally, Firebug reports several syntax errors. They all look like this: SyntaxError: syntax error (no script)(""en-us"")bootstrap.js (line 601) (no script)(""dojo.cldr"", ""number"")bootstrap.js (line 590) (no script)(""dojo.cldr"", ""number"")loader.js (line 634) (no script)(""./number.js"", ""dojo.number"")loader.js (line 76) (no script)(""dojo.number"

Dojo and javascript: lightweight tooltip in onclick on anchor tab

两盒软妹~` 提交于 2019-12-25 04:15:25
问题 I have a dojo datagrid and I am using a formatter that puts, among other things, link in the cell. The formatter looks like this: var descshort = value[1].substring(0,220); return '<a href="'+ value[2] +'">'+value[0]+'</a><br /><div class="gridItemDescription">'+descshort+'  <a href="#" onclick="showDesc();return false;">show more...</a></div>'; So you see I am only displaying the first 220 characters of value[1]. What I want to do now is show a dialog or tool tip when you click on the "show

Custom dojo Dropdown widget by inheriting _HasDropdown and _AutoCompleterMixin

元气小坏坏 提交于 2019-12-25 04:05:08
问题 I am trying to do a Custom Dropdown that will query some of My Own service and update its Drop Down Menu accordingly. I am following the example on http://livedocs.dojotoolkit.org/dijit/_HasDropDown But that doesn't describe how to create the dom for dropdown container. Do I need to set this.dropDown to some dijit._Widget in ctor ? If another dijit._widget needs to be created first ? If yes I know How to update values By data-dojo-attach-point But in case of drop down it will be a collection

Create a Dojo grid and Add Dialog from Data Model

独自空忆成欢 提交于 2019-12-25 04:02:23
问题 I am developing an app where users can perform CRUD operations on multiple data models (aka. DB tables). I am using Dojo and I am quite happy with the dojox.grid module. But users also need to add records, so there has to be an Add Dialog for each table. Is there a way/module that generates a Dojo grid and an Add Dialog given only the data structure of the model? Sort of like the structure parameter of dojox.grid , so that both the grid and the add Dialog have the same data types, default

Dojo: using setTimeout to load widgets in async way

独自空忆成欢 提交于 2019-12-25 03:53:09
问题 Imagine that we have a Sequence widget which loads Element widgets and loads some config for each of them (through loadConfig() ) .Schematic view is described on the image below: The problem is that every approach I tried does the same "bad" thing: it freezes everything until all Elements are loaded. array.forEach(elements, function(element) { element.loadConfig(); }); or var counter = 0; var loadConfig = function(element) { element.loadConfig() if (++counter <= elements.length - 1) {

Print two contentWindows as one within an iFrame

守給你的承諾、 提交于 2019-12-25 03:34:44
问题 I have a webpage with multiple iFrames e.g. 6 and I'd like to be able to print 2 of those frames as one call rather than grabbing the contentWindow of each frame and then calling: parent.iFrame1.focus(); parent.iFrame1.print(); parent.iFrame2.focus(); parent.iFrame2.print(); as it prints the contents in two separate print preview windows in the browser. I tried the following but none really give me what I'm looking for or work for me (i.e. the content is truncated) Is it possible to do or am

Cross domain loading of widget template

拟墨画扇 提交于 2019-12-25 03:32:36
问题 I am hosting a widget on another domain than the site in which I am embedding the widget. The dashboard.js loads fine, but the HTML template gets, XMLHttpRequest cannot load http://192.168.2.72:8081/widgets/templates/dashboard.html. Origin http://192.168.2.72:8080 is not allowed by Access-Control-Allow-Origin. The url to the template is correct, so I can only assume this is a cross domain error. In the widget, the template is referred to like: templatePath: dojo.moduleUrl("monitor/dashboard",