Local search integration to maps problem

0 views
Skip to first unread message

Darius

unread,
Jun 17, 2009, 10:58:59 AM6/17/09
to Google AJAX APIs
I setup local search on my maps, and its work fine with chrome
browser. But with firefox i get javascript error, and local search not
work. Problem occurs only if i put div container to form, e.x.
in html:

<form>
<div id="map"><!-- --></div>
</form>

if i remove <form></form> tag all works good, but i can't submit
form...

firebug show javascript error:
this.c.formId is null on
http://www.google.com/uds/api/elements/1.0/d188c3699cfb7ddb5c10fdeb8621c7cc/default,localsearch+lt.I.js
(line 102)

Jeremy Geerdes

unread,
Jun 17, 2009, 4:09:48 PM6/17/09
to Google-AJAX...@googlegroups.com

Can you provide a link to your page, wprkibg or not, so we can see what's going on?

Darius

unread,
Jun 18, 2009, 1:51:44 PM6/18/09
to Google AJAX APIs
My real application require authorization, then I wrote two simple
examples http://bug.onrails.lt/ . With Chrome any differences, with
firefox or another gecko base browser local search doesn't work.

On Jun 17, 11:09 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Can you provide a link to your page, wprkibg or not, so we can see what's
> going on?
>
> On Jun 17, 2009 10:32 AM, "Darius" <darius...@gmail.com> wrote:
>
> I setup local search on my maps, and its work fine with chrome
> browser. But with firefox i get javascript error, and local search not
> work. Problem occurs only if i put  div container to form, e.x.
> in html:
>
> <form>
>    <div id="map"><!-- --></div>
> </form>
>
> if i remove <form></form> tag all works good, but i can't submit
> form...
>
> firebug show javascript error:
> this.c.formId is null onhttp://www.google.com/uds/api/elements/1.0/d188c3699cfb7ddb5c10fdeb86...
> (line 102)

John Murphy

unread,
Jul 7, 2009, 1:36:44 PM7/7/09
to Google AJAX APIs
Did you ever find a solution to this problem? I've run into the same
issue.

On Jun 18, 1:51 pm, Darius <darius...@gmail.com> wrote:
> My real application require authorization, then I wrote two simple
> exampleshttp://bug.onrails.lt/. With Chrome any differences, with

Darius

unread,
Jul 8, 2009, 9:42:22 AM7/8/09
to Google AJAX APIs
I just put map outside form. Possible workaround are positioning div
with css. Real solution I didn't found.

John Murphy

unread,
Jul 8, 2009, 11:26:43 AM7/8/09
to Google-AJAX...@googlegroups.com
Thanks for the reply. I found I can work around it by using the old style bar:

var mapOptions =
{
googleBarOptions :
{
showOnLoad : "true",
adsOptions:
{
client: "pub-XXX",
adsafe: "high",
language: "en"
}
}
}

Hopefully Google will fix it before they make the new one the default.

Adam Feldman

unread,
Jul 8, 2009, 10:40:50 PM7/8/09
to Google AJAX APIs
Hi John,

The new Bar will become the default in the near future. Can you go to
the Maps API group and pose your problem there:
http://groups.google.com/group/Google-Maps-API

There are a lot of folks over there who work with the Maps API, and
they should be able to help you out. Plus, everyone will benefit from
the discussion.

Thanks,
Adam

On Jul 8, 8:26 am, John Murphy <jcmur...@gmail.com> wrote:
> Thanks for the reply.  I found I can work around it by using the old style bar:
>
> var mapOptions =
>             {
>                 googleBarOptions :
>                 {
>                     showOnLoad : "true",
>                     adsOptions:
>                     {
>                         client: "pub-XXX",
>                         adsafe: "high",
>                         language: "en"
>                     }
>                 }
>             }
>
> Hopefully Google will fix it before they make the new one the default.
>

Jeremy Geerdes

unread,
Jul 8, 2009, 10:50:37 PM7/8/09
to Google-AJAX...@googlegroups.com
If I'm not mistaken, google.elements.LocalSearch was originally
produced by the AJAX APIs team. And while I certainly respect the
experts in the Maps API group, I can tell you that they will likely
decline to help because the relevant code is obfuscated. I've been
tinkering with this a little bit as time allows. I will strive to get
back to it again in the next day or two. I know that, as has been
pointed out, the problem is related to the nested form elements in the
buggy example. I am trying to find a workaround.

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

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

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!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!

Adam Feldman

unread,
Jul 9, 2009, 12:24:26 AM7/9/09
to Google AJAX APIs
Yes, you're correct, Jeremy. I merely thought that folks on that list
may have run into this one before.

In any case, we're looking into it and I'll report back here when we
find something.

Adam

On Jul 8, 7:50 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> If I'm not mistaken, google.elements.LocalSearch was originally  
> produced by the AJAX APIs team.  And while I certainly respect the  
> experts in theMapsAPI group, I can tell you that they will likely  
> decline to help because the relevant code is obfuscated.  I've been  
> tinkering with this a little bit as time allows.  I will strive to get  
> back to it again in the next day or two.  I know that, as has been  
> pointed out, theproblemis related to the nested form elements in the  
> buggy example.  I am trying to find a workaround.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> 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!
>
> And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com
>   !
>
> On Jul 8, 2009, at 9:40 PM, Adam Feldman wrote:
>
>
>
> > Hi John,
>
> > The new Bar will become the default in the near future.  Can you go to
> > theMapsAPI group and pose yourproblemthere:
> >http://groups.google.com/group/Google-Maps-API
>
> > There are a lot of folks over there who work with theMapsAPI, and
> > they should be able to help you out.  Plus, everyone will benefit from
> > the discussion.
>
> > Thanks,
> > Adam
>
> > On Jul 8, 8:26 am, John Murphy <jcmur...@gmail.com> wrote:
> >> Thanks for the reply.  I found I can work around it by using the  
> >> old style bar:
>
> >> var mapOptions =
> >>             {
> >>                 googleBarOptions :
> >>                 {
> >>                     showOnLoad : "true",
> >>                     adsOptions:
> >>                     {
> >>                         client: "pub-XXX",
> >>                         adsafe: "high",
> >>                         language: "en"
> >>                     }
> >>                 }
> >>             }
>
> >> Hopefully Google will fix it before they make the new one the  
> >> default.
>
> >> On Wed, Jul 8, 2009 at 9:42 AM, Darius<darius...@gmail.com> wrote:
>
> >>> I just put map outside form. Possible workaround are positioning div
> >>> with css. Real solution I didn't found.
>
> >>> On 7 Lie, 20:36, John  Murphy <jcmur...@gmail.com> wrote:
> >>>> Did you ever find a solution to thisproblem?  I've run into the  
> >>>> same
> >>>> issue.
>
> >>>> On Jun 18, 1:51 pm, Darius <darius...@gmail.com> wrote:
>
> >>>>> My real application require authorization, then I wrote two simple
> >>>>> exampleshttp://bug.onrails.lt/. With Chrome any differences, with
> >>>>> firefox or another gecko base browserlocalsearchdoesn't work.
>
> >>>>> On Jun 17, 11:09 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
> >>>>>> Can you provide a link to your page, wprkibg or not, so we can  
> >>>>>> see what's
> >>>>>> going on?
>
> >>>>>> On Jun 17, 2009 10:32 AM, "Darius" <darius...@gmail.com> wrote:
>
> >>>>>> I setuplocalsearchon mymaps, and its work fine with chrome
> >>>>>> browser. But with firefox i get javascript error, andlocal 
> >>>>>>searchnot
> >>>>>> work.Problemoccurs only if i put  div container to form, e.x.

John Murphy

unread,
Jul 9, 2009, 7:14:04 AM7/9/09
to Google AJAX APIs
Thanks for looking into this. I actually posted a thread in the maps
group already. It's here.

http://groups.google.com/group/Google-Maps-API/browse_thread/thread/0578d0b845653b5c#

Would it be useful if I file a bug with the Maps API people as well?
I can't find a public bug database for the localsearch element itself.

On Jul 9, 12:24 am, Adam Feldman <adam.feld...@google.com> wrote:
> Yes, you're correct, Jeremy.  I merely thought that folks on that list
> may have run into this one before.
>
> In any case, we're looking into it and I'll report back here when we
> find something.
>
> Adam
>
> On Jul 8, 7:50 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
>
>
> > If I'm not mistaken, google.elements.LocalSearch was originally  
> > produced by the AJAX APIs team.  And while I certainly respect the  
> > experts in theMapsAPI group, I can tell you that they will likely  
> > decline to help because the relevant code is obfuscated.  I've been  
> > tinkering with this a little bit as time allows.  I will strive to get  
> > back to it again in the next day or two.  I know that, as has been  
> > pointed out, theproblemis related to the nested form elements in the  
> > buggy example.  I am trying to find a workaround.
>
> > Jeremy R. Geerdes
> > Effective website design & development
> > Des Moines, IA
>
> > For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...

Adam Feldman

unread,
Jul 9, 2009, 3:18:48 PM7/9/09
to Google AJAX APIs
We've talked this over and traced the problem to HTML's prohibition
against nested <form> elements, which results in weird behavior in the
situation you've found.

Fixing this is on our radar, but it seems to be a pretty rare
situation that you'd need to put a map in a form, so I admit that it's
not high priority. I recommend adding it to our issue tracker and
then if a lot of people vote it up (by starring it), it is more likely
to receive attention sooner.

In the mean time, you'll have to move the map's div outside the form.

Thanks,
Adam

On Jul 9, 4:14 am, John Murphy <jcmur...@gmail.com> wrote:
> Thanks for looking into this.  I actually posted a thread in the maps
> group already.  It's here.
>
> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/0...

John Murphy

unread,
Jul 13, 2009, 8:31:35 AM7/13/09
to Google AJAX APIs
OK, I've made a bug.

http://code.google.com/p/gmaps-api-issues/issues/detail?id=1473

Thanks for looking into it.

On Jul 9, 3:18 pm, Adam Feldman <adam.feld...@google.com> wrote:
> We've talked this over and traced the problem to HTML's prohibition
> against nested <form> elements, which results in weird behavior in the
> situation you've found.
>
> Fixing this is on our radar, but it seems to be a pretty rare
> situation that you'd need to put a map in aform, so I admit that it's
> not high priority.  I recommend adding it to our issue tracker and
> then if a lot of people vote it up (by starring it), it is more likely
> to receive attention sooner.
>
> In the mean time, you'll have to move the map's div outside theform.
>
> Thanks,
> Adam
>
> On Jul 9, 4:14 am, John  Murphy <jcmur...@gmail.com> wrote:
>
>
>
> > Thanks for looking into this.  I actually posted a thread in the maps
> > group already.  It's here.
>
> >http://groups.google.com/group/Google-Maps-API/browse_thread/thread/0...
>
> > Would it be useful if I file a bug with the Maps API people as well?
> > I can't find a public bug database for thelocalsearchelement itself.
>
> > On Jul 9, 12:24 am, Adam Feldman <adam.feld...@google.com> wrote:
>
> > > Yes, you're correct, Jeremy.  I merely thought that folks on that list
> > > may have run into this one before.
>
> > > In any case, we're looking into it and I'll report back here when we
> > > find something.
>
> > > Adam
>
> > > On Jul 8, 7:50 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
> > > > If I'm not mistaken, google.elements.LocalSearchwas originally  
> > > > produced by the AJAX APIs team.  And while I certainly respect the  
> > > > experts in theMapsAPI group, I can tell you that they will likely  
> > > > decline to help because the relevant code is obfuscated.  I've been  
> > > > tinkering with this a little bit as time allows.  I will strive to get  
> > > > back to it again in the next day or two.  I know that, as has been  
> > > > pointed out, theproblemis related to the nestedformelements in the  
> > > > >>> I just put map outsideform. Possible workaround are positioning div
> > > > >>> with css. Real solution I didn't found.
>
> > > > >>> On 7 Lie, 20:36, John  Murphy <jcmur...@gmail.com> wrote:
> > > > >>>> Did you ever find a solution to thisproblem?  I've run into the  
> > > > >>>> same
> > > > >>>> issue.
>
> > > > >>>> On Jun 18, 1:51 pm, Darius <darius...@gmail.com> wrote:
>
> > > > >>>>> My real application require authorization, then I wrote two simple
> > > > >>>>> exampleshttp://bug.onrails.lt/. With Chrome any differences, with
> > > > >>>>> firefox or another gecko base browserlocalsearchdoesn't work.
>
> > > > >>>>> On Jun 17, 11:09 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
> > > > >>>>>> Can you provide a link to your page, wprkibg or not, so we can  
> > > > >>>>>> see what's
> > > > >>>>>> going on?
>
> > > > >>>>>> On Jun 17, 2009 10:32 AM, "Darius" <darius...@gmail.com> wrote:
>
> > > > >>>>>> I setuplocalsearchon mymaps, and its work fine with chrome
> > > > >>>>>> browser. But with firefox i get javascript error, andlocal 
> > > > >>>>>>searchnot
> > > > >>>>>> work.Problemoccurs only if i put  div container toform, e.x.

Adam Feldman

unread,
Jul 30, 2009, 3:52:59 PM7/30/09
to Google AJAX APIs
This should be fixed now.

Please let us know if you're still seeing any problems related to this
issue.

Thanks!
Adam

John Murphy

unread,
Jul 31, 2009, 12:49:07 PM7/31/09
to Google AJAX APIs
It seems to work well now. Thanks for taking care of it.
Reply all
Reply to author
Forward
0 new messages