dojo

Dojo + Highcharts. The X Axis is not alligned when setCategories() is executed

南楼画角 提交于 2019-12-11 19:29:30
问题 I am using Dojo and Highcharts, the X axis is not alligned when I use: ....xAxis[0].setCategories(...) http://jsfiddle.net/xKfU2/6/ In the fiddle, if you comment the first setCategories and you discomment the second one, the X axis is allign, but the chart no. And if you discomment the both of them, you have the both problems. How can I solve this problem? Thanks in advance. 回答1: I'm not sure why the problem is occurring, but you can fix it by forcing the x-axis offset like this: xAxis : {

populate a table B based on row clicked on table A

北城以北 提交于 2019-12-11 19:26:18
问题 I have a table that A is made from dojo and I need to populate another table B again using dojo. Here I need to click the row of the table A and based on that row I need to make a call to my spring controller along with I will send the row id or some value of row to controller and the controller, it should return json data of a model that i need to return to dojo to so it as table B. Here below I show you that what I have. Button to populate a table that which I got In google search. <button

Dojo textBox doesn't accept whitespace

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 19:23:42
问题 I'm working with no experience on a Dojo project and don't know which version I'm working on. There is a textBox for a search form which doesn't accept whitespace. I searched in this documentation for a solution, but no method seems to be applicable. http://dojotoolkit.org/api/dijit/form/TextBox So my question is: is it possible to accept whitespace in a textBox form or is it just possible with a ValidationTextBox? me.filterBox = new TextBox({ style: 'margin-bottom: 0', class: 'STQuicksearch'

Dojo (1.9.1) datagrid does not render if not a direct child of body

送分小仙女□ 提交于 2019-12-11 19:19:27
问题 I have problems with rendering a datagrid in my custom widget. I was able to pinpoint the problem to this: datagrids that are not a direct child of the body do do not render correctly. Showcase: <!DOCTYPE html> <html> <head> <title>Problems with datagrid</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/resources/dojo.css"> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1

dojo 1.8: loading dojo-laced html files into contentpane

拥有回忆 提交于 2019-12-11 19:09:31
问题 Hi Any idea how I can load dojo-laced html file dynamically into contentpanes? I am able to load non-dojo html into content pane using href. When I loaded dojo-laced html file, I can see text in html tags but not text in dojo scripts. Where did I go wrong? The scripts I put here are:- widget.set('href','dojotext.html') Another problem in jsfiddle is that pressing button 1 will not update, unlike in my environment. and funny thing is that border container and comtent panes are not displayed,

Dojo XhrPost set name for posted json object on server

本小妞迷上赌 提交于 2019-12-11 19:01:54
问题 I have a Dojo ajax request and i am posting the data as json however the data is not reaching the server in json format. I am also not able to see the JSON tab in the browsers Net option of the console. I need the data in json format on the server. Ajax Request var someData = [{id:"1",age:"44",name:"John"}, { id:"2",age:"25",name:"Doe"}, { id:"3",age:"30",name:"Alice"}]; function SendData() { var xhrArgs = { url:'processData', postData: someData, handleAs: "json", headers: { "Content-Type":

Override a method in dojo - dojo.store.Memory

一笑奈何 提交于 2019-12-11 19:01:26
问题 Is there a way how to run my own function before a dojo method is spawned? Specifically I need to refresh data in dojo.store.Memory before query() function is spawned. My idea is to put there a callback (that will be spawned before query()), fetch new data from server and then set the data to Memory instance. Then just call this.inherited(arguments) I've tried override query method with declare, but I'm still getting some unrelated errors. 4 hours but no luck... Is there a another way? Thanks

Dojo - how to submit data using a Dialog form

别等时光非礼了梦想. 提交于 2019-12-11 18:41:58
问题 I would like to submit some values that a user enters in a Dialog-form. He clicks on the button, gives his name, first name, email and submit. When he submits, I would like to store these values in a DB. I have a php script that is supposed to get these values from the user... but I don't know how to send these values once submitted to my php script. Thanks for your help. ---php script------> so far just printing, no DB storing but printing is not working <?php $name= $_POST["name"];

Creating sorted tree in DOJO 1.6?

非 Y 不嫁゛ 提交于 2019-12-11 18:33:48
问题 I new to learn dojo and trying to learn by it using samples code. Using dojo 1.6 With help of sample codes , I created a tree now i want to apply sorting on root and also on child. With the help of this sample code , i changed the code Output is not sorted n but the root folder has changed their position and child is deleted. Plz help me to resolve this. My code : dojo.require("dojo.data.ItemFileWriteStore"); dojo.require("dojo.data.ItemFileReadStore"); dojo.require("dijit.tree

Dojo style coding

99封情书 提交于 2019-12-11 18:19:35
问题 I'm new to dojo style coding. Got used to pure javascript and then jQuery style. Searched through and got some results such as Dojo, when used with closure compiler works best. advanced dojo is more OO than procedural type I'm having problems with dojo.require() - whenever I download a plugin for dojo, I get the error - 404 NOT FOUND. and half the time for developing goes in fixing this issue, getting the js file and placing it at location. And is it possible to extend the dojo object as in