dojo

Dynamically injected dojo widget not parsed in IE8

百般思念 提交于 2019-12-12 04:06:30
问题 When I dynamically inject the widget into the page. The console will print error like below: ====================================== [object Error] Error parsing in _ContentSetter#Setter_dijit_TitlePane_0_pane_0[object Error] Error undefined running custom onLoad code: This deferred has already been resolved ========================================== I test it with IE8, Chrome(10.0.648.205) , FireFox? 3.6.16 with dojo1.6, this bug only happens in the IE8. Below is my test jsp file: <%@ page

Zend_Dojo_Form not rendering in layout

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:55:25
问题 I have a quick question about adding Zend_Dojo_Form into Zend_layouts. I have a Zend_Dojo_Form that I want to display in the layout that is used for a particular controller. I can add the form to the layout without any issue however the dojo elements fail to render, as they would do if I added the form to a standard view. Is there any reason why this would be the case? Do I need to do something to the layout so that it will enable the components for this embedded form in the layout. Any other

How to add a `HTML label` before a `ValidationTextBox` dynamically?

痞子三分冷 提交于 2019-12-12 03:33:35
问题 I need to add dynamically HTML labels before each ValidationTextBox . ValidationTextBox and HTML label are created accordingly to the number of property present for object data . I would need an example on how to do it. Example: http://jsfiddle.net/F2qAN/97/#run dojo.require("dijit.form.ValidationTextBox"); dojo.require("dijit.layout.ContentPane"); function build() { var data = { name: 'a', surname: 'b', age: 'c' }, validationTextBox, layout = new dijit.layout.ContentPane({}); Object.keys

Refreshing DojoGrid

家住魔仙堡 提交于 2019-12-12 03:07:26
问题 I have this grid which displays some data, that is retrieved from database. I am retrieving the data as a JSON string which comes in the form :: [{"ActID":16,"Assigned To":"Anand","Activity Type":"fdsf","Status":"New","Assigned Date":"2012-04-20 00:00:00","Assigned Time":"1899-12-30 17:44:00","Email":"rakesh.shukla@gmail.com"},{"ActID":17,"Assigned To":"Anand","Activity Type":"fdsf","Status":"New","Assigned Date":"2012-04-20 00:00:00","Assigned Time":"1899-12-30 17:44:00","Email":"rakesh

Dojo AMD style templates for EnhancedGrid Filter plugin

ⅰ亾dé卋堺 提交于 2019-12-12 03:03:07
问题 I have an Enhanced grid with Filter plugin as shown below: <!DOCTYPE html> <html > <head> <style type="text/css">@import "./dojo/resources/dojo.css"; @import "./dojox/grid/enhanced/resources/claro/EnhancedGrid.css"; @import "./dojox/grid/enhanced/resources/EnhancedGrid_rtl.css"; /*Grid need a explicit width/height by default*/ #grid { width: 45em; height: 20em; }</style> <script data-dojo-config="async: true" src='./dojo/dojo.js'></script> <script data-dojo-config="async: true" src='./dojo

Why doesn't my dojo xhr.post request work?

我的未来我决定 提交于 2019-12-12 02:59:58
问题 I have an xhr post method, but my callback with "alert("data retrieved")" never gets fired and I dont know why. Here is a fiddle for better reading: http://jsfiddle.net/ZKppc/1/ appPrototype.prototype.requestData = function(url, user, password) { var me = this; document.getElementById("inputServer").value = url; this.definedUrl = url; dojo.xhr( "http://" + url + "x/y.json", { handleAs: "json", method: "POST", data: { l_username: user, l_password: password}, preventCache: true }).then(function

time to display in dropdown lists

泪湿孤枕 提交于 2019-12-12 02:52:33
问题 I can use jquery or dojo or simple HTML to show hours and minutes in separate dropdown list. Please suggest. Below is the sample code: <input id="time" data-dojo-type="dijit/form/TimeTextBox" required="true" data-dojo-props="constraints: { timePattern: 'HH:mm:ss', clickableIncrement: 'T00:05:00', visibleIncrement: 'T00:05:00', visibleRange: 'T01:00:00' }" /> 回答1: I don't know much about dojo but i got this far if it helps: Time: <input id="timeHours" data-dojo-type="dijit/form/TimeTextBox"

Dojo 1.9 and Intern 1.7 - require.on is not defined?

≯℡__Kan透↙ 提交于 2019-12-12 02:47:12
问题 Dojo 1.9 and Intern 1.7 I am having a problem with Intern in that it's reporting that require.on is not defined and my test suite is falling over. This is only happening when trying to define a test that includes a widget. it looks like when the widget package is requried then it hits a line require.on("idle", onload) but fails because require.on is undefined. As a test, I defined require.on and the test does not fall over. All I can think of is that the version of dojo that intern ships with

use of onCellWidgetCreated in Dojo Gridx (to add button to cell)

一曲冷凌霜 提交于 2019-12-12 02:46:26
问题 I try to add a button to the last column of my Gridx, however, the button is not shown and above the other table data the grid just says "loading...". Cell Widget is required and declared, widgetInCell is set and onCellWidgetCreated function added. When replacing the onCellWidgetCreated function with alert, an alert message for each row is shown and the "loading..." disappears. My feeling is that the onCellWidgetCreated function is wrong? My code looks like the following and when comparing it

Dojo window.onscroll

半腔热情 提交于 2019-12-12 02:39:56
问题 Is there a Dojo method that wraps window.onscroll? I want to be able to capture the page scrolling. I can capture the mousewheel but can't seem to find any reference to capturing the actual page scroll. I've tried lots of variations but the event just doesn't seem to fir at all. any ideas? 回答1: dojo.connect(window, 'onscroll', this, function(event) { var scrollTop = dojo._docScroll().y; //code to handle scroll }); This works for me whether the document is scrolled via mousewheel, scrollbar,