|
POST
|
OK - just adding some knowledge here - if anyone else is using VMware AppVolumes and having issues running Arcmap whilst provisioning (getting the erro this thread is about) then I found disabling the VMWare SVGA 3D card enables you to run.
... View more
02-24-2018
08:43 AM
|
1
|
0
|
6056
|
|
POST
|
Yep. And with widget.blur(). Odd. Changing the actual text in the non-active buttons is instant, but I guess as the Tick marker is CSS controlled it needs some event to trigger the refresh. I guessing. Anyway, all working - I never claimed any of my "code" is elegant! Many thanks
... View more
02-19-2018
11:56 PM
|
0
|
0
|
725
|
|
POST
|
OK - in case anyone wants the full answer this is the AMD version of the function function toggleButtonIcon(tool) {
var domNodes= query('.dijitToggleButton', this.domNode);
domNodes.forEach(function(domNode){
var widget= registry.getEnclosingWidget(domNode);
if (widget == tool) {
dojo.attr(widget, "checked", true);
} else {
dojo.attr(widget, "checked", false);
}
widget.focus()
})
tool.focus()
} Not only does it now use the dojo query, but it also needed a focus() to make only one appear active - the hack way I've done it is to set the focus to each of the results ond then at the end set it back to the one clicked - there maybe a better way, but this works.
... View more
02-19-2018
12:04 PM
|
1
|
2
|
725
|
|
POST
|
Sorry, missed your reply - I had edited earlier post. yes setting checked "works" so code is now function toggleButtonIcon(tool) {
var domNodes= query('.dijitToggleButton', this.domNode);
domNodes.forEach(function(domNode){
var widget= registry.getEnclosingWidget(domNode);
if (widget == tool) {
dojo.attr(widget, "checked", true);
} else {
dojo.attr(widget, "checked", false);
}
})
} But the tick (the style I have to indicate the checked status" stays put until I mouse over the button - then it goes as the button gets the mouse over effect.
... View more
02-19-2018
09:36 AM
|
0
|
3
|
2603
|
|
POST
|
Yes, I'll do that, and add the final code when done - the logic is workimng, just can't get the old button to uncheck, but I'll work that out (hopefully) - odd the button gets the attribute changed, but the tick I use to show active is still there until I move the mouse over it.
... View more
02-19-2018
09:21 AM
|
0
|
5
|
2603
|
|
POST
|
Doh - Of course, sorry, re-read your last post, plus my code - I was comparing wrong variable "widget" is the one I needed. Cheers
... View more
02-19-2018
09:14 AM
|
0
|
1
|
2603
|
|
POST
|
What is returned by the click event of the button : registry.byId("pan").on("click", function () {
navToolbar.activate(Navigation.PAN);
toggleButtonIcon(this)
}); Is the full object., whilst what gets returned from a dojo query is the node Now, I can return the id of the object - that's easy, but can't seem to find a way of returning the id of the node. Many thanks for your time. Sorry if I am getting terminology a bit wrong/
... View more
02-19-2018
09:11 AM
|
0
|
2
|
2603
|
|
POST
|
Sorry, I should have said - I tried that first. The two things aren't the same - this is doimnode <span class="dijit dijitReset dijitInline dijitToggleButton dijitToggleButtonChecked dijitChecked" role="presentation" widgetid="pan"><span class="dijitReset dijitInline dijitButtonNode" data-dojo-attach-event="ondijitclick:__onClick" role="presentation"><span class="dijitReset dijitStretch dijitButtonContents" data-dojo-attach-point="titleNode,focusNode" role="button" aria-labelledby="pan_label" tabindex="0" id="pan" style="user-select: none;" aria-pressed="true"><span class="dijitReset dijitInline dijitIcon dijitCheckBoxIcon" data-dojo-attach-point="iconNode"></span><span class="dijitReset dijitToggleButtonIconChar">●</span><span class="dijitReset dijitInline dijitButtonText" id="pan_label" data-dojo-attach-point="containerNode">Pan</span></span></span><input type="button" value="" class="dijitOffScreen" data-dojo-attach-event="onclick:_onClick" tabindex="-1" aria-hidden="true" data-dojo-attach-point="valueNode"></span> > Whilst "tool" is a full object - image as easier to show. In the Chrome Console Cheers ACM
... View more
02-19-2018
08:59 AM
|
0
|
4
|
2603
|
|
POST
|
Hi I'm slowly refactoring my legacy app into AMD style. I have code to change the style of the navigation buttons function toggleButtonIcon(tool) { //only the tools in the toolbar are dijit togglebuttons so can iterate thru them
registry.byId.byClass("dijit.form.ToggleButton").forEach(function (togbtn) {
if (togbtn == tool) {
togbtn.attr("checked", true);
} else {
togbtn.attr("checked", false);
}
});
}
and am having difficulty working out the AMD alternative form ByClass, as it seems to have changed - dijit/registry — The Dojo Toolkit - Reference Guide Note that for backwards compatibility, the dijit.registry global variable (as opposed to the dijit/registry module) includes array iterator methods (forEach, filter, byClass, map, every, and some). However, AMD code should not expect these functions to be available in the Object returned from require([“dijit/registry”]). My ideal is that my code will need not much, if any, change for the v4 API when all the features I use are in it, so I don't really want to have anything that will break later. Any help gratefully received! Cheers ACM edit I have now got as far as function toggleButtonIcon(tool) {
var domNodes= query('.dijitToggleButton', this.domNode);
domNodes.forEach(function(domNode){
var widget= registry.getEnclosingWidget(domNode);
console.log(domNode)
console.log(tool)
if (domNode == tool.innerHTML) {
console.log("yay")
} else {
console.log("nay")
}
}) But the Dojo query is returning the node whilst I am getting the full object passed into the function. My brain is tired and I can't work out how to compare the two ? I'll investigate getting the id out of the node
... View more
02-18-2018
04:38 AM
|
0
|
12
|
3489
|
|
POST
|
ok - old thread and the Git example is long gone, and I've got everything "working" but I do get this error on "closing" the pane (really hiding it) TypeError: Cannot read property 'addNode' of undefined
at Object._dock (js.arcgis.com/3.23/dojox/layout/FloatingPane.js:10)
at js.arcgis.com/3.23/init.js:63
at Object.<anonymous> (js.arcgis.com/3.23/dojox/layout/FloatingPane.js:8)
at d.Animation.onEnd (js.arcgis.com/3.23/init.js:63)
at d.Animation._fire (js.arcgis.com/3.23/init.js:248)
at d.Animation._cycle (js.arcgis.com/3.23/init.js:251)
at Object.<anonymous> (js.arcgis.com/3.23/init.js:63)
at Object.c [as run] (js.arcgis.com/3.23/init.js:119)
at js.arcgis.com/3.23/init.js:63 But many thanks for the earlier post.
... View more
02-16-2018
09:54 AM
|
0
|
0
|
2294
|
|
POST
|
Yes - as I said - it didn't seem to like me having user credentials in the proxy config - luckilly I don't need them at the moment, taking them out made everything work
... View more
12-19-2017
01:26 AM
|
0
|
0
|
1628
|
|
POST
|
Edit #2 Sorted it (I think) it wasn't happy I had a user name and password in the config (these services don't need them) - I may still have an issue when I come to services that DO need them. Odd.
... View more
12-04-2017
01:42 AM
|
0
|
0
|
1628
|
|
POST
|
More info, changing the Proxy config from <serverUrl url="http://server name" To <serverUrl url="http://server name/arcgis/rest/services/LIVEinternal/aerials/MapServer" moves the error from a 403 to the Server Error in '/' Application. The request was aborted: Could not create SSL/TLS secure channel. erorr - which to me looks like something is missing in the way I am testing the site in VS
... View more
12-04-2017
01:36 AM
|
0
|
1
|
1628
|
|
POST
|
Hi We've moved on and we now are encouraged to use VS correctly, with Source Control and local testing before it goes anywhere near a server Alas, my knowledge of VS in the modern world is lacking. As when I try to browse my site from VS, it goes to a localhot:1234 addresses and the proxy just fails to work at all, I get "Unable to load /proxy/proxy.ashx?http://<server name>/arcgis/rest/services/LIVEinternal/aerials/MapServer? f=json&dpi=96&transparent=true&format=png8 status: 500" With this as more info when I try to go direct to the URL The request was aborted: Could not create SSL/TLS secure channel. I've tried various changes to the proxy config, but just can't find the magic combination. Currently it is <ProxyConfig allowedReferers="*"
mustMatch="true">
<serverUrls>
<serverUrl url="http://<server name>/arcgis/"
username="webmap"
password="password"
matchAll="true"/>
<serverUrl url="https://<server name>/arcgis/"
username="webmap"
password="password"
matchAll="true"/>
</serverUrls>
</ProxyConfig> I would ideally like to get shot of the proxy, but the print service fails in IE11 without it 😞 Testing the proxy page with http://localhost:62146/proxy/proxy.ashx?ping gives { "Proxy Version": "1.1.2", "Configuration File": "OK", "Log File": "Not Exist/Readable"} So I think that is OK. Changing the allowedRefeerers to http:\<servername> changes the error from a 500 to a 403 And the full error is {"error": {"code": 403,"message":"Proxy has not been set up for this URL. Make sure there is a serverUrl in the configuration file that matches: http://<server name>/arcgis/rest/services/BaseMapOSNonTiled/MapServer?f=json&dpi=96&transparent=true&format=png8 http://<server name>/arcgis/rest/services/BaseMapOSNonTiled/MapServer?f=json&dpi=96&transparent=true&format=png8"}} I also can't get my head around this is in the config url: Location of the ArcGIS Server service (or other URL) to proxy. Specify either the specific URL or the root (in which case you should set matchAll="false"). matchAll="true": When true all requests that begin with the specified URL are forwarded. Otherwise, the URL requested must match exactly. To me that is contradictory, the first bullet says you need matchAll to be false where you just have the root, the second bullet seems to contradict that" Confused! Cheers ACM
... View more
12-02-2017
03:20 AM
|
0
|
4
|
2517
|
|
POST
|
Similar with me. I am trying to avoid the proxy (more later) all works fine, apart from printing in IE11 when I get the "If making a request to a CORS enabled server, please push the domain into esri.config.defaults.io.corsEnabledServers." - even through I do push the site that I am making a request to, The reason why I'm switching proxy off, apart from performance, is that I just can't get my head around the config for testing, we now are using a proper version control in Visual Studio so I have to test using VS, and the "localhost" seems to fail, even when I change the config. Although I'm going to look at why that is later, if I can move away totally it would be great. Any ideas why just IE11 is having issues?
... View more
12-02-2017
02:28 AM
|
0
|
0
|
918
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|