dojo

Dojo dialog close event on X (top-right)

一世执手 提交于 2019-12-04 01:24:17
Im using Dojo to create a simple dialog to create a user in a system. The problem is I get the error: Tried to register widget with `id==user_submit` but that `id` is already registered user_submit , is a Dojo button I have to finish the form inside the dialog. When I close the dialog by clicking it and submitting the form there is no problem in opening the dialog again (in the click event on the button I have this line of code: dijit.byId("user_submit").destroy(); but if I close the dialog through the [x]-link / button in the top-right corner I don't destroy the button and then can't open the

Javascript form.submit() not working in Firefox

ぃ、小莉子 提交于 2019-12-04 00:50:33
There are several questions/answers on this here , here and here and elsewhere, but they all seem JQuery specific and do not appear to apply to this (for example, I am NOT creating a new Form object, this is an existing form in the document. Also I am NOT using Jquery at all). I have a form which has to be modified before submission for reasons of IE7 compatibility. I have to strip out all the BUTTON tags from my form and then add a hidden field, but this is all in an existing form on the existing HTML page. This code works properly in IE and Chrome but doesn't work in Firefox (versions 23 &

MultiSelectCombobox issue in dojo

孤街浪徒 提交于 2019-12-03 22:23:15
问题 I needed the combobox with checkboxes in front of each option, to select multiple options. I tried using CheckedMultiSelect using "dropdown:true", It shows the value in the combobox like, 2 item(s) selected, 1 item(s) selected,etc when I select items. How to show the values selected in the text area of combobox separated by delimiter?? Should css or HTML or someotherthing has to be changed for checkedMultiSelect?? Thanks in advance. 回答1: As for your second question, you have to extend dojox

Exporting a dojo datagrid to a CSV file

夙愿已清 提交于 2019-12-03 21:35:37
I am looking to get a Javascript function which will export my datagrid (zero.grid.DataGrid) full of data into a CSV file or something similar which can be opened by a spreadsheet application. Is there any standard way of doing this out there.. I had tough time with using Exporter plugin with EnhancedGrid using servlet as backend. Finally I made it work by using iFrame: <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>CISROMM - Master Milestone List Editor</title> <!-- Include dojo dependencies --> <link rel="stylesheet" href="js/dojoroot/dojo/resources/dojo.css"> <link

Where can I find a list of icon images for the dojo toolkit dijit widgets?

强颜欢笑 提交于 2019-12-03 17:47:23
问题 Simple question I guess, but despite some googling I'm no closer to finding an answer. Does anyone know where to find a list of the icons available in the Dojo toolkit? 回答1: The best place to look at would be Dojo Toolkit nightly icon directory. Here you can view the CSS classes that correspond to all available icon styles, and if you go to the images directory you can actually see the icon sprites. Unfortunately this isn't as simple as a Class Name -> Icon Image mapping, but all the CSS

test suite paths when using ArcGIS JSAPI as an alternate loader in intern

杀马特。学长 韩版系。学妹 提交于 2019-12-03 16:38:16
I have an application built using ArcGIS Javascript API and I've been adding tests using intern. I run it under IIS in Windows 7 while developing. I had no trouble getting the intern tutorial working when getting started and after looking at How to specify alternate loader for intern I was able to set the loader in client.html to <script src="http://js.arcgis.com/3.7/"></script> and I was able get my tests running but only after I changed the path in both the query string and in intern.js to include the parent path as defined in IIS. For example, say my app is hosted at http://localhost

How to run Dojo DOH unit-tests through Jenkins?

限于喜欢 提交于 2019-12-03 15:59:27
问题 Has anyone tried integrating Dojo DOH unit-tests with Jenkins? I'd like to do the following, but don't want to reinvent it if this has already been done. So, I'm thinking: Kick off the DOH-tests from a post-build step in Jenkins and wait for the results Run the tests themselves in a headless-browser (e.g. Crowbar) Parse the succes/error-count from the HTML returned by Crowbar Find (or write) a Jenkins plugin that will (a) fail the build if there are failing tests, (b) render the test results,

How to define Module and use it in dojo with AMD?

痴心易碎 提交于 2019-12-03 15:47:55
I am maintaining and extending an old project which was pre-AMD. I wish to add an Chart to the application. for this, I have created a js file as follows: define(["dojox/charting/Chart",...."dijit/Dialog","dojo/dom-construct"], function (Chart) { function showDailyChart(data){ //code to show the chart in a dialog } return customModules.singleChart; }); I have saved this file as /customModules/singleChart.js In My main HTML Page, I have added it to the packages as follows: var dojoConfig = { parseOnLoad: true, packages: [....,{"name":"customModules", "location":location.pathname.replace(/\/[^/]

how to reset scroll position in a div using javascript

北城以北 提交于 2019-12-03 13:40:56
问题 I am working on a mobile hybrid application. In my html page, I have 3 tabs. When clicking a tab, the content of the scrollable div gets changed. My problem is when I scroll down the content of div (view) and click another tab, the content disappears (but the content is there). Please help me so I can reset the div scroll position when clicking any tab. Please give me suggestions only with JavaScript or CSS, not with JQuery as I am not using the JQuery library. 回答1: Without seeing code, i can

Testing a “Dojo” web application with Selenium

梦想的初衷 提交于 2019-12-03 10:36:13
Has anyone done some extensive automation with Selenium and a Dojo-heavy web app? I'm looking for any issues or problem that you might have run into or issues related directly to the combination of Selenium and Dojo. I've used Selenium extensively with a bunch of different web apps, including a few on Dojo. You should be fine. One practice I would recommend is to make sure all the components you'll be testing (both UI controls you'll be driving, as well as text components you'll be reading for testing) have ID tags set. Selenium has a bunch of elegant selectors to get at the elements you need,