|
POST
|
I think you ran into ESRI's new "standardized" SQL you can turn this off http://support.esri.com/en/knowledgebase/techarticles/detail/41561
... View more
03-31-2014
05:24 AM
|
0
|
0
|
965
|
|
POST
|
got it, but i don't know why had to change credentials.ssl = false; but i am using all ssl, so no idea why
... View more
03-28-2014
12:41 PM
|
0
|
0
|
805
|
|
POST
|
you are mostly right. THey were loading simultaneously I changed it to esri.id.initialize(idObject).then(lang.hitch(function() {
initMap();
})); and it looks like esri.id.initialize is never coming back?
... View more
03-28-2014
12:15 PM
|
0
|
0
|
805
|
|
POST
|
you dont have any requires? they are all commented out
... View more
03-28-2014
12:10 PM
|
0
|
0
|
1959
|
|
POST
|
Using token managed security, trying to bypass login with hardcoded credentials for intranet users. For some reason, even though the token comes back clean and the credential object is created, the login box still pops up? Shouldn't the IdentityManager know a token has been created and use it? I thought that is what the esri.id.initialize did function initPredefinedSecurity() {
//alert('in initPredefinedSecurity');
serverInfo = new ServerInfo();
serverInfo.server = 'https://www.mymanatee.org/arcgis03';
serverInfo.tokenServiceUrl = 'https://www.mymanatee.org/arcgis03/tokens/generateToken';
serverInfo.shortLivedTokenValidity = 720;
esri.id.registerServers([serverInfo]);
var def = esri.id.generateToken(serverInfo, {"username": "util", "password": "util"});
def.addCallback(lang.hitch(this, function (tokenInfo) {
//var idBase = new IdentityManagerBase();
//get token creation time in epoch
var creationTime = (new Date).getTime();
//calculate the token expiration based on short lived token validity
var expirationTime = creationTime + (serverInfo.shortLivedTokenValidity * 60000);
//create array of secured services
var idObject ={};
idObject.serverInfos= [serverInfo];
var credentials={};
credentials.userId = "util";
credentials.server = "https://www.mymanatee.org/arcgis03";
credentials.token = tokenInfo.token;
credentials.expires = expirationTime;
credentials.ssl = true;
credentials.creationTime = creationTime;
idObject.credentials = [credentials];
console.dir(idObject);
//credential object is correct
esri.id.initialize(idObject);
//sign in dialog pops up
}));
};
... View more
03-28-2014
12:00 PM
|
0
|
3
|
1899
|
|
POST
|
on(toggle, 'toggle' because your variable that is the basemaptoggle is also called "toggle'
... View more
03-28-2014
09:20 AM
|
0
|
0
|
2023
|
|
POST
|
oh sorry, then yes a combination of what matt and i said is right on(myBasemapWidget, 'toggle', function(){ var paneToClose = registry.byId('paneID'); if (paneToClose ._showing) { paneToClose .toggle(); } });
... View more
03-28-2014
09:04 AM
|
0
|
0
|
2023
|
|
POST
|
where are you placing or calling this code....confused on that I would put it in your button click.
... View more
03-28-2014
08:48 AM
|
0
|
0
|
2023
|
|
POST
|
I have a basemap toggle in my pane....I want to close the pane when the toggle is clicked. I can do this with buttons no problem...but the toggle is giving me a problem
<div data-dojo-type="dijit/TitlePane" id="Tools"
data-dojo-props="title:'Tools', closable:false, open:false">
<div data-dojo-type="dijit/layout/ContentPane" style="width:200; ">
<div class="toolbar"><span id="BasemapToggle" ></span></div>
<div class="toolbar"><input type="button" class="myButton" id="button2" value="Finished" /></div>
</div>
</div>
on(dom.byId("BasemapToggle"), "click", function () {
// CLOSE THE PANE WHEN Clicked
dijit.byId("Tools").set('open',false); //Close
})
var toggle = new BasemapToggle({
map: app.map,
basemap: "satellite",
className: "customToggle"
}, "BasemapToggle");
toggle.startup(); CLOSE THE BUTTONS LIKE THIS
on(dom.byId("button2"), "click", function () {
dijit.byId("Tools").set('open',false); //Close
})
On my expandopane I do var summPane = registry.byId('Tools');
if (!summPane._showing) {
summPane.toggle();
}
... View more
03-28-2014
08:43 AM
|
0
|
0
|
2023
|
|
POST
|
Great to see this is fixed in 3.9 as well. Good job JS team 🙂
... View more
03-28-2014
05:26 AM
|
0
|
0
|
1548
|
|
POST
|
I haven't been able to get this function to run properly. It works as expected in version 2.6, but I am at my wits end trying to get it working in 3.8. Any help is greatly appreciated. //Zoom to the POINT when the user clicks a row
function onRowClickHandler(evt){
var clickedTaxLotId = grid.getItem(evt.rowIndex).OBJECTID;
var selectedTaxLot;
dojo.forEach(map.graphics.graphics,function(graphic){
if((graphic.attributes) && graphic.attributes.OBJECTID === clickedTaxLotId){
selectedTaxLot = graphic;
return;
}
});
var taxLotExtent = new esri.geometry.Extent();
taxLotExtent.xmin = selectedTaxLot.geometry.x - .1;
taxLotExtent.ymin = selectedTaxLot.geometry.y - .1;
taxLotExtent.xmax = selectedTaxLot.geometry.x + .5;
taxLotExtent.ymax = selectedTaxLot.geometry.y + .5;
map.setExtent(taxLotExtent);
} There is only one item in here that is not AMD, dojo.forEach in your require "dojo/_base/array", alias it to "array" and change your line above to array.forEach(map.graphics.graphics,function(graphic){
... View more
03-27-2014
01:15 PM
|
0
|
0
|
1060
|
|
POST
|
they haven't dropped support, there never was any. ESRI's api (as far as I know) has always been dojo. Dojo is great, give it a try. A few months ago I spent some time getting all the jquery out of my code, and I am much happier now using only dojo and native javascript
... View more
03-27-2014
01:12 PM
|
0
|
0
|
1548
|
|
POST
|
that path needs to be correct to a file in your application
... View more
03-27-2014
06:16 AM
|
0
|
0
|
2742
|
|
POST
|
Also remember you cannot run html simply in the browser, it MUST be served up on a web server.
... View more
03-27-2014
04:56 AM
|
0
|
0
|
2742
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|