dojo

Stateful server side filtering in dojo

☆樱花仙子☆ 提交于 2019-12-31 05:46:05
问题 I am doing server side filtering in the enhanced grid in dojo 1.10 version. Here in document it is clearly mentioned to use isStateful property. Also, if we use isStateful property we need to use the URL parameter also, which according to documentation is When both isServerSide and isStateful are true, this is a place to set the server url, if it cannot be retrieved by store.url. I want to know how what is here store.url ? I have searched in other sites, the other definition I get of url is

Retrieving XML data from a ReST service across domains with Dojo

折月煮酒 提交于 2019-12-31 05:34:06
问题 I am trying to write a browser-based Javascript client for a ReST application which responds with XML (so it seems JSONP is out of the questions). I am trying to retrieve the data using dojo.io.script.get but the parameter that is passed to the callback function is an object from which it seems I cannot retrieve the XML data of the response. dojo.io.script.get({url:"http://enterpriseapp.enterprisedomain/path/to/rest/collection", load:function (data) { // 'data' does not contain the actual

Dojo dGrid header checkbox to select all does not work

一个人想着一个人 提交于 2019-12-31 04:55:08
问题 I created a dojo dgrid however i used a form wizard to seprate the fields on the form, however with the current structure i am having an issue with the select all feature on the grid. I cannot select all however if i remove the div Page2 and it content from the form it works. In firebug i also inspected the DOM and i saw the 'aria-checked = mixed' when i check the select all box when it should be 'aria-checked = true'. How can i get the header checkbox to allow all records to be selected when

Event Handlers and Listeners & Event Bubbling and Event Capturing

最后都变了- 提交于 2019-12-30 07:31:55
问题 I am confused with "Event Listener", "Event Handler", "Event Bubbling" and "Event Capturing" in JavaScript. I have search in internet and have looked into different website but, I still have problem understanding some differences and even the basic condition. As this article suggests, the event handler is created and listens for an event. Does it mean that, the JavaScript functions attached to the elements inside the DOM are not event handler and they are event listener? Also, here I found

Has anybody used Dojo and JQuery in the same project?

时光怂恿深爱的人放手 提交于 2019-12-30 04:47:07
问题 Has anybody used Dojo and JQuery in the same project? I need a Dojo object oriented part ( and nothing more ) and JQuery for easier presentation, but I am afraid of collision and name clashes. Is it possible to use both on the same page ? 回答1: use jQuery.noConflict(); before writing jQuery code block more information : http://api.jquery.com/jQuery.noConflict/ read this article too: http://www.sitepen.com/blog/2010/11/15/from-jquery-to-large-applications/ 回答2: Yes, it is possible and I am

Populating a FilteringSelect datastore from an onChange event

女生的网名这么多〃 提交于 2019-12-29 09:11:13
问题 I'm trying to bind an onChange event of one FilteringSelect to populate another FilteringSelect . // View dojo.addOnLoad(function () { dojo.connect(dijit.byId('filterselect1'), 'onChange', function () { dijit.byId('filterselect2').store = new dojo.data.ItemFileReadStore( { url: "/test/autocomplete/id/" + dijit.byId("filterselect1").value } ); }); }); The JSON is generated from what I can tell correctly from a Zend Action Controller using a autoCompleteDojo helper. // Action Controller public

Dojo setQuery() on DataGrid - all items disappear?

こ雲淡風輕ζ 提交于 2019-12-29 08:26:05
问题 I've racked my brain and done tons of research and testing and can't figure out what is going on. I have a Dojo datagrid which is declared statically with some HTML. Using the GUI, my users will add items to the DataGrid, which works as it should. However, I'd like to have a function that is called at a certain point that uses Dojo's setQuery to filter the data that shows in the DataGrid. The problem is that once I run the setQuery command, ALL of the data in the grid disappears, no matter if

How to customize App Designer figures in more ways than officially documented?

人盡茶涼 提交于 2019-12-29 04:57:26
问题 A recently published article in UndocumentedMatlab, mentions that App Designer figures are actually web pages using the Dojo Toolkit. This means we could theoretically manipulate the HTML DOM directly to achieve certain UI customizations that are otherwise unavailable. Below is an example of an App Designer figure definition, as appears in the .m file generated by the App Designer (on MATLAB R2016a): classdef domDemo < matlab.apps.AppBase % Properties that correspond to app components

How to Show External website inside another page without iFrame? [closed]

本小妞迷上赌 提交于 2019-12-29 04:19:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need to open External website inside my application without iFrame also I need to pass some header values to that external website. Help me.. 回答1: Some alternative solutions to an iframe are: AJAX - You can use the XMLHttpRequest object to retrieve data and inject it to your

How to link “extent-change” and “update-end” events in Dojo?

一曲冷凌霜 提交于 2019-12-25 17:04:00
问题 In ArcGIS JS API I need to trigger a method of my class when the processing after an extent change is complete. I didn't find any special event for this. extent-change triggers too early, when the data are not loaded yet. update-end is triggered also by the function I want to call, making an endless loop. So what I need is to link the two events together, the second one just once. But how? Most of my events look like this: this.events.push(on(this.map, "extent-change", lang.hitch(this, this.