<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><title></title><head><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css"> html, body {overflow-x: visible; } html { width:100%; height:100%;margin:0px; padding:0px; overflow-y: auto; overflow-x: auto; }body { font-size: 100.01%; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; background-color:transparent; overflow:show; background-image:none; margin:0px; padding:5px; }p { margin:0px; padding:0px; } body { font-size: 12px; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; } p { margin: 0; padding: 0; } blockquote { padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; } blockquote.quote { border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; } .misspelled { background: transparent url(//webmailerng.1und1.de/static_resource/mailclient/widgets/basic/parts/maileditor/spellchecking_underline.gif) repeat-x scroll center bottom; } .correct {} .unknown {} .ignored {}</style></head><body id="bodyElement" style="">
<basefont size="2" face="Verdana"><p><font face="Verdana" size="2">Hi Dan,</font><span></span></p><p id="__paragraph__1319806742000" style=""><br><font style="" size="2"><span></span></font></p><p id="__paragraph__1319806742000" style=""><font style="" size="2"><span>yes, you're right! I forgot, the port the geoserver is responding to requests is also involved in the domain recognition. Therefore it could help using mod_jk with geoservers jetty engine to be able to omit the port when requesting the FeatureInfos (instead of using ProxyHost).... I've to confess that I'm not sure if the response will have a port number or not, which eventually again could cause the browser security concerns.</span></font></p><p id="__paragraph__1319806742000" style=""><br><font style="" size="2"><span></span></font></p><p id="__paragraph__1319806742000" style=""><font style="" size="2"><span>João<br></span></font></p><font face="Verdana" size="2"><br><br><blockquote class="quote" style="font-size: 12px;" face="Verdana" type="cite">----- Ursprüngliche Nachricht -----<br>Von: Dan Lear<br>Gesendet: 28.10.11 14:56 Uhr<br>An: lissabon@online.de, openlayers-users@lists.osgeo.org<br>Betreff: RE: [OpenLayers-Users] display results of WMSgetfeatureinfo<br><br><div style="">Thanks João,
<br>
<br>But geoserver and apache/openlayers are on the same machine, that said, I added the proxy information and it all worked.
<br>
<br>Thanks very much for your help,
<br>Dan
<br>
<br>
<br>
<br>-----Original Message-----
<br>From: lissabon@online.de [mailto:lissabon@online.de] 
<br>Sent: 28 October 2011 13:45
<br>To: Dan Lear; openlayers-users@lists.osgeo.org
<br>Subject: RE: [OpenLayers-Users] display results of WMSgetfeatureinfo
<br>
<br>Hi Dan,
<br>
<br>if you try to query data cross-domain you could use a proxy to achieve what you like (or have your service running on the same machine as your geoserver).
<br>
<br>look here:
<br><a href="http://docs.openlayers.org/library/request.html" target="_blank">http://docs.openlayers.org/library/request.html</a>
<br>
<br><a href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost" target="_blank">http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost</a>
<br>
<br>Hope this helps.
<br>João
<br>
<br>
<br>
<br>
<br>Hi,
<br>
<br>I have code to generate a WMSGetFeatureInfo request which works fine:
<br>
<br>getInfo = new OpenLayers.Control.WMSGetFeatureInfo({
<br>                url: 'http://MY_URL/geoserver/dassh/wms',
<br>                title: 'identify features on click',
<br>                layers: [dasshData],
<br>                queryVisible: true
<br>            });
<br>getInfo.infoFormat = 'text/html';
<br>getInfo.events.register("getfeatureinfo", this, getResults);
<br>map.addControl(getInfo);
<br>getInfo.activate();
<br>
<br>function getResults(e) {
<br>
<br>     document.getElementById('resultTxt').innerHTML = e.text;
<br>
<br>}
<br>
<br>and I have a div tag "resultTxt" that I want the returned information displayed 
<br>in, but it is blank (as is e.text)
<br>
<br>
<br>I can't capture the response and get it in the div, and looking at Firebug I 
<br>can open the getfeatureinfo in a new tab and display the table but the firebug 
<br>link is red, even though it reports a 200 OK status.
<br>
<br>Any help?
<br>
<br>Thanks
<br>Dan
<br>_______________________________________________
<br>Users mailing list
<br>Users@lists.osgeo.org
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
<br>
<br></div></blockquote></font></body></html>