dojo

What happened to Dojo in 2008?

泪湿孤枕 提交于 2019-11-29 19:25:05
Many of you have seen this graph of Google Trends of popular AJAX frameworks (Dojo, jQuery, YUI). The graph seems to make it clear that interest in Dojo collapsed in the second quarter of 2008, falling by 80%; jQuery picked up the slack and ultimately grew to more than triple the size of Dojo. Why? What happened in Q2 2008 that demolished interest in Dojo? (Note that I'm not really interested in a comparison of Dojo vs. jQuery ; even if you can explain why one is better than the other, it's hard to see why that suddenly became clear to the world in April 2008.) Disclaimer: I am a Dojo

Dojo Enhanced grid with pagination need to access number of rows in the page

别说谁变了你拦得住时间么 提交于 2019-11-29 17:19:52
I am implementing Dojo EnhancedGrid with pagination and there is something called items per page . 10 | 20 | 30 | 40 | 50| all. Suppose I select here 20 in the EnhancedGrid pagination. How to access the value 20 from the program? I want to get this value and store it in a variable say Page-size . I am using Dojo version 1.6.1 You can access the page size in dojo 1.6 using this: yourGrid.pagination.plugin.pageSize; Here is a working jsfiddle using dojo 1.6: http://jsfiddle.net/SM8GS/1/ It uses the onClick event of the grid. Each time you click on the grid it alerts the current page size. Please

Dojo Toggle Hide and Show Divs

我与影子孤独终老i 提交于 2019-11-29 17:14:22
问题 I've done some searching and come up with a lot of mixed results for using Dojo to toggle divs showing vs hidden. Some use dojo.style which it looks like might have been replaced by dojo.fx Some use dijit but thus cannot access a DOM node. Some make use of show() and hide() Some change the CSS I can't seem to get any of them to work. Can someone please point me towards an up-to-date walkthru on this. Solved Used a combination of the following... dojo.addOnLoad(function() { dojo.style(dojo

dojox DataGrid onStyleRow works first time, then not again

自古美人都是妖i 提交于 2019-11-29 16:36:53
I am trying to make a legend using a DataGrid . My problem is, I want the text in the Datagrid to be colored. I use the onStyleRow function as outlined here: (http://dojotoolkit.org/reference-guide/dojox/grid/DataGrid.html) and it works the first time after deploying. The text in the DataGrid comes up red, but if i refresh or open try it on a different browser, the DataGrid text does not come up red, just the standard black. I was wondering, what I was doing wrong, Thanks, Here is my code: if(dijit.byId("plotlegend")){ dijit.byId("plotlegend").destroy(); } var threadGrid = new dojox.grid

Set dojox.grid.datagrid header column width dynamically

早过忘川 提交于 2019-11-29 15:53:28
I have a declarative dojox.grid.datagrid with initial header column width. And i have a textbox. my need is In UI, if user enters any value to textbox, that value should be set as the dynamic width of column's header. <div class="claro" id="dfgdfgd" name="dataGrid" onclick="setWidgetproperty(this.id,'xy','inner__dfgdfgd');" ondblclick="editCustomGrid(this.id)" onmouseup="setDocStyle(this.id)" style="height:200px; left:42px; position:absolute; top:89px; width:950px;"> <table class="claro" dojotype="dojox.grid.DataGrid" id="inner__dfgdfgd" rowselector="10px" style="height: 180px; width: 300px;">

Dojo学习5 日期选择:dijit.form.DateTextbox

…衆ロ難τιáo~ 提交于 2019-11-29 15:42:41
5. 日期选择:dijit.form.DateTextbox 推荐使用dijit.form.DateTextbox而不是dijit. _Calendar.js 因为前者已经将日期选择和文本框封装好了,而且有一些验证的功能,这个控件使用起来也很方便,用户即可以选择日期,也可以在文本框内输入日期,对于日期相差很远的情况,比如:如果要填写2000年的一个日期,手工输入就比选择的方便很多。下面给出一个使用的最简单例子: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>DateTextbox</title> <style type="text/css"> @import "../js/dojo/resources/dojo.css"; @import "../js/dijit/themes/tundra/tundra.css"; .dijitInputFieldFocused{ border:solid 2px #FFDF00; } </style> <script type="text/javascript" djConfig="parseOnLoad: true, isDebug: true" src="../js/dojo/dojo.js"><

How to make a JSON array unique [duplicate]

送分小仙女□ 提交于 2019-11-29 15:28:12
Possible Duplicate: Array unique values Get unique results from JSON array using jQuery Im having a JSON string like this [ Object { id="38",product="foo"}, Object { id="38",product="foo"}, Object { id="38",product="foo"}, Object { id="39",product="bar"}, Object { id="40",product="hello"}, Object { id="40",product="hello"} ] There are duplicate values in this JSON array..how can i make this JSON array unique like this [ Object { id="38",product="foo"}, Object { id="39",product="bar"}, Object { id="40",product="hello"} ] .Im looking for a suggestion that uses less iterations, Jquery $.inArray

Is it possible to filter data in a dgrid like you can in a datagrid? If so, how?

雨燕双飞 提交于 2019-11-29 14:23:28
问题 I'm relatively new to dojo and have seen how datagrid offers a dynamic filtering capability that reduces the visible rows based on what you type into a filter text input. I have not found any examples of how to do it with the dgrid. If it can be done, please provide an example or point me to a resource that offers a tutorial or example. Thanks! 回答1: Yes, it is possible. Use dgrid/OnDemandGrid and define query function that will return true or false based on your logic for each row in dojo

Why is my intern test failing with “document is not defined”

夙愿已清 提交于 2019-11-29 12:27:00
I am new to Intern and struggling with trying to get a simple test to run in my environment. I was able to get the tutorial test to run but I've tried to set up a test where the test file is located inside my app directory hierarchy. The module being tested is located here: sandbox/web/libs/ev/grids/FilterGrid.js The test file is located here: sandbox/web/libs/ev/tests/FilterGrid.js My intern config file is located here: sandbox/tests/intern.js My loader and suites objects looks like this: loader: { packages: [ { name: 'dojo', location: 'web/libs/dojo' }, { name: 'dijit', location: 'web/libs

Setting the value (selected option) of a dijit.form.Select widget

*爱你&永不变心* 提交于 2019-11-29 11:58:28
问题 I have a dijit.form.Select widget. It's tied to a data store, if that matters. It's filled with several options already. All I want to do is programmatically set its value. I can get its value using myWidget.attr('value') but if I try to do myWidget.attr('value', 5) for example (where 5 is one of the valid values), all it does is reset the widget to select the very first option, no matter what value I give it. This seems to be a bug, and there aren't any tests or documentation which show how