dojo

dojo chart2d columns plot prevent trailing zeroes after values

不问归期 提交于 2019-12-12 01:37:35
问题 i have a dojo columns chart. Data is pulled from a rest service. Y values come as doubles, and X values come as integers. The problem is that dojo displays both values as doubles and i need both values to be displayed as integers. For example, if the X value is "1", dojo shows "1.0". function loadHist(objectId) { $.ajax({ url: "/aquur/rest/getData/" + objectId, }).done(function(data) { /* sample data: data[0] = [0, 0, 1, 0, 0, 1, 4, 3, 1, 0, 0, 0] data[1] = [Object { value=1, text="1.0"},

I'm having trouble placing a Dojo widget in the page

百般思念 提交于 2019-12-12 01:34:22
问题 I've got a simple widget: define(["dojo/_base/declare", "dijit/_WidgetBase", "dojo/dom-construct"], function(declare, WidgetBase, domConstruct){ return declare("gijit.workflow.debug.combi", [WidgetBase], { startup: function(){ alert("started"); }, buildRendering: function(){ var container = domConstruct.create("div", {innerHTML:"test"}, this.domNode, "first"); var rad1 = domConstruct.create("input", {type:"radio"}, container, "first"); var rad1 = domConstruct.create("input", {type:"radio"},

dojo stackcontainer contains custom widget that uses datagrid, but dategrid not showing up

痴心易碎 提交于 2019-12-12 01:22:11
问题 I'm working on a website with different pages, but all loaded once, so no rest calls anymore, except for ajax fetching data, not for new pages. I'm not that familiour with dojo, so I guess that this approach is good (please correct me if I'm wrong): Make a menu and a stackContainer containing each page as a contentPane. Since I don't want to put all my code and layout in index.html, I decided to create a custom widget for every page. On one page, I want to put a datagrid, so my customWidget

Can dojo Access the function assosiated with a HTML elements Event?

廉价感情. 提交于 2019-12-12 01:17:11
问题 I would like to over ride the function associated with an elements onclick event when the screen is in "edit" mode. Then when done editing put the original function back. So, originally I have the following: <script type="text/javascript"> var showAddNewForum = function(){ dojo.byId("NewForum").className = dojo.byId("NewForum").className == 'hidden'?'':'hidden'; } </script> <a onclick="showAddNewForum()" class="editable" id="AddNewForum" name="AddNewForum" style="cursor:pointer;">New Forum</a

Scrollbar not visible in iframe

人盡茶涼 提交于 2019-12-12 00:55:41
问题 I am trying to use iframe with src pointing to a website made in dojo framework. My URL is on different server and and my iframe is on different server. I am just using URL to load URL's content inside iframe. But I can't see the scrollbar with iframe although the page content is more than iframe. My code is: <div style="overflow:visible; width: 100%;"> <iframe src="http://172.27.135.85:2040/feg/ngfeeui/public/" width="80%" height="400px" frameborder="0" scrolling="auto" style="overflow: auto

Pass data from Javascript to codebehind

筅森魡賤 提交于 2019-12-12 00:52:05
问题 All -- I have been trying to find a working example of passing data from a Dojo function to an ASP.Net code behind. THe only post I found that at least offers an easy example is this POST 回答1: Hidden inputs are how I do it for simple pages. ASP.Net Markup (simplified): function saveMyData() { var myData = resultOfSomeOtherFunction(); var hiddenInput = document.getElementById('<%=HiddenField1.ClientID %>'); hiddenInput.value = myData; } <asp:HiddenField ID="HiddenField1" runat="server" /> Code

firing dojo onchange based on value selected in combobox

时光总嘲笑我的痴心妄想 提交于 2019-12-12 00:34:08
问题 When calling dojo.wipein and dojo.wipeout from buttons, everything works great. But calling them based on the value in a combobox: I can't do it. Does anyone know how to make calling client side script depend on the value of a combobox? In other words, if I change the combobox to "Yes", fire dojo.wipein , if I change the combobox to "No", fire dojo.wipeout . EDIT: Thank you everyone for your help. Here is the code that worked. I am a beginner in javascript, which might show, but it works. var

Is there a working dojo tabContainer can successfully reload in a contentPane?

核能气质少年 提交于 2019-12-12 00:11:31
问题 I am not lazy but have tried many ways try to reload a div(id=refreshable) which contains a dojo TabContainer(id=dojoTabbedPane). Each time after reloading the page all content in each tab show up one a stack(the tabs are missing). I did some research, ask questions, and use dijit.byId("dojoTabbedPane").destroyRecursive(); before jQuery load and then call dojo.parser.parse(dojo.byId("dojoTabbedPane")); after re load but never works. So, please, can anyone share a simple snippet can actually

Dojo Build - copyOnly does not work in profile

混江龙づ霸主 提交于 2019-12-11 23:56:12
问题 I am creating a custom build in DOJO. I need to to keep in the build folder dojoConfig.js file not minified. At the moment I am trying to: - exclude dojoConfig.js from build using miniExclude , this works fine work fine - after copyOnly to final build dojoConfig.js without compression, this does NOT work. I need to copy dojoConfig.js in the build foler. Any idea what is wrong in my profile? miniExclude: function(o, e) { return e in { "aaa/aaa.profile": 1, "aaa/dojoConfig": 1 } }, copyOnly:

Struts2 dojo Anchor tag does not work?

孤街醉人 提交于 2019-12-11 22:14:51
问题 Tag <sx:head /> is present on the page. I try to update content of div: <div id="div1"> ... </div> <s:url id="ajaxData" value="/ajaxData.action" /> <sx:a id="link1" href="%{ajaxData}" targets="div1"> update data </sx:a> action public String execute() { ... return NONE; } xml <action name="ajaxData" class="com.data.action.AjaxDataAction"> <result name="none">/page.jsp</result> </action> But when I press update data the browser tab shows animation, it means that whole page updates? It reloads