dojo

Dojo huge footprint- Am I doing something wrong

时光毁灭记忆、已成空白 提交于 2019-12-11 11:40:39
问题 I am making a web application using dojo toolkit and heres my code dojo.ready( function(){ dojo.declare("Main",null,{ _dialog:null, constructor: function() { dojo.require("dijit.Dialog"); }, make_dialog: function(url) { _dialog= new dijit.Dialog({ href:url, }); _dialog.show(); } }); // class ends temp=new Main(); });// dojo.ready ends My problem is that when I load dijit.Dialog it is loading various js files( 20 plus) like tooltip.js,backgroundIframe.js taking about 60kb alone. I want to ask

Porting from struts2-dojo to jquery: periodically update a frame inside a jsp

僤鯓⒐⒋嵵緔 提交于 2019-12-11 11:35:28
问题 In my jsp I have this: <s:url action="listarichiesteAjax.action" var="richiesteAjax" > <s:param name="messaggioUtente" value="messaggioUtente"></s:param> </s:url> <sx:div href="%{#richiesteAjax}" updateFreq="10000" preload="true"> This piece of code refresh every 10sec (calling the action listarichiesteAjax that execute a query) a JSP called from the action. I would like to port this and use jQuery. Do I have to change my actions structure? Or do I just need to edit this jsp? How do I will

Dojo tree with checkbox not displaying

橙三吉。 提交于 2019-12-11 11:24:46
问题 This is driving me crazy. The tree is not displaying at all. Here is the code <html> <head> <meta charset="utf-8"> <title>The CheckBox Tree with multi-parented Eventable Store</title> <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="dojo/dojo/dojo.js"></script> <link rel="stylesheet" href="dojo/dijit/themes/claro/claro.css" type="text/css"/> <link rel="stylesheet" href="cbtree/themes/claro/claro.css" type="text/css"/> <script>

Is it possible to use dojo/text! in an Intern functional test?

六眼飞鱼酱① 提交于 2019-12-11 11:17:39
问题 Is it possible to use "dojo/text!" in an Intern functional test? I am able to setup my test page as a JSON string, but ideally I'd like to externalise the string in a file for ease of editing. I'm just getting started with Intern at the moment so I'm just experimenting with what's possible, but here is the start of my test code). This works with the commented "testData" variable used, but is currently failing when I try to provide the same String by the dojo/text! statement. Code: define([

Dojo mobile and callback in dojox.mobile.ListItem

淺唱寂寞╮ 提交于 2019-12-11 11:13:36
问题 I'm a dojo newbie and have encountered this problem in mobile version: I try to use callback with javascript function, but it wont work. What am I doing wrong? <script> function My_function(){ alert("Hello"); } </script> <div id="homepage_view" data-dojo-type="dojox.mobile.View"> <h1 data-dojo-type="dojox.mobile.Heading">Mobile....</h1> <ul data-dojo-type="dojox.mobile.RoundRectList"> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='moveTo:"whereIam_view", transition:"slide",

Javascript Testing framework similar to dojo DOH

谁都会走 提交于 2019-12-11 11:13:13
问题 Is there any framework in javascript similar to dojo DOH? I am looking for testing framework which is browser-based like dojo DOH, it provide support for both browsers and JS runtime environment. In simple words, I am looking for: A simple browser-based graphical front end and runner file. Why I am looking for other Testing unit instead of dojo DOH? Dojo DOH come with complete package of DOJO, so if I develop an application in dojo then it good to use dojo DOH. Suppose I develop an

EnhancedGrid in a TabContainer not working

一笑奈何 提交于 2019-12-11 11:07:41
问题 I've been beating my head against the wall on this one for a while. I've done a ton of google searches and I think that I've set it up correctly, but it doesn't work. I have an enhancedGrid on top and a tabContainer on the bottom. The idea is to click on an item on the top and show different related data on the bottom tabs. The top grid is displayed correctly (I've removed all the plugins to save on space). The two tabs on the bottom display correctly if I have regular text in the

Dojo transition to another html file in same project

a 夏天 提交于 2019-12-11 11:05:28
问题 I am using Dojo 1.7. to implement a Android mobile App with Phonegap. Well my problem is, that I have implemented a tabbar in index.html in my project. Now I want to make a transition by clicking on a tabbar-icon from index.html to a view-div (called testdiv) of view2.html which is another html file in the same project. 回答1: Use the url property available within the data-dojo-prop attribute as shown below - Index.html - link to view on another page <div id="detailsHeading" data-dojo-type=

How to switch an AccordionContainer on click?

为君一笑 提交于 2019-12-11 10:52:16
问题 I have an app that uses a dijit.layout.AccordionContainer with two child containers. When the map is loaded, one of the containers is open by default. I would like the default container to close and the second container to open when a button is clicked. Any idea how to do this? I have tried using the selectChild() method but must be doing it wrong or am I completely off base? EDIT My HTML is: <div dojotype="dijit.layout.ContentPane" id="leftPane" region="left" splitter="true"> <div dojotype=

How to remove dojo widgets by registered by id, but not referenced in any DOM node

折月煮酒 提交于 2019-12-11 10:41:55
问题 Context: I am working on an application which has now been converted to a single page application. There are many widgets in the application and a lot of them have been assigned id, so that they are easy to get as and when required. When we navigate inside the application, the domNode is being cleared by domConstruct.empty(this.someNode) and new DOM is being placed in it. The problem happening here is, although the DOM is cleared, but the widgets are still registered by the same ids and when