Chris,

You probably just need a text box and a button?

    <input id="address-textbox" /><button onclick="lookup();">look 
up</button>

where

    function lookup() {
       var address = document.getElementById("address-textbox").value;
       ... do something with address ...
    }

David

chrisVHI wrote:
> Hey David,
> Can you give me any hints on how to use a form to have the user submit
> their address so that it feeds into the look-up correctly?  By the
> way, this is a wonderful tool.
>
>
> On Jul 14, 1:16 pm, David Huynh <[email protected]> wrote:
>   
>> chrisVHI wrote:
>>     
>>> Hi,
>>> I am building a simple exhibit map to allow users to enter their
>>> address and find physicians/hospitals nearby.  see
>>> http://dev.vhi.org/maptest.html
>>>       
>>> I think that I am making a very simple mistake in the code.  Can
>>> anyone see what it is?  I've searched and searched to find examples of
>>> geocoding with exhibit and haven't had much luck.
>>>       
>> There's a bit of code in
>>
>> http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/scripts/ma...
>>
>> that you might find relevant. Search for
>>
>>     Exhibit.MapView.lookupLatLng
>> You should see how a geocoder gets created, and then how it's used. The
>> code actually resolves several addresses, which makes it complicated.
>> But if you just want to resolve one address, it's not too bad.
>>
>> Hope that helps.
>>
>> David
>>     
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to