Help Zoom to selected features in JS

Discussion created by moralexluis on Sep 1, 2010
Latest reply on Aug 1, 2013 by bg3075
Hi guys, I was wondering If anyone of you know how to do this...

I have a query results, I want to make zoom to that query results, I think the properly name of it is Zoom to selected features ... please if anyone knows how to do it help me

By the way: In the results I told you about, I receive the X,Y, of what I'm trying to zoom.
Any code for it? in JavaScript