<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P>Hi Vishal,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
<P>Try this php code as provided by&nbsp;Ary Sucaya</P>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$userInfo = new MgUserInformation($sessionId);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection = new MgSiteConnection();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection-&gt;Open($userInfo);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map = new MgMap($siteConnection);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map-&gt;Open($mapName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions = new MgFeatureQueryOptions();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions-&gt;SetFilter("$attributeName = '$attributeValue'");</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$layer = $map-&gt;GetLayers()-&gt;GetItem($layerName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$featureReader = $layer-&gt;SelectFeatures($queryOptions);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection = new MgSelection($map);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection-&gt;AddFeatures($layer, $featureReader, 0);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selectionXml = $selection-&gt;ToXml();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">echo $selectionXml;</P>
<P><FONT size=2>&nbsp;</FONT></P>
<P>execute that php code from your javascript function and add <FONT size=2><STRONG><FONT size=3>parent.parent.mapFrame.ExecuteMapAction(10);</FONT></STRONG> subsequently</FONT></P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Cheers !!</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Max<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Vishaal &lt;vs2k2000@rediffmail.com&gt;<BR>To: mapguide-users@lists.osgeo.org<BR>Sent: Friday, February 29, 2008 1:34:58 PM<BR>Subject: Re: [mapguide-users] Select To Features &amp; Zoom<BR><BR><BR>Hi Max,<BR><BR>i too want to do the same zoom to selected parcel thing. i have a list of<BR>records selected and now i want that if i click on a record then that record<BR>should get zoomed into. can you share your code with me and the logic about<BR>it....<BR>thanks in advance..<BR><BR>regards,<BR>Vishal<BR><BR><BR>max_samart wrote:<BR>&gt; <BR>&gt; Hi All,<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I am working&nbsp; on some application and what i want to do is that<BR>&gt; when i query and get the results in the grided format with&nbsp; icon(Link) for<BR>&gt; the records and when i click on that link/icon&nbsp; I can&nbsp; zoom to
 that<BR>&gt; geometry (ZoomToView) as well as select that geometry and display the<BR>&gt; record in the property pane,I am able to do the zoom to view for different<BR>&gt; record but how can&nbsp; i select the features as well as display the property<BR>&gt; in the property pane at the same time.Looking for some kind of<BR>&gt; suggestions.<BR>&gt; <BR>&gt; Cheers <BR>&gt; Max !!<BR>&gt; <BR>&gt; <BR>&gt;&nbsp; &nbsp; &nbsp; <BR>&gt; ____________________________________________________________________________________<BR>&gt; Looking for last minute shopping deals?&nbsp; <BR>&gt; Find them fast with Yahoo! Search. <BR>&gt; <A href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target=_blank>http://tools.search.yahoo.com/newsearch/category.php?category=shopping</A><BR>&gt; _______________________________________________<BR>&gt; mapguide-users mailing list<BR>&gt; <A href="mailto:mapguide-users@lists.osgeo.org"
 ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>&gt; <BR>&gt; <BR><BR>-- <BR>View this message in context: <A href="http://www.nabble.com/Select-To-Features---Zoom-tp14879630s16610p15752959.html" target=_blank>http://www.nabble.com/Select-To-Features---Zoom-tp14879630s16610p15752959.html</A><BR>Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a></body></html>