dojo

Get column index in onresizecolumn of declarative dojox.grid.datagrid

我与影子孤独终老i 提交于 2019-12-25 00:36:16
问题 In a declarative dojox.grid.datagrid, am using onresizecolumn in table tag. onresizecolumn="columnResize(this.id,this.cellIdx)" onresizecolumn calls a function. on resizing particular column i want to get the cellIdx. <div class="claro" id="eterte" name="dataGrid" onclick="getConnect('inner__eterte');setWidgetproperty(this.id,'xy','inner__eterte');" ondblclick="editCustomGrid(this.id)" onmouseup="setDocStyle(this.id)" style="height:200px; left:39px; position:absolute; top:251px; width:950px;"

How to programatically add and use elements (dialog box in this case)

谁都会走 提交于 2019-12-25 00:28:18
问题 So My first though was, that adding more, and more HTML elements is not a way to go, and I come up with this solution var Jaxi = { CurrentLocation: '/', showLoginDialog: function () { dojo.place('<div data-dojo-type="dijit.Dialog" style="width:600px;" id="loginDialog"><div id="dialog-content"></div><a href="javascript:Jaxi.CloseDialog()">Close</div>', dojo.body()) dojo.xhrGet({ url: "/Account/SingIn?ReturnUrl=" + Jaxi.CurrentLocation, load: function (result) { dojo.byId("dialog-content")

Loading encoded JSON into Dojo Grid

末鹿安然 提交于 2019-12-25 00:25:01
问题 I am programming in php, I want to take an array I have (which is extracted from mysql result set), convert it to JSON and then use it in dojox.grid.DataGrid . I got an idea from this link: I used the following on the array (in a file called getJSON.php ) echo $ajax = "{identifier: 'db_id', 'items':".json_encode($array)."}"; Then I try doing this (in my main page): var store = new dojo.data.ItemFileWriteStore({ url: 'getJSON.php' }); Everything else is exactly as the Dojo documentation

dojo1.7 layout acting screwy

六月ゝ 毕业季﹏ 提交于 2019-12-24 22:51:23
问题 I'm trying to make a simple layout work using dojo1.7. Pretty much what I want is: a header row with a bunch of links and stuff that spans the entire page a footer row with a bunch of links and stuff that spans the entire page a side panel on the left with a tree in it a central panel with some tabs in it I first made all the widgets and got them all displaying on the same page. Everything was behaving as expected before I started playing with the layout (the relevant code is included at the

Why doesn't this Dojo 1.9/JS code work in Internet Explorer 7?

Deadly 提交于 2019-12-24 22:27:05
问题 We are having a problem with a web application that uses Dojo 1.9. The application works fine in Chrome, Firefox and IE 10/11 but we are getting reports of a problem in IE 7. UNFORTUNATELY , I have no way to test this directly because by corporate directive, IE 7 was removed from all developer machines. So I am responsible for fixing a bug I have no way to duplicate. Because of user feedback, all the buttons in the application were changed from type="submit" to type="button" and an onclick()

Dynamically assign single Dojo Tooltip to multiple Nodes

血红的双手。 提交于 2019-12-24 21:13:04
问题 Imagine that we have a widget with a list of nodes (e.g. divs). We would like to display a Dojo Tooltip on mouseover. The elements inside are generated dynamically, so we have to add Tooltips programmatically. The strategy is to first define the Tooltip single time during postCreate and then pass it to handler-function which will dynamically add it to the nodes. postCreate: function() { var _this = this; var fooTooltip = new Tooltip(); this.own(on(this, '.elements-container-item', function(e)

Cross site scripting(XSS)

十年热恋 提交于 2019-12-24 20:12:57
问题 I am loading content from another page and depending on the content of page, changing content of my page and this is giving me cross site scripting issues. When i use iframe, since the content is from other domain, content of iframe becomes inaccessible. When i use ajax and try to inject the content as plain html code, XmlHttpRequest object throws permission denied exception due to cross site scripting. When i use JSONP, such as getJSON in JQuery, it only supports GET protocol and it is not

DojoToolkit AccordionContainer

心不动则不痛 提交于 2019-12-24 19:19:06
问题 How easy is it to make AccordionContainer provided with Dojotoolkit to slide up and down On MouseHover of Title rather than onMouseClick of the title pane. 回答1: This is fairly straightforward, but involves connecting to the semi-private _buttonWidget property for each child pane, so I can't guarantee that future versions of the toolkit won't break it. That said, I've tested in with the version of Dojo 1.3 on AOL's CDN. Basically, after you've called startup() on your AccordionContainer, you

Intern-cucumber plugin error: A plugin named “cucumber” has not been registered

爷,独闯天下 提交于 2019-12-24 19:14:04
问题 I'm trying to get the intern-cucumber plugin working. I get the following error: Error: A plugin named "cucumber" has not been registered at Node.BaseExecutor.getPlugin @ src\lib\executors\Executor.ts:387:12 @ tests\addition.js:6:29 at runFactory @ node_modules\dojo\dojo.js:1134:43 at execModule @ node_modules\dojo\dojo.js:1262:5 at execModule @ node_modules\dojo\dojo.js:1253:12 @ node_modules\dojo\dojo.js:1297:6 at guardCheckComplete @ node_modules\dojo\dojo.js:1277:5 at checkComplete @ node

Display Dojo Dialog over Google Earth plugin

南楼画角 提交于 2019-12-24 18:42:57
问题 Common problem: I'm writing a web app with Dojo that has Google Earth front and centre (via the plugin), and I want to display Dojo dialog boxes (such as confirmations and forms) over the Google Earth display. The dijit.Dialog widget is inevitably rendered underneath the Earth display, even when the dialog has a very large z-index, and the Earth container (and internal elements) have negative z-indexes. This question is relevant - it seems due to the IFramey nature of the plugin that a shim