dojo

Links/Clicks not working in Firefox after Using the Back button on an XPage

社会主义新天地 提交于 2020-01-05 07:58:51
问题 I'm finding that XPages I have, when loaded in Firefox, have an odd quirk that I can't seem to get around. On my XPage, there is a viewPanel, in which one of the columns is defined as such: <xp:viewColumn styleClass="viewAction" id="View"> <xp:this.value><![CDATA[#{javascript:""}]]></xp:this.value> <xp:viewColumnHeader value="View" id="viewColumnHeader2"> </xp:viewColumnHeader> <xp:image url="/imgs/viewBtn.png" id="image2" styleClass="linkImg"> <xp:eventHandler event="onclick" submit="true"

Links/Clicks not working in Firefox after Using the Back button on an XPage

徘徊边缘 提交于 2020-01-05 07:57:24
问题 I'm finding that XPages I have, when loaded in Firefox, have an odd quirk that I can't seem to get around. On my XPage, there is a viewPanel, in which one of the columns is defined as such: <xp:viewColumn styleClass="viewAction" id="View"> <xp:this.value><![CDATA[#{javascript:""}]]></xp:this.value> <xp:viewColumnHeader value="View" id="viewColumnHeader2"> </xp:viewColumnHeader> <xp:image url="/imgs/viewBtn.png" id="image2" styleClass="linkImg"> <xp:eventHandler event="onclick" submit="true"

Dojo EnhancedGrid: how to get selected column?

妖精的绣舞 提交于 2020-01-05 07:41:19
问题 In dojo enhanced grid, is there any way to get the selected columns? Currently I can get selected rows by using grid.selection.getSelected() but I don't know how to get the selected column. 回答1: Solved. Can be found with this: theGrid.focus.cell.field. This will give you the column name. There is also theGrid.focus.cell.index and theGrid.focus.cell.layoutIndex if integer is what you need instead of column name. 来源: https://stackoverflow.com/questions/4447578/dojo-enhancedgrid-how-to-get

jQuery addOption and selectOptions

爷,独闯天下 提交于 2020-01-05 07:23:09
问题 I have to deal with some old Javascript code that is throwing an error at addOption and selectOptions Error: Object has no method selectOptions Can someone explain me why is it not working? I am using jQuery 1.3 $("some_id").addOption(nodeId, nodeName); // add to list $("some_id").selectOptions(/^~~/i, true); // clear selection I solved the addOption line by this $("some_id")[0].options.add( new Option(nodeName,nodeId)); but I'm still stuck with selectOptions error. UPDATE just found out the

dojo and the offline application cache

我与影子孤独终老i 提交于 2020-01-05 07:06:07
问题 We've been working on an offline capable JavaScript applicaion using Dojo and the storage and offline capabilities available in newer browsers. The application is quite large, but it seems to load the larger files from the cache, and I can see that the application is in deed cached. Were using the applicationcache features, and there are no errors in the application cache as far as I and Chrome can see. However we run into problems. Apparently Dojo cannot load its lanugage resources, nor the

second dojo FilteringSelect control onChange event doesn't get fired

心已入冬 提交于 2020-01-05 07:05:24
问题 I'm working with arcgis Javascript Api 3.7 (wich includes dojo 1.9.1), and I have been developing a custom templated dijit that has two filteringSelect controls, the first one gets pupulated correctly, and i have a second one that gets populated when the user selects one item from the first one setting its data store at that particular moment. this second filteringSelect gets correctly populated everytime, but something happens with the onchange event, because the function handler never gets

Dojo stackContainer is not displaying children until window resize

核能气质少年 提交于 2020-01-05 05:26:08
问题 This is the widget I am trying to create. The goal is to have a stackContainer controlled by radio buttons at the top. I have tried the example in the dojo documentation, but it has the same errant behavior. define(["dojo/ready", "dojo/_base/declare", "dijit/_WidgetBase", "dojo/dom-construct", "dojo/_base/lang", "dojo/on", "dojo/dom-attr", "dijit/form/RadioButton", "dojo/dom-style", "dijit/layout/ContentPane", "dijit/layout/StackContainer", "tcs/Log"], function(ready, declare, _WidgetBase,

Displaying Data in Dojogrid using dojo.xhrget() method

杀马特。学长 韩版系。学妹 提交于 2020-01-05 04:34:12
问题 I want to display a set of data which i am retrieving by an asynchronous call to the server using dojo.xhrget() method. I am retrieving data through a URL and i want that everytime a user clicks in content pane a new set of values gets displayed in grid without refreshing whole page. The problem is that data is not getting displayed in Grid. I am receiving an error by xhrget() error method. The code for my script is :: <script> function populateGrid(){ dojo.xhrGet({ url: "http://localhost

Can't remove the value entered in the djFilteringSelect dojo control in xPages

我的梦境 提交于 2020-01-05 04:16:15
问题 I am using the djFilteringSelect control to show values in a dropdown as user type a value. The lookup and typehead is working fine. The user type a letter and the dropdown allow the user to select a value which is then displayed in the dropdown field. If the user now decide to remove the value first selected so that the combobox is empty and leave the field, then the first value in the list is now automatically filled in. The consequence of this is that if the user have added a value there

Code looking for modules in the wrong place

一世执手 提交于 2020-01-05 03:01:06
问题 I have created a multi-layer build using build.dojotoolkit.org (my first attempt) with 3 layers: dojo.js, dojox.js, dijit.js. Each js file is uploaded in its own folder (dojo,dojox,dijit). When I run the code, I would expect it to look in dijit.js to get the form modules like dijit.form.TextBox. But instead it tries to load dijit/form/TextBox.js and of course ends up with a 404 error. What am I doing wrong? The files are here if it helps: http://usermanagedsolutions.com/Demos/Pages 回答1: