dojo

IBM Worklight 6.1 - Unable to have a working Dojo view transition

限于喜欢 提交于 2019-12-25 08:48:06
问题 I am new to working with worklight enviroment and started working it on recently. I am using dojo version 1.9 (the IBM supllied one) , worklight 6.1, OS windows 7, eclipse juno sr2 64bit, IE 10 (For RPE), Google chrome latest (As default browser). I have tried many widgets in dojo mobile and all of them work fine, i have been through other questions too like "Worklight 6.1 Android Applicaiton renders all views with no widgets" and followed all steps given in the solution and successfully

Why doesn't this Dojo snippet work?

纵饮孤独 提交于 2019-12-25 08:46:51
问题 So when I try to insert a div into the BorderContainer, my page does not load. What is going on? What am I doing wrong? If I comment out the banner lines, the border container loads just fine. If I put the div back in, the page no longer loads. 回答1: you have top define as ContentPane API. and Banner as domNode. so to set a domNode you need to set content. top.set('content', banner); if you want to add a widget (think of these as code, not HTML) to a content page you need to add it's dom. top

onComplete fires too soon

时光怂恿深爱的人放手 提交于 2019-12-25 08:46:48
问题 When should onComplete fire? In 8.5.2 it fires when the event has runned so If you set some values in the event they will reflect in the update that is executed using the XSP.partialGet. But in 8.5.3 in all browsers execpt IE the onComplete event fires and is returned before the event that it should be doing oncomplete for. Anybody seen this and perhaps have a solution for the problem? 回答1: The problem was in the standby Widget. an new version will be published. the n.style problem in dojo.js

anonymous js function with xhrpost dojo not returning data

狂风中的少年 提交于 2019-12-25 08:03:56
问题 var cType = function(templateId){ dojo.xhrPost({ url : "/mediation1.0.1/template/getCollectorType", handleAs : "text", headers : {"Content-Type":"text/html"}, postData : templateId, load: function(data){ return data; }}); }; When I call this function with cType(withSomeId), I get undefined. Even When I take local variable and assign data to that variable, returning thatvariable also not helping. 回答1: The problem is that your cType function does not return anything. var cType = function

Dijit form horizontalSlider is getting loaded for first time only?

对着背影说爱祢 提交于 2019-12-25 06:55:54
问题 I am using dojo scripts for creating charts, for zooming and panning I have used dijit slider. First time sliders are getting loaded correctly but second time( after coming back form another page) chart is getting loaded except these Sliders. Using Jquery for event handling. After refreshing page it's working fine. First time the CSS is <table> <tbody> <tr> <td class="pad" align="center">ZOOM X(<span id="scaleXValue">1</span></td></tr> <tr> <td> <table widgetid="scaleXSlider" id="scaleXSlider

onChange not sufficient to trigger query from Dojo Combobox

懵懂的女人 提交于 2019-12-25 06:38:04
问题 this is closely related to this post: Is there an onSelect event or equivalent for HTML <select>? ...but specifically for the Dojo ComboBox..(I am using Dojo w/ ArcGIS JSAPI). I have three combo boxes, which populate the successors using queries triggered by the selections from the dropdown list. My problem is that if the second combobox selection remains the same, the query is not triggered. I have tried using onblur and several other events instead of onchange, and tried to reset the value

Value not getting selected from an Autocomplete on Mouse button click

£可爱£侵袭症+ 提交于 2019-12-25 06:29:16
问题 I have a Jquery Autocomplete . Its working fine. Values are selected when i move up and down from keyboard arrow key or hover a mouse on a particular value. But when i press button to put my selected value inside text box it doesn't work, instead if i press enter on keyboard the value is inputted in text box. Let me give me my code for auto complete :: $(document).ready(function hello(){ var myVar2 = <%=request.getAttribute("variable1")%> $("input#assignedtoid").autocomplete({ source: myVar2

How to show all records at once in dojo dgrid?

﹥>﹥吖頭↗ 提交于 2019-12-25 05:33:17
问题 We are using dojo dgrid for tables in our web app. Generally, we use dgrid pagination but in one case we don't want to use pagination and show all records at once. I followed steps as mentioned in the following URL. But its not working. There is no error but it just don't show any records when I use SingleQuery. http://dgrid.io/tutorials/0.4/single_query/ 来源: https://stackoverflow.com/questions/30701456/how-to-show-all-records-at-once-in-dojo-dgrid

Deploying a Worklight app onto the Android Emulator is giving an error

£可爱£侵袭症+ 提交于 2019-12-25 05:24:13
问题 I'm trying to deploy an application to Android by using Worklight. I've seen a similar error to this posted before, however there weren't any concrete answers given. The error is triggered when I launch the app on an Android emulator, this is it: 08-13 08:22:26.262: E/Web Console(347): TypeError: Result of expression 'cordova.exec' undefined is not a function. at file:///data/data/com.Test/files/www/default/wlclient/js/wlgap.android.js:697 Now, I believe this js file is injected at run time,

How to update enhanced grid with new data

妖精的绣舞 提交于 2019-12-25 05:18:14
问题 I have an enhnaced grid connected to a JSONRest and i have it populating after the grid starts up. I'm confused as to how to update the Grid store when a new query is performed, can anyone help ? var store = new JsonRest({ target: "rest/search" }); dataStore = new ObjectStore({ objectStore: store }); /*set up layout*/ var layout = [[ {'name': 'Name', 'field': 'col1', noresize: true, 'width': '100%'}, ]]; /*create a new grid:*/ grid = new EnhancedGrid({ id: 'grid', store: dataStore, structure: