Thank you for your kind words.  Glad it's working for you!

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[EMAIL PROTECTED]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!




On Oct 20, 2008, at 9:52 AM, superjeans wrote:

>
> Jeremy, people like you are the reason these forums flourish and the
> internet continues to grow in quality.
>
> Many thanks for your help. This has resolved the problem. And I have a
> post code checker to boot!
>
> All the best
>
> On Oct 20, 3:16 pm, Jeremy Geerdes <[EMAIL PROTECTED]> wrote:
>> Great questions.
>>
>> Can you think of an alternative way to create my map?  Sure.  A
>> workaround for your situation would be to alter the newSearch method
>> we've already tweaked.  Specifically, you want to change the line
>> reading this.gs.execute(this.searchForm.input.value); to read more
>> like this:
>>
>> this.gs.execute(this.searchForm.input.value+' Football Ground');
>>
>> How long does it take to have an issue resolved? Are we talking
>> weeks?  Well, the answer to that can depend on a number of things.   
>> As
>> I am not privy to the dev team's workload or other considerations,
>> etc., I can't give any good estimate.  That said, since this is  
>> just a
>> tweak to the JS, I would not think that it would take all that long.
>> Until we get confirmation that the issue is fixed,
>>
>> Jeremy R. Geerdes
>> Effective website design & development
>> Des Moines, IA
>>
>> For more information or a project quote:http:// 
>> jgeerdes.home.mchsi.com
>> [EMAIL PROTECTED]
>>
>> Unless otherwise noted, any price quotes contained within this
>> communication are given in US dollars.
>>
>> If you're in the Des Moines, IA, area, check out Debra Heights
>> Wesleyan Church!
>>
>> On Oct 20, 2008, at 8:13 AM, superjeans wrote:
>>
>>
>>
>>
>>
>>> OK thanks. I have used the same function in a web only solution -  
>>> but
>>> no map! Can you think of an alterntive way to create my map?
>>
>>> How long does it take to have an issue resolved? Are we talking  
>>> weeks?
>>
>>> On Oct 20, 12:14 pm, Jeremy Geerdes <[EMAIL PROTECTED]> wrote:
>>>> addQueryAddition is wrong.  It will throw an error because it's  
>>>> non-
>>>> existent.  My fault; I wasn't thinking when I typed it.  It  
>>>> should be
>>>> setQueryAddition.  That said, I have verified that setQueryAddition
>>>> is
>>>> not working with LocalSearch.  The searcher accepts the method,
>>>> presently adds the query addition as searcher.h, and then forgets  
>>>> all
>>>> about it.  It isn't added to the search request's q parameter or
>>>> anywhere else in the query string.  I'm updating your issue with a
>>>> few
>>>> notes to that effect.
>>
>>>> Jeremy R. Geerdes
>>>> Effective website design & development
>>>> Des Moines, IA
>>
>>>> For more information or a project quote:http://
>>>> jgeerdes.home.mchsi.com
>>>> [EMAIL PROTECTED]
>>
>>>> Unless otherwise noted, any price quotes contained within this
>>>> communication are given in US dollars.
>>
>>>> If you're in the Des Moines, IA, area, check out Debra Heights
>>>> Wesleyan Church!
>>
>>>> On Oct 20, 2008, at 6:08 AM, superjeans wrote:
>>
>>>>> Thanks.
>>
>>>>> I have added the issue. BTW what is the difference between
>>>>> setQueryAddition and addQueryAddition?
>>
>>>>> On Oct 20, 11:54 am, Jeremy Geerdes <[EMAIL PROTECTED]> wrote:
>>>>>> It would appear that we have found a kink in the LocalSearch
>>>>>> searcher:  the setQueryAddition method is not functioning.   
>>>>>> File it
>>>>>> on
>>>>>> the issue tracker.
>>
>>>>>> http://code.google.com/p/google-ajax-apis/issues/list
>>
>>>>>> Jeremy R. Geerdes
>>>>>> Effective website design & development
>>>>>> Des Moines, IA
>>
>>>>>> For more information or a project quote:http://
>>>>>> jgeerdes.home.mchsi.com
>>>>>> [EMAIL PROTECTED]
>>
>>>>>> Unless otherwise noted, any price quotes contained within this
>>>>>> communication are given in US dollars.
>>
>>>>>> If you're in the Des Moines, IA, area, check out Debra Heights
>>>>>> Wesleyan Church!
>>
>>>>>> On Oct 20, 2008, at 5:40 AM, superjeans wrote:
>>
>>>>>>> Hi, I have tried this, and whist the window now loads, the
>>>>>>> addQueryAddition function does not influebce the results. I feel
>>>>>>> we
>>>>>>> are very close!
>>
>>>>>>> I have searched for this function ut found no other use of it.  
>>>>>>> Do
>>>>>>> you
>>>>>>> have any links to any references?
>>
>>>>>>> Many thanks
>>
>>>>>>> On Oct 20, 11:25 am, Jeremy Geerdes <[EMAIL PROTECTED]> wrote:
>>>>>>>> In the code that you have pasted now, I think all you need to
>>>>>>>> do is
>>>>>>>> move line 91 up to line 88 (i.e., above that closing right  
>>>>>>>> curly
>>>>>>>> bracket).
>>
>>>>>>>> Jeremy R. Geerdes
>>>>>>>> Effective website design & development
>>>>>>>> Des Moines, IA
>>
>>>>>>>> For more information or a project quote:http://
>>>>>>>> jgeerdes.home.mchsi.com
>>>>>>>> [EMAIL PROTECTED]
>>
>>>>>>>> Unless otherwise noted, any price quotes contained within this
>>>>>>>> communication are given in US dollars.
>>
>>>>>>>> If you're in the Des Moines, IA, area, check out Debra Heights
>>>>>>>> Wesleyan Church!
>>
>>>>>>>> On Oct 20, 2008, at 3:35 AM, superjeans wrote:
>>
>>>>>>>>> Hi Jeremy, once again thanks for your help...
>>
>>>>>>>>> Still no joy though... I get a load error with it.
>>
>>>>>>>>> http://yourpaste.net/1307/
>>
>>>>>>>>> I realise I need to understand the code better. I can follow  
>>>>>>>>> it
>>>>>>>>> roughly, but in comparison to C (where you can follow how  
>>>>>>>>> things
>>>>>>>>> work
>>>>>>>>> much better) the functions are already written so it becomes a
>>>>>>>>> bit
>>>>>>>>> trickier. Do you have any good literature suggestions that may
>>>>>>>>> help
>>>>>>>>> me?
>>>>>>>>> Thanks
>>
>>>>>>>>> On Oct 17, 4:19 pm, Jeremy Geerdes <[EMAIL PROTECTED]>  
>>>>>>>>> wrote:
>>>>>>>>>> Oops.  Try this.gs.addQueryAddition(...);  Notice the  
>>>>>>>>>> change of
>>>>>>>>>> the
>>>>>>>>>> ls
>>>>>>>>>> to gs .  Otherwise, leave the line the same.
>>
>>>>>>>>>> Jeremy R. Geerdes
>>>>>>>>>> Effective website design & development
>>>>>>>>>> Des Moines, IA
>>
>>>>>>>>>> For more information or a project quote:http://
>>>>>>>>>> jgeerdes.home.mchsi.com
>>>>>>>>>> [EMAIL PROTECTED]
>>
>>>>>>>>>> Unless otherwise noted, any price quotes contained within  
>>>>>>>>>> this
>>>>>>>>>> communication are given in US dollars.
>>
>>>>>>>>>> If you're in the Des Moines, IA, area, check out Debra  
>>>>>>>>>> Heights
>>>>>>>>>> Wesleyan Church!
>>
>>>>>>>>>> On Oct 17, 2008, at 10:16 AM, superjeans wrote:
>>
>>>>>>>>>>> Hi Jeremy,
>>
>>>>>>>>>>> May thanks for the help again - it's very much  
>>>>>>>>>>> appreciated. I
>>>>>>>>>>> have
>>>>>>>>>>> the
>>>>>>>>>>> postcode checker working for the UK format, but
>>>>>>>>>>> unfortunately I
>>>>>>>>>>> cannot
>>>>>>>>>>> get the line;
>>
>>>>>>>>>>> gsmsc.ls.addQueryAddition('Football Ground');
>>
>>>>>>>>>>> .....to work. If I add it where you mention after the
>>>>>>>>>>> final } it
>>>>>>>>>>> causes the a load failure.
>>
>>>>>>>>>>> The full code is here:
>>
>>>>>>>>>>> http://yourpaste.net/1299/
>>
>>>>>>>>>>> This is a snippet of he code
>>
>>>>>>>>>>> #
>>>>>>>>>>> var gsmsc=new GSmapSearchControl(
>>>>>>>>>>>            document.getElementById("mapsearch"),
>>>>>>>>>>>            "SWFC, Hillsborough, Sheffield, S6 1SW",
>>>>>>>>>>>            options
>>>>>>>>>>>            );
>>
>>>>>>>>>>>    }
>>>>>>>>>>>    gsmsc.ls.addQueryAddition('Football Ground');
>>>>>>>>>>>    // arrange for this function to be called during
>>>>>>>>>>> body.onload
>>>>>>>>>>>    // event processing
>>
>>>>>>>>>>>    GSearch.setOnLoadCallback(LoadMapSearchControl);
>>
>>>>>>>>>>>  </script>
>>>>>>>>>>> <!-- ++End Map Search Control Wizard Generated Code++ -->
>>
>>>>>>>>>>> #
>>
>>>>>>>>>>> Any ideas why it doesn't load?
>>
>>>>>>>>>>> On Oct 17, 12:53 pm, Jeremy Geerdes <[EMAIL PROTECTED]>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> Well, now I'm more confused than I was before.  The code  
>>>>>>>>>>>> you
>>>>>>>>>>>> pasted
>>>>>>>>>>>> is
>>>>>>>>>>>> for the GSmapSearchControl (i.e., wizard-generated).  But  
>>>>>>>>>>>> you
>>>>>>>>>>>> are
>>>>>>>>>>>> asking about the google.maps.LocalSearch?  The two things  
>>>>>>>>>>>> are
>>>>>>>>>>>> separate
>>>>>>>>>>>> and distinct, so I'm going to go with the code that you've
>>>>>>>>>>>> already
>>>>>>>>>>>> got
>>>>>>>>>>>> working.
>>
>>>>>>>>>>>> So here's what you need to do.  First, do NOT include the
>>>>>>>>>>>> gmlocalsearch.js and gmlocalsearch.css files into your  
>>>>>>>>>>>> page.
>>>>>>>>>>>> They
>>>>>>>>>>>> are
>>>>>>>>>>>> unnecessary at this point.
>>
>>>>>>>>>>>> Second, we're going to focus on the block of code that  
>>>>>>>>>>>> looks
>>>>>>>>>>>> like
>>>>>>>>>>>> this
>>>>>>>>>>>> in your paste:
>>
>>>>>>>>>>>> #
>>>>>>>>>>>>      function LoadMapSearchControl() {
>>
>>>>>>>>>>>>        var options = {
>>>>>>>>>>>>              zoomControl :
>>>>>>>>>>>> GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,
>>>>>>>>>>>>              title : "SWFC",
>>>>>>>>>>>>              url : "http://www.swfc.co.uk";,
>>>>>>>>>>>>              idleMapZoom :
>>>>>>>>>>>> GSmapSearchControl.ACTIVE_MAP_ZOOM,
>>>>>>>>>>>>              activeMapZoom :
>>>>>>>>>>>> GSmapSearchControl.ACTIVE_MAP_ZOOM
>>>>>>>>>>>>              }
>>
>>>>>>>>>>>>        new GSmapSearchControl(
>>>>>>>>>>>>              document.getElementById("mapsearch"),
>>>>>>>>>>>>              "Sheffield Wednesday, Sheffield, S6 1SW ",
>>>>>>>>>>>>              options
>>>>>>>>>>>>              );
>>>>>>>>>>>>      }
>>
>>>>>>>>>>>> The first thing we're going to do in this block is add the
>>>>>>>>>>>> following
>>>>>>>>>>>> right under the first line (please note that, again,
>>>>>>>>>>>> because I
>>>>>>>>>>>> don't
>>>>>>>>>>>> know what a post code is going to look like in your part of
>>>>>>>>>>>> the
>>>>>>>>>>>> world,
>>>>>>>>>>>> I'm looking for a well-formed US ZIP code, whether it's  
>>>>>>>>>>>> valid
>>>>>>>>>>>> or
>>>>>>>>>>>> not):
>>
>>>>>>>>>>>> GSmapSearchControl.prototype.newSearch =
>>>>>>>>>>>> function(opt_query) {
>>>>>>>>>>>>    if (opt_query) {
>>>>>>>>>>>>      this.searchForm.input.value  = opt_query;
>>>>>>>>>>>>    }
>>>>>>>>>>>>    if (this.searchForm.input.value &&
>>>>>>>>>>>> this.searchForm.input.value.match(/^\d{5}(-\d{4})$/)) { //
>>>>>>>>>>>> This
>>>>>>>>>>>> is
>>>>>>>>>>>> the
>>>>>>>>>>>> line we changed!
>>
>>>>>>>>>>>>      // clear markers, set prev/next
>>>>>>>>>>>>      this.clearMarkers();
>>>>>>>>>>>>      GSmapsc_removeChildren(this.attributionDiv);
>>>>>>>>>>>>      this.gs.execute(this.searchForm.input.value);
>>>>>>>>>>>>    }
>>>>>>>>>>>>    return false;
>>
>>>>>>>>>>>> }
>>
>>>>>>>>>>>> Please note that, with the exception of the denoted line,  
>>>>>>>>>>>> all
>>>>>>>>>>>> of
>>>>>>>>>>>> the
>>>>>>>>>>>> preceding block is lifted straight from gsmapsearch.js.   
>>>>>>>>>>>> The
>>>>>>>>>>>> change
>>
>> ...
>>
>> read more ยป- Hide quoted text -
>>
>> - Show quoted text -
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to