dojo

Dojo - Issue loading widget cross-domain

谁都会走 提交于 2019-12-11 18:12:30
问题 I'm working on a project that requires that some custom Dojo widgets (i.e., widgets we have written ourselves) are loaded from another server. Despite my best efforts over several days, I cannot seem to get Dojo to load the widgets. Dojo is loaded from the Google CDN, the widget is loaded from www.example.com, and the website is located at www.foo.com. I cannot post the actual project files (this is a project for a company), but I have reproduced the error with smaller test files. Test.html

Dojo.Connect with click event for div element inside loop

只愿长相守 提交于 2019-12-11 18:07:56
问题 I'm trying to show alert message including click event on div element that are sought through a loop. The problem is that in any div I click, it is only displayed the alert of the last element. How can I solve? I do not understand the logic being performed. for (var i = 0; i < this.legend.layerInfos.length; i++) { var sNomeDiv = ""; var sMensagem = ""; if (this.legend.layerInfos[i].layer.visible) { sNomeDiv = this.legend.id + "_" + this.legend.layerInfos[i].layer.id; if (this.legend

DOJO and DIJIT can not parse same ID twice?

為{幸葍}努か 提交于 2019-12-11 17:52:14
问题 I am having a problem while working with DOJO where I will dynamically load a div with some content and then run parser.parse(dom.byId("mainDiv")); with the respective requires. And that works beautifully the first time. The second time however I end up running into a problem where it just shows the content no longer activated or styled. On a second run what I do is remove all the html in the div and then replace the html with basic unparsed text and then I parse it again. Now I am guessing

Dojo chart not working in Firefox, Explorer

对着背影说爱祢 提交于 2019-12-11 17:30:57
问题 I am using a script with a dojo chart inside a tab: chart page. If you open the chart page with Google Chrome the chart is visible. If you open it with Firefox or Explorer 11 the chart is NOT visible. All my browsers are updated to their latest versions. Can somebody tell me why am I getting this error? This is my script: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/themes/calcite/dijit/calcite.css"> <script type="text/javascript" src="http://ajax

Securing Java Rest Service : JSON WebToken (JWT ) or oAuth 1.0?

我的未来我决定 提交于 2019-12-11 16:56:34
问题 I would like to know, JWT or oAuth 1.0 is best approach for securing Rest services.We are planning to develop a Dojo based web application and JAX-RS rest based web-service.Could someone help me on this ?. It will be really good if you can suggest some sample code for implementing the same in Java. Thanks in Advance. 回答1: JWT and OAuth are the standards. JWT standards tell us how to create token which will be shared between server and client(browser or API) to maintain the states.

Used dijit css in two pages, but working in first page only, in second page getting blank page

我是研究僧i 提交于 2019-12-11 16:46:43
问题 I have used dijit css for dijit/horizontalSlider in two pages , slider is getting loaded in first page but in second page getting blank. dojoz/data/DataGrid also loaded correctly in first page, but in second page getting blank. UPDATED: I have two buttons in home.html(parent page) and calling django templates grid.html and move.html. Here is grid.html source code <!DOCTYPE html> <html > <head> {% load staticfiles %} <link rel="stylesheet" href="{% static 'pmda_app/dojo/../dijit/themes/claro

Can you define tooltips in Dojo wijit template?

天涯浪子 提交于 2019-12-11 16:32:31
问题 I've been trying to get a Dojo (1.6) dijit.Tooltip to work when defined in a wijit template. So, if I have wijit template that includes the following: <a data-dojo-attach-point="tooltipMe" href="" onclick="return false;"> Show a Tooltip </a> <div data-dojo-type="dijit.Tooltip" data-dojo-props="connectId:'tooltipMe'"> Got to love hovering over links. Sometimes you a get a free tooltip </div> I can see the link of course, but nothing happens when I hover. Scouting round the newsgroups it seems

Dojo documentation alternative

青春壹個敷衍的年華 提交于 2019-12-11 16:16:02
问题 I've been developing dojo widgets lately but I'm still new to dojo so I need a lot of help from the dojo website https://dojotoolkit.org/documentation/ to understand different modules but it's been down for like a week. Is there other places that documented this api? Thank you. 回答1: I recommend using Dojo 2.0. The website http://dojotoolkit.org is for version 1.0. More information about dojo 2.0 you can find on https://dojo.io/ or GitHub https://github.com/dojo. I would like to notice that

Not able to convert String BST date format to UTC in javascript

故事扮演 提交于 2019-12-11 16:14:27
问题 I have a string like 07-Oct-2019 11:02 in BST format .I have to convert into UTC time in same format which will be 07-Oct-2019 10:02 . I have tried many ways and tried to find some inbuilt function but nothing worked . I tried to write a function which will split string and then convert it into date and then UTC but that also did not work . This is what i have tried var fullDate = "07-Oct-2019 11:02"; fullDate = fullDate.split(' '); var date = fullDate[0].split("-"); var time = fullDate[1];

How to sort a dojo datagrid cell correctly when formatter accesses other row content

十年热恋 提交于 2019-12-11 15:38:53
问题 I have a problem sorting a dojo datagrid (enhanced version) correctly, because the formatter for the column in question accesses a 2nd value of the same data row via rowIndex. When this column is sorted the underlying array does not change and the row Index accesses the same row as before (2nd value remains) while the value is sorted correctly. Here is an example of what I mean: The column "country" displays the name of a country and a flag corresponding to the nation. country.name is the