dojo

Warning : The page index.html ran insecure content

两盒软妹~` 提交于 2019-11-28 20:13:06
I deployed my application on google appe engine. My web site use Dojo with the template claro. When I run "google chrome inspection", I see a lot of warning when I navigate throught my site. Here is the type of warnings : The page index.html ran insecure content from http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css. The page index.html ran insecure content from http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js. Do I need to configurate something in the appengine-web.xml or web.xml? If your page is always accessed by secure url (https) then you might try

Dojo and unregistering widgets

淺唱寂寞╮ 提交于 2019-11-28 19:13:13
I am new to the Dojo Toolkit. I'm getting the error Tried to register widget with id=myButton but that id is already registered whenever I try to load dojo content twice (meaning I load HTML content through jQuery.Load into a container div). Is there a way of unregistering already registered widgets in dojo? I've seen some examples, but I don't really get them working. My button: <button dojoType="dijit.form.Button" id="myButton">button</button> Jez If you're looking to unregister specific widgets, you can use their destroy() or destroyRecursive() methods. The second one destroys any widgets

Dojo 中间件进阶

喜夏-厌秋 提交于 2019-11-28 18:58:56
翻译自: https://github.com/dojo/framework/blob/master/docs/en/middleware/supplemental.md 中间件基本原理 Dojo 提供了渲染中间件的概念,以帮助衔接响应式、函数部件与底层的命令式 DOM 结构。 如果部件能够访问 DOM 信息,某些 web 应用程序需求就更容易实现。常见的例子有: 响应式 UI 不与特定的设备类型绑定,而是根据可用的页面区域改变元素的大小。 仅当某些元素在用户可视区域可见时,才延迟加载需要的数据——例如无限滚动列表。 引导元素获取焦点,并在用户变更焦点后进行响应。 但是,中间件并非必须与 DOM 绑定;这个概念还适合部件的渲染生命周期等更常用的情况。此类需求的常见示例如下: 如果获取数据的开销大,则在渲染间缓存数据 根据特定条件暂停和恢复部件的渲染;在所需信息不可用时,避免无用的渲染 将函数部件标记为无效,以便 Dojo 可以重新渲染部件 一个中间件组件一般公开的某些功能与部件渲染的 DOM 元素有关;大多是部件的根节点。中间件系统为部件在浏览器中的展示和交互提供了更高级的控制,并且允许部件以一致的方式使用几个新兴的 Web 标准。 如果部件在其底层的 DOM 元素存在之前访问中间件的某些属性,则返回合理的默认值。还有一些中间件可以暂停部件的渲染,直到满足某些条件。使用这些中间件

Dojo 中间件进阶

孤者浪人 提交于 2019-11-28 18:48:33
翻译自: https://github.com/dojo/framework/blob/master/docs/en/middleware/supplemental.md 中间件基本原理 Dojo 提供了渲染中间件的概念,以帮助衔接响应式、函数部件与底层的命令式 DOM 结构。 如果部件能够访问 DOM 信息,某些 web 应用程序需求就更容易实现。常见的例子有: 响应式 UI 不与特定的设备类型绑定,而是根据可用的页面区域改变元素的大小。 仅当某些元素在用户可视区域可见时,才延迟加载需要的数据——例如无限滚动列表。 引导元素获取焦点,并在用户变更焦点后进行响应。 但是,中间件并非必须与 DOM 绑定;这个概念还适合部件的渲染生命周期等更常用的情况。此类需求的常见示例如下: 如果获取数据的开销大,则在渲染间缓存数据 根据特定条件暂停和恢复部件的渲染;在所需信息不可用时,避免无用的渲染 将函数部件标记为无效,以便 Dojo 可以重新渲染部件 一个中间件组件一般公开的某些功能与部件渲染的 DOM 元素有关;大多是部件的根节点。中间件系统为部件在浏览器中的展示和交互提供了更高级的控制,并且允许部件以一致的方式使用几个新兴的 Web 标准。 如果部件在其底层的 DOM 元素存在之前访问中间件的某些属性,则返回合理的默认值。还有一些中间件可以暂停部件的渲染,直到满足某些条件。使用这些中间件

Dojo学习6 功能强大的文本框:dijit.form.ValidationTextbox

丶灬走出姿态 提交于 2019-11-28 16:04:25
6. 功能强大的文本框:dijit.form.ValidationTextbox 这个文本输入框的功能比较强大,关键是它能够提供一些常用的验证和大小写转换。下面介绍一个例子和一些常用的属性: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>validationTextbox</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"></script> <script> dojo.require("dijit.form.ValidationTextbox"); dojo.require("dijit.form.NumberTextbox"); <

What happened to Dojo in 2008?

大城市里の小女人 提交于 2019-11-28 14:51:06
问题 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

Set download path

北城余情 提交于 2019-11-28 13:45:40
I have a web application that receives a simple text file, but I need this file to be downloaded to a specific path. Meaning, when the application receives a text file, it will always be downloaded to a specific folder (for example, to C:\MyFolder). If it isn't possible, then I need to copy the file from where user has chosen to my folder. This application is based on JavaScript. JavaScript cannot exert any control over my (the visitor's) local filesystem. I remain in complete control of where my downloaded files go, what they are named, and indeed whether I even want to download them in the

Dojo grid nested json

主宰稳场 提交于 2019-11-28 13:04:27
I'd like to have a dojo grid which connects to a server url which outputs the following json : {identifier : "id" items : [ { id: "1", name: "John", university : { name: "XXX", address: "YYY" } }]. Basically I have a nested json. I would like to represent the university name and University address as separate columns in the grid. I tried using the dojox.grid.DataGrid object and creating a gird layout, but do not know how to refer to the nested elments and university.name and university.address don't seem to work. I am using dojo 1.6.1. Does anybody have any pointers? This is the js code I use

Dojo Javascript variable scope

只谈情不闲聊 提交于 2019-11-28 12:54:06
问题 I am using dgrid and i am attempting to set the dataStore externally. When the page loads i call aliasTicket.load() to create the grid. At the time the grid is loading the datasource is null. When a query is executed the setAliasSource(aliasData); is set. There are no errors however the grid is still empty. The aliasStore is being updated with data however it isn't being reflected on the grid even after the grid is refreshed. How can i get the data reflected in the grid after the query?

Dojo validation of a textarea

筅森魡賤 提交于 2019-11-28 12:22:20
I'm attempting to use dojo for the first time, so this may be be obvious. I have a very simple form with one textarea in it that needs to be filled in. <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js"></script> <form id='form1' action="" method="" dojoType="dijit.form.Form"> <label for="dob">desc:</label> <textarea class='multilinecontrol' dojoType="dijit.form.Textarea" selected='true' required='true'></textarea> <button type='submit' id="next" name="next" dojoType="dijit.form.Button"> Next</button> </form> I've added the 'required' property, so i can ensure the form