<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,</div><div><br></div><div>I have been trying to get the Mobile Jquery Demo to work with my own data.&nbsp; Currently, I am trying to configure the application so that when a user clicks, the application will identify using WMSGetFeatureInfo as opposed to getting information from the sprinters layer.&nbsp; Openlayers is crashing when I try to display the results of WMSGetFeatureInfo.&nbsp; Has anyone had any luck configuring WMSGetFeatureInfo with the Mobile JQuery?&nbsp; If someone could help me, I would appreciate it.&nbsp; Thank You!<br></div><div><br></div>With help I have thus far:<br>* The click event to call WMSGetFeatureInfo<br>* Openlayers calls GeoServer to get WMSGetFeatureInfo<br>* The click event is registered to call a function named ShowWMSInfo<br>Unfortunately Openlayers crashes in the ShowWMSInfo, which
 is where I am trying to display the results from geoserver<br><br>Here is the code that I have thus far changed in mobile-base.js<div>#1&nbsp; Changed the select control to use WMSGetFeatureInfo<br></div><div><br></div><div>&nbsp;&nbsp;&nbsp; //var selectControl = new OpenLayers.Control.SelectFeature(sprintersLayer, {<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; autoActivate:true,<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; onSelect: onSelectFeatureFunction});<br>// ** updated selectControl code**<br>&nbsp;&nbsp;&nbsp; var selectControl = new OpenLayers.Control.WMSGetFeatureInfo({<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: 'http://demo.opengeo.org/geoserver/wms', <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: 'Identify features by clicking',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: [water],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryVisible: true,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 autoActivate:true<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //onSelect: onSelectFeatureFunction<br>&nbsp;&nbsp;&nbsp; });</div><div><br></div><div>#2&nbsp; Registered the recoded select control from #1 to call a function called ShowWMSInfo.<br></div><div><br></div><div>selectControl.events.register("getfeatureinfo", this, ShowWMSInfo);</div><div><br></div>#3&nbsp; NOT WORKING - &nbsp; On each click the ShowWMSInfo function is called. According to firebug, GeoServer is returning a result for WMSGetFeatureInfo.&nbsp; However, I cannot figure out how to display the results in openlayers.<br><br><div>function ShowWMSInfo(e) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var html = '&lt;table class="getfeatureinfo"&gt;';<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var html += '&lt;tr&gt;&lt;th colspan=2" class="layerTitle"&gt;' + "&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;tr&gt;"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (e.features &amp;&amp; e.features.length)
 {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var val = e.features[0].attributes.id;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById('WATER_TYPE').value = val;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return html += '&lt;/td&gt;&lt;/tr&gt;'';<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return html;<br>&nbsp;&nbsp;&nbsp; }<br></div><br></div></body></html>