dojo

Graceful degradation with Dijit

大兔子大兔子 提交于 2019-12-12 02:38:38
问题 I've been a dojo (core) user for a few years now. Building my own widgets atop the dojo space; neglecting dijit and dojox. Working in my own world. That had it's advantages, but I kept having the feeling that I'm reinventing the wheel while building yet another tabbed panel, carousel or dialog box. So I've decided to use dijit. With my own widgets, I've set some basic rules : A widget must degrade gracefully [when no js is loaded] for accessibility and SEO There should be no redraws after the

Google Maps on Dojox mobile view

我只是一个虾纸丫 提交于 2019-12-12 02:32:20
问题 The same question has been asked in this post, but the accepted answer doesn't help (me, at least). I use dojox.mobile.View to display two views that look like this. Everything works fine, except the map container doesn't get displayed correctly. It is shown as a small box on the top page. Do I miss something on the layout file? Thank you! <div id="view1" dojoType="dojox.mobile.View" selected="true"> <h1 dojoType="dojox.mobile.Heading">View 1</h1> <ul dojoType="dojox.mobile.RoundRectList">

Get value of checkbox in dojo, with on() method

 ̄綄美尐妖づ 提交于 2019-12-12 02:29:16
问题 Using dojo 1.9, I'm trying to access the value of a checkbox not like in the example in the docs: require(["dijit/form/CheckBox", "dojo/domReady!"], function(CheckBox){ var checkBox = new CheckBox({ name: "checkBox", value: "agreed", checked: false, onChange: function(b){ alert('onChange called with parameter = ' + b + ', and widget value = ' + this.get('value') ); } }, "checkBox"); }); but by moving onChange event to: query('#checkBox').on('change', function(){ var value = query(this).attr(

Declarative dojox.grid.datagrid's header has onclick event?

你说的曾经没有我的故事 提交于 2019-12-12 02:19:48
问题 Is it possible to have onclick in dojox.grid.datagrid's header. I tried calling a function in header's onclick.. but it doesn't work. <div class="claro" id="cvsd" name="dataGrid" onclick="getConnect('inner__cvsd');setWidgetproperty(this.id,'xy','inner__cvsd');" ondblclick="editCustomGrid(this.id)" onmouseup="setDocStyle(this.id)" style="height: 200px; left: 44px; position: absolute; top: 114px; width: 950px;"> <table class="claro" dojotype="dojox.grid.DataGrid" id="inner__cvsd" rowselector=

using Dojo to programmaticaly add a list of images and add a click event for each of them

隐身守侯 提交于 2019-12-12 02:19:17
问题 I am loading a list of images and adding a click event to each of them using Dojo so when user clicks an image, the ID for that image gets displayed. Please see codes below. Images were loaded, but when I click each of them, only '10143' was written in the log. any ideas why that happened? Please help! var PictureIds = ['10141', '10142', '10143']; var resultUl = domConstruct.create('ul'); for (i = 0; i < PictureIds.length; i++){ var image= domConstruct.create('img', { id: PictureIds[i], src:

dojo widget layout

烈酒焚心 提交于 2019-12-12 02:12:20
问题 Currently I am porting client side of my application from Active X to Dojo. This is first time Iam working with dojo. I have looked at Dojo layout documentation but I am not sure how can I use them for my purposes. The dialogs in my application are typically look like the attached image 回答1: First, you don't need to use dojo's layout widget, you can always use HTML and CSS to create you own layout. The layout widget can help you to layout different components in you page, but it also

Dojo Stacked column chart issues in add total stacked value on the top of stacked

风流意气都作罢 提交于 2019-12-12 01:59:36
问题 I seem to be having a problem with my dojo stacked column chart. Each stack values are placed "inside" the stacked chart. But I want these stacked totals should be at the top but outside the chart, just above the x axis labels. So How do I achieve where the stack totals are displayed just top the stacked columns . Here is my jsfiddle link. Here i need to show my Total stacked value on the top of bar, as well as tooltip for each stacked value also. Here is my code is require(["dojox/charting

creating a dialog box on link click, javascript

℡╲_俬逩灬. 提交于 2019-12-12 01:59:20
问题 I would like to be able to launch a popup or dialog box when clicking on a link in my application - I want to add a horizontal slider to this window so the user can adjust the data displayed. I have been researchng various dijit widgets but am unsure of what will work, I have tried to test some of the widgets like dialog, TooltipDialog but have not gotten any results. i am also very new to javascript so my coding is not the greatest. I'm looking for some useful samples if anyone has

is it possible to use dojo aspect on a method with no target?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:46:08
问题 i have a module as follows: define([...], function(...){ function anothermethod() {...} function request() {....} request.anothermethod = anothermethod; return request; } Now i want to use dojo aspect before on the anothermethod method of the request method (closure). is it possible? If so, what should i put in the target parameter? aspect.before(target, methodName, advisingFunction); And the anothermethod is not called directly. First the request method is called which calls the

dojox chart update/destroy does not work after dojo.byId

隐身守侯 提交于 2019-12-12 01:39:25
问题 I created a dojo chart using; var pieChart = new dojox.charting.Chart2D("pieChart"); Afterwards I want to update/destroy this chart. SO I do; var pieChart = dojo.byId("pieChart"); pieChart.destroy(); This seems to be not functional. Am I doing something wrong here? best 回答1: As you're using dojox so dojo.byId will not return javascript object try using dijit.byId I think it'll work as suggested below: var pieChart = dijit.byId("pieChart"); pieChart.destroy(); the same problem I was facing