[Greasemonkey] [help] Google Local View Based Refresh

Chris McKeever techjedi at gmail.com
Fri Apr 7 00:25:01 EDT 2006


Trying out my first GM script and running into a bit of a road block.

Intended Results:

When using Google Local, when you do a search, results appear for
whatever the view the map was on.  If you move the map, the results do
not change.  If you move the map, and resubmit your search, results
will be returned for the new view area.

What I am trying to accomplish is that when the map is moved, the
results for the new view are refreshed.  For those that are familiar
with the GMaps API - this would be the ajax implementation.

How it works:

It seems that when the user clicks on 'search' that a function is
called (onSearch).  This determines the map view and generates the
results and updates.

Issues:

I needed to use the location.href method to get the onSearch call
working correctly with the
variables and scope of the document content.  It seems that the
onSearch does get called, yet my results do not update.  I am thinking
I may be missing some other piece of the needed javascript.  Possibly
even just botching the GM itself!

I have parred the userscript down to bare minimum.  It only works for
the default 'search the map' form.  If anyone has any comment on
resolving my current issue, as well as some tips - it would be greatly
appreciated.

http://r2unit.com/greasemonkey/vbr.user.js

I didnt seem to find a similar script - but if one exists, I would be
interested in dissecting it -

Thanks  -
Chris



--
----------------------------------
please respond to the list .. if you need to contact me direct
cgmckeever is the account
prupref.com is the domain

<A href="http://www.prupref.com">Simply Chicago Real Estate</A>


More information about the Greasemonkey mailing list