I have some JavaScript objects such as this (it's psuedo so I know if syntax is wrong):
[{ "divid":"1","x1":"35","y1":"100","height":"150","width":"150" },
{ "divid":"2","x1":"45","y1":"110","height":"150","width":"150" },
{ "divid":"3","x1":"55","y1":"120","height":"150","width":"150" },
{ "divid":"4","x1":"65","y1":"130","height":"150","width":"150" }]
And I'm curruently detecting mouse position with jQuery which is fine but...
I want to detect when I'm over one of those positions automatically return back the first or multiple columns of that JavaScript set almost like I'm querying it if the position is between one of those return the set list of columns.
I can't imagine I would have to do an .each()
over all of them everytime the mouse position changes? Maybe I would...
If anyone has done something like this before please point me in the right direction.
Thanks -Josh