Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the ESRI Javascript API to write a mobile web application. I have used the PopupMobile widget for viewing/editing attributes. This widget creates a popup on the map when a feature(s) is clicked and then provides a button to access the attributes in a new page.

I would like to bypass the popup altogether and go directly to the attribute page. Is this possible?


I created my own onClick handler instead of using the PopupMobile widget, but I'm getting some very interesting results in my attributes page.

Here is a screenshot of the AttributeInspector widget as it displays on the page I set up in my application:

enter image description here

As you can see, the various dijits that make up the AttributeInspector are not displaying properly on the page.

Here is the code I used to set up the AttributeInspector:

mapDeferred.addCallback(function(response) {
    map =;

    currentItem = response.itemInfo;


    var fl = currentItem.itemData.operationalLayers[3].layerObject

    var layerInfo = [{
        featureLayer : fl

    var attInspector = new AttributeInspector({
        layerInfos : layerInfo
    }, "attributeInspector");

    dojo.connect(map, "onClick", function(evt) {

        var toleranceInPixels = 10;
        var pnt = evt.mapPoint;

        var pixelWidth = map.extent.getWidth() / map.width;
        var toleranceInMapCoords = toleranceInPixels * pixelWidth;
        var ext = new esri.geometry.Extent(pnt.x - toleranceInMapCoords,
            pnt.y - toleranceInMapCoords,
            pnt.x + toleranceInMapCoords,
            pnt.y + toleranceInMapCoords,

        var q = new esri.tasks.Query();
        q.geometry = ext;




And here is the markup:

<!--Attribute Page-->
<div id="attributePage" data-role="page">
    <div data-role="header">
        <a href="#mapPage" id="mapPageBtn5" data-rel="page" data-theme='b'
    <div data-role="content">
        <div id="attributeInspector"></div>
share|improve this question
How are you going to tell the attribute page what record to edit? That is going to be the first part you need to consider. You can create your own on-click method when you select a object to trigger the edit function versus the infowindow. – D.E.Wright Mar 30 '13 at 3:34
@D.E.Wright - The user will still click on a feature as if they were opening the popup window, but instead of the popup opening on the map, it should go straight to the editing page. I tried to write my own onClick handler to do this, but the Attribute Inspector widget does not appear correctly in the new page. – Brian Apr 1 '13 at 14:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.