<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11/28/2012 15:00, yassine bouderaa wrote:
    <blockquote
cite="mid:CA+1EvYS-qWM_9UJbJyhWSw7EKWtmwSyZooXRiPzAJOah8na+Yg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thanks
          for your answer. in matter of fact I do the getfeatureinfo(wms
          request) but I don't know how can'I extract the PK from it.
          here is a part of my code which get the feature data .</div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <div>map.events.register('click', map, function (e) {</div>
          <div>  //alert(map.getExtent().toBBOX());</div>
          <div>  x1=parseInt(e.xy.x);</div>
          <div>  y1=parseInt(e.xy.y);</div>
          <div>    var url = '<a moz-do-not-send="true"
              href="http://localhost:8181/geoserver/cite/wms"
              target="_blank" style="color:rgb(17,85,204)">http://localhost:8181/geoserver/cite/wms</a>'</div>
          <div>      + "?REQUEST=GetFeatureInfo"</div>
          <div>      + "&EXCEPTIONS=application/vnd.ogc.se_xml"</div>
          <div>      + "&BBOX=" + map.getExtent().toBBOX()</div>
          <div>      + "&X=" + x1</div>
          <div>      + "&Y=" + y1</div>
          <div>      + "&INFO_FORMAT=text/html"</div>
          <div>      + "&QUERY_LAYERS=cite:test"</div>
          <div>      + "&LAYERS=test"</div>
          <div>      + "&FEATURE_COUNT=50"</div>
          <div>      + "&SRS=EPSG:900913"</div>
          <div>      + "&STYLES="</div>
          <div>      + "&WIDTH=" + map.size.w</div>
          <div>      + "&HEIGHT=" + map.size.h;</div>
          <div>    window.open(url,</div>
          <div>      "getfeatureinfo",</div>
          <div>     
            "location=10,status=10,scrollbars=1,width=600,height=150"</div>
          <div>    );</div>
          <div>  });</div>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </div>
      </div>
    </blockquote>
    <br>
    this is really a dirty way to do a GetFeatureInfo request. You
    should use the OpenLayers.Control.WMSGetFeatureInfo control. You can
    control the output format with the infoFormat property (defaults to
    'text/html', but you can use 'application/vnd.ogc.gml' for GML).<br>
    <br>
    If you use the 'application/vnd.ogc.gml' infoFormat then the GML is
    available under the 'features' property of the getfeatureinfo event
    listener<br>
    <br>
    <blockquote
cite="mid:CA+1EvYS-qWM_9UJbJyhWSw7EKWtmwSyZooXRiPzAJOah8na+Yg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">but
          the probleme here is the data is displayed in a new window
          page !!!!</div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">is
          there anything you can do for more help and thank you </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
</pre>
  </body>
</html>