dojo.connect(dijit.byId("grid"), 'onRowClick', function(e) { var rowdata = grid.getItem(e.rowIndex); var theId = rowdata.OBJECTID; theFeatureLayer.clearSelection(); var query = new esri.tasks.Query(); query.objectIds = [theId]; theFeatureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(features){ var theExtent = features[0].geometry.getExtent().expand(2.5); map.setExtent(theExtent); }); });
//Get the screen resolution and scale it back 10% (for use with the new window) var theWidth= 0.9 * screen.width; var theHeight= 0.9 * screen.height; var theOptions = 'height=' + theHeight + ',left=25,top=25,width=' + theWidth; window.open(theUrl,'_blank',theOptions);
<script> function searchOnReturn(e) { if (typeof e == 'undefined' && window.event) { e = window.event; } if (e.keyCode == 13) { dojo.byId('btnOwnerSearch').click(); } } </script> Owner name:<input type="text" id="ownerName" size="60" value="Katz" onkeypress="searchOnReturn(event);"/>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.