dojo

Where does the response get stored after a Dojo JSONP request?

孤者浪人 提交于 2019-12-06 06:06:08
问题 JavaScript For example, I have the following JavaScript code (Dojo 1.6 is already loaded): dojo.require("dojo.io.script") // PART I var jsonpArgs = { url: "http://myapp.appspot.com/query", content: { id: "1234", name: "Juan", start_date: "2000-01-01", callback: "recover" } }; // PART II dojo.io.script.get(jsonpArgs).then(function(data) { console.log(data); }); // PART III function recover(data) { console.log(data); } Direct query from browser I understand that my server will receive the query

Dojox.grid.DataGrid - in a widget - only renders on visible tab

痞子三分冷 提交于 2019-12-06 05:51:42
问题 I am using a Widget that contains a DataGrid object. The Widget works fine when included in the first tab (this is the visible tab), but not when I use the same code on a second tab. The code is the same I have done several checks to make sure there are no other problems - and non Grid code is rendering fine - only the grid that has a problem. I have tried setting the height and width manually and this just results in a large grey rectangle on the second tab. Do I need to tell the Grid to

Submitting a form with a Dojo Rich Text Editor

北慕城南 提交于 2019-12-06 05:18:13
Does anyone out there know how to submit a form that contains a Dojo Rich Text Editor? I've tried adding the "name" attribute to my element that is decorated with dojoType="dijit.Editor", however, I don't see any of the HTML on my receiving process. I've checked the documentation and I don't see any clear example (other than connecting the on submit event of the form in question with another function that sets the data of a hidden input with the "value" of the Rich Text Editor"). I would assume there has to be some "easier" way to do this? Here im able to send the value to the server, and able

No data showing in dojox.grid.DataGrid

核能气质少年 提交于 2019-12-06 05:11:05
I am using dojo 1.3 and having problems getting this dojox.grid.DataGrid working. I am sure it is my ignorance. I have been reading over the Dojo Campus examples and beleive I have right. My html looks like: <script type="text/javascript"> dojo.require("dojox.grid.DataGrid"); dojo.require("dojo.data.ItemFileWriteStore"); </script> <div dojoType="dojo.data.ItemFileWriteStore" jsId="forumsStore" url="action/forum.JsonForums"></div> <div id="ForumsListingArea" name="ForumsListingArea"> <div id="ListOfForumsContainer" name="ListOfForumsContainer"> <table dojoType="dojox.grid.DataGrid" query="{ID:'

Dojo build 1.7 built packages does not work

被刻印的时光 ゝ 提交于 2019-12-06 04:42:53
问题 I'm at the beginning of building my project and I get some errors that couldn't realize why they are being occured. You can see contents of my app.profile.js file below. I execute "build profile=../../app.profile.js -r" this line from command prompt and I get no error after the process is done. My problem is if I copy the release(built) version of these packages to the place where the unbuilt versions exist, I get too many javascript errors like " Error: multipleDefine ". Even if I copy only

Dojo populate combo box widget dynamically

我们两清 提交于 2019-12-06 04:31:21
问题 Could someone please explain to me why this simple straight forward code isnt working, var serviceStore = new dojo.data.ItemFileWriteStore({ data: {identifier: "serviceCode",items:[]} }); //jsonObj is a json object that I obtain from the server via AJAX for(var i = 0; i<jsonObj.length;i++){ serviceStore.newItem({serviceCode: jsonObj[i]}); } var serviceFilterSelect = dojo.byId('serviceSelect'); serviceFilterSelect.store = serviceStore; There is no error at all displayed but my combobox with

Dojo Custom Build 1.6 into a single file

微笑、不失礼 提交于 2019-12-06 03:25:09
I've a problem trying to create a custom build on Dojo, I dont even know is it possible what I want.. I want to have a "single js file" loading all the components that i use across the application. so it doesnt load several files just one containing what I need, or at least just the ones I need. As far as I read I need to create a Profile for this build, this is the profile I use (file in profiles folder ex: test.profiles.js). dependencies ={ layers: [ { name: "test_dojo.js", customBase: true, selectorEngine: "acme", dependencies: [ "dojo/dojo", "dijit.form.Form", "dijit.form.Button", "dijit

Dojo: Can I add two or more widgets to the same BorderContainer region?

99封情书 提交于 2019-12-06 02:44:30
Please bear with me as I am new to dojo, javascript, and web programming in general. In a part of the web page I am working on, I have a BorderContainer (inside of a TabContainer, which is inside of another BorderContainer, but I don't think this is relevant to the issue) and I want to put a number of widgets inside it. I am using the "headline" design on the BorderContainer and - ideally - I would like to have a ContentPane in the center region and a TextBox and four buttons all in the bottom region (lined up side-by-side across the width of the border container). This could be a very basic

Making Dojo Grid sort with Spring and JSON

坚强是说给别人听的谎言 提交于 2019-12-06 02:29:56
问题 So I've got a webapp that uses Dojo and Spring. I've got some grids in the app that are loaded using Json dojo stores. Things seem alright, but I'm now trying to implement sorting. According to this link dojo does not sort grids from Stores, instead it leaves that up to the server. Ok, I assume I can work with that, however I'm running into problems actually doing it. To get data into my grids, I have them call a path which is caught by my controller. For example, to load my Job grid, dojo

Poll the Server with Ajax and Dojo

孤街醉人 提交于 2019-12-06 02:29:07
I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function sendRequest() I've now to continuously (every 3sec) send the same ajax Post to the server How can I implement a Server Poll with Dojo? I basically need to call sendRequest() every 3 secs I don't believe that Dojo has a method built-in for polling, so here's a generic method that's applicable across frameworks var Poll = function(pollFunction, intervalTime) { var intervalId = null; this.start = function(newPollFunction, newIntervalTime) { pollFunction = newPollFunction || pollFunction; intervalTime = newIntervalTime