dojo

color dgrid cell based on cell value

前提是你 提交于 2019-12-13 00:26:03
问题 I've got a dgrid and I'm trying to set the cell background color based on the value of the cell using a formatter function and css. The dgrid is located within a div with ID UnMarkedTicketGridDiv formatter function: formatPriority: function (item) { return = "<td class='" + item + "'>" + item + "</td>"; }, css: #UnMarkedTicketGridDiv td.NORM { background-color:Green; color:Green; } Any idea why the cells arent getting colored green? I've verified the formatter function is being called, and

Associating a dojoAttachpoint to a div created dynamically?

北慕城南 提交于 2019-12-12 19:15:49
问题 I want to create a div dynamically and want to attach a dojoAttachpoint. How can i do so? Following code is used to add a div dynamically, but i want to attach a dojoAttachpoint too var txt = dojo.create("div", { id: "alert", role: "alert", 'class': "contenthide", innerHTML: msg }, dojo.body()); 回答1: Generally, you shouldn't need to. The dojoAttachPoint 's purpose to allow you to get an unambigious handle onto the div within your dijit when it's declared declaratively (particularly important

SOAP Requests in Dojo

…衆ロ難τιáo~ 提交于 2019-12-12 19:05:54
问题 I am trying to make a call to a SOAP web service through Dojo, but have found no relevant, up-to-date documentation on how to make a SOAP request. Does anyone have any experience making a SOAP request in Dojo? 回答1: IBM has something here. Unfortunately, it's not supported in Dojo. However, this library could be of use for JavaScript to SOAP connectivity. 来源: https://stackoverflow.com/questions/2495073/soap-requests-in-dojo

Getting JavaScript runtime error: irrationalPath, what does it mean?

守給你的承諾、 提交于 2019-12-12 18:43:12
问题 In my MasterPage i'm using the following script <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.3"></script> And in my application, i have this peace of JavaScript code document.getElementById(menu_number).src = "<%=HttpContext.Current.Request.ApplicationPath%>/UI/Common/Images/down-arrow.gif"; I also have the Application_AcquireRequestState method below public void Application_AcquireRequestState(object sender, EventArgs e) { // Get http context from

dojo with xstyle issue with css keyframes

你离开我真会死。 提交于 2019-12-12 18:25:27
问题 I am using xstyle in a dojo project, when trying to add some animation to a div using CSS 3 like: @keyframes loadingSpinner { from { transform: rotate(0deg) } to { transform: rotate(360deg) } } xstyle output (after using using xstyle doj build plugin): @keyframes loadingSpinner from { transform:rotate(0deg); } @keyframes loadingSpinner to { transform:rotate(360deg); } which does not make the animation works: I would like to know: How to fix this problem (maybe I should rewrite the css suing

dojo aspect not defined, dont understand why

我的梦境 提交于 2019-12-12 18:18:32
问题 I want to update from dojo 1.7 to 1.8.3 so I have to replace the dojo.connect command. switch: < div id="universalPushSwitch" data-dojo-type="dojox.mobile.Switch" style="float:right" class="mblSwRoundShape1"></div> Now I have: dojo.require("dijit/registry"); dojo.require("dojo/ready"); dojo.require("dojox/mobile/ListItem"); dojo.require("dojo/aspect"); dojo.ready(function(){ dojo.aspect.after(dijit.registry.byId("universalPushSwitch"), "onStateChanged", function(newState){ alert(newState); }

Non closable dialogbox from Extension Library

时光总嘲笑我的痴心妄想 提交于 2019-12-12 18:16:42
问题 I'm creating a dialogbox from ExtLib and I want to prevent users to press Escape or click on X icon. I've checked several posts about same implementation but none of them using a Dialogbox from ExtLib. I was able to hide icon with CSS and I'm trying with dojo.connect to prevent the use of Escape key: XSP.addOnLoad(function(){ dojo.connect(dojo.byId("#{id:dlgMsg}"), "onkeypress", function (evt) { if(evt.keyCode == dojo.keys.ESCAPE) { dojo.stopEvent(evt); } }); }); Note I'm able to get it

dojo opacity in ie9

泪湿孤枕 提交于 2019-12-12 18:12:54
问题 I have seen this bug report for dojo which was fixed in 1.5.2, however even with dojo 1.6 I still cannot get get opacity to work with dojo.style Example: http://jsfiddle.net/EXzhA/9/ What's the problem here? 回答1: While not a great fix, you can try setting opacity to 1.1 or some non 1 value. As to what is going on, a very preliminary look at it seems to indicate some strange floating point stuff going on. Regardless, the DXImage filter doesn't seem to want to accept 100 for opacity, or is

textIndicatorPrecision in dojox.dgauges using dojo

纵饮孤独 提交于 2019-12-12 18:01:21
问题 What is the name of the attribute in Dgauges to add a precision, it was textIndicatorPrecision in dojox.gauges, like noChange it's replaced by interactionArea. I added an indicator to my circular gauge using dojox.dgauges but I want to add a precision. Code : var indicatorText = new dojox.dgauges.TextIndicator(); indicatorText.set("indicator",indicator); indicatorText.set("x", 130); indicatorText.set("y", 154); gauge.addElement("indicatorText", indicatorText); Thank you. 回答1: There is no

The value of my function is undefined

牧云@^-^@ 提交于 2019-12-12 17:27:19
问题 I have this function wich will translate strings and phrases for other functions and should return an array with the translated parts. When I try to call the function in another function and captcher the returned value, I keep recieving the message that the returned value is undefined. When I don't let the translate function return a value but make her do an alert with the value she should return .. everything goes well. So their is something I do what prevents the function translate() to