Hi Guys, I am trying to build a Rails app which uses Prototype and Google Maps but have run into issues with Prototype and Google Maps both extending Objects and Arrays. I have searched about this problem and came across these two posts in the Google Maps group. http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6776d9ffab859fa7/7854965c5bbd70a9?lnk=gst&q=prototype+js#7854965c5bbd70a9 http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 I was using Prototype to observe the document dom:loaded event to run a method which set up the Google Map, but this caused the following error: a has no properties http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js Line 50 function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} Yb(null)main.js (line 50) R(null, Object)main.js (line 521) xx(null, Object)main.js (line 1619) When I use the onload event hook inside of the body tag it seems to work better (although Firebug reports recursion warnings). Does anyone know how to use Prototype and Google Maps together without these errors. Thanks Josh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I use GoogleMaps with rails fot a while now and I have never had such a problem. here is a sample code I use (from a demo application that I will do in Railcamps Paris) http://pastie.caboo.se/190933 HTH Seb On May 3, 2008, at 6:48 AM, Josh K wrote:> > Hi Guys, > > I am trying to build a Rails app which uses Prototype and Google Maps > but have run into issues with Prototype and Google Maps both extending > Objects and Arrays. > > I have searched about this problem and came across these two posts in > the Google Maps group. > > http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6776d9ffab859fa7/7854965c5bbd70a9?lnk=gst&q=prototype+js#7854965c5bbd70a9 > > http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 > > I was using Prototype to observe the document dom:loaded event to run > a method which set up the Google Map, but this caused the following > error: > > a has no properties > http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js > Line 50 > function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} > Yb(null)main.js (line 50) > R(null, Object)main.js (line 521) > xx(null, Object)main.js (line 1619) > > When I use the onload event hook inside of the body tag it seems to > work better (although Firebug reports recursion warnings). > > Does anyone know how to use Prototype and Google Maps together without > these errors. > > Thanks > > Josh > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Seb, Thanks for the reply, I had a look at the code you linked to and used it (with a few simplifications) and still find myself with the same error. This is the code I am using - http://pastie.caboo.se/190975 Maybe I am useless at using Prototype, but please help me. Thanks Josh On May 3, 6:55 pm, Sébastien Gruhier <sgruh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I use GoogleMaps with rails fot a while now and I have never had > such a problem. > here is a sample code I use (from a demo application that I will do in > Railcamps Paris)http://pastie.caboo.se/190933 > > HTH > Seb > On May 3, 2008, at 6:48 AM, Josh K wrote: > > > > > Hi Guys, > > > I am trying to build a Rails app which uses Prototype and Google Maps > > but have run into issues with Prototype and Google Maps both extending > > Objects and Arrays. > > > I have searched about this problem and came across these two posts in > > the Google Maps group. > > >http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6... > > >http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 > > > I was using Prototype to observe the document dom:loaded event to run > > a method which set up the Google Map, but this caused the following > > error: > > > a has no properties > >http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js > > Line 50 > > function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} > > Yb(null)main.js (line 50) > > R(null, Object)main.js (line 521) > > xx(null, Object)main.js (line 1619) > > > When I use the onload event hook inside of the body tag it seems to > > work better (although Firebug reports recursion warnings). > > > Does anyone know how to use Prototype and Google Maps together without > > these errors. > > > Thanks > > > Josh--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Pretty surprised about this issue you''re reporting. No problems using Google-maps combined with Prototype on my side. http://www.who-s-web.com/ uses both very successfully too. The two posts you link to refer to Prototype version 1.3 (that was nearly 3 year ago, now). I think a failing test case would be appropriate if you''re really having issues. Best, TObie Josh K wrote:> Hi Guys, > > I am trying to build a Rails app which uses Prototype and Google Maps > but have run into issues with Prototype and Google Maps both extending > Objects and Arrays. > > I have searched about this problem and came across these two posts in > the Google Maps group. > > http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6776d9ffab859fa7/7854965c5bbd70a9?lnk=gst&q=prototype+js#7854965c5bbd70a9 > > http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 > > I was using Prototype to observe the document dom:loaded event to run > a method which set up the Google Map, but this caused the following > error: > > a has no properties > http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js > Line 50 > function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} > Yb(null)main.js (line 50) > R(null, Object)main.js (line 521) > xx(null, Object)main.js (line 1619) > > When I use the onload event hook inside of the body tag it seems to > work better (although Firebug reports recursion warnings). > > Does anyone know how to use Prototype and Google Maps together without > these errors. > > Thanks > > Josh--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Tobie, I have no doubt that I am doing something wrong, but I just can''t work out what. I am using rails 2.0.2 along with prototype 1.6.0.1 I know its a big help but I would really appreciate someone posting some form of sample code (full html) which I can test. Thanks Josh On May 4, 12:46 am, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Pretty surprised about this issue you''re reporting. > > No problems using Google-maps combined with Prototype on my side. > > http://www.who-s-web.com/uses both very successfully too. > > The two posts you link to refer to Prototype version 1.3 (that was > nearly 3 year ago, now). > > I think a failing test case would be appropriate if you''re really > having issues. > > Best, > > TObie > > Josh K wrote: > > Hi Guys, > > > I am trying to build a Rails app which uses Prototype and Google Maps > > but have run into issues with Prototype and Google Maps both extending > > Objects and Arrays. > > > I have searched about this problem and came across these two posts in > > the Google Maps group. > > >http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6... > > >http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 > > > I was using Prototype to observe the document dom:loaded event to run > > a method which set up the Google Map, but this caused the following > > error: > > > a has no properties > >http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js > > Line 50 > > function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} > > Yb(null)main.js (line 50) > > R(null, Object)main.js (line 521) > > xx(null, Object)main.js (line 1619) > > > When I use the onload event hook inside of the body tag it seems to > > work better (although Firebug reports recursion warnings). > > > Does anyone know how to use Prototype and Google Maps together without > > these errors. > > > Thanks > > > Josh--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Something is wrong isn your side, a lot of people use GoogleMap/ Prototype Any url to see what''s wrong? Seb On May 3, 2008, at 2:04 PM, Josh K wrote:> > Hi Seb, > > Thanks for the reply, I had a look at the code you linked to and used > it (with a few simplifications) and still find myself with the same > error. > > This is the code I am using - http://pastie.caboo.se/190975 > > Maybe I am useless at using Prototype, but please help me. > > Thanks > > Josh > > On May 3, 6:55 pm, Sébastien Gruhier <sgruh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I use GoogleMaps with rails fot a while now and I have never had >> such a problem. >> here is a sample code I use (from a demo application that I will do >> in >> Railcamps Paris)http://pastie.caboo.se/190933 >> >> HTH >> Seb >> On May 3, 2008, at 6:48 AM, Josh K wrote: >> >> >> >>> Hi Guys, >> >>> I am trying to build a Rails app which uses Prototype and Google >>> Maps >>> but have run into issues with Prototype and Google Maps both >>> extending >>> Objects and Arrays. >> >>> I have searched about this problem and came across these two posts >>> in >>> the Google Maps group. >> >>> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6 >>> ... >> >>> http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 >> >>> I was using Prototype to observe the document dom:loaded event to >>> run >>> a method which set up the Google Map, but this caused the following >>> error: >> >>> a has no properties >>> http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js >>> Line 50 >>> function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} >>> Yb(null)main.js (line 50) >>> R(null, Object)main.js (line 521) >>> xx(null, Object)main.js (line 1619) >> >>> When I use the onload event hook inside of the body tag it seems to >>> work better (although Firebug reports recursion warnings). >> >>> Does anyone know how to use Prototype and Google Maps together >>> without >>> these errors. >> >>> Thanks >> >>> Josh > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Seb, Sorry but I don''t have a web server to post my code on as this is all in the very early stages of development. Instead, if its alright, if you follow this link : http://pastie.caboo.se/191226 you will see the ruby code I am using and this link for my application.js file : http://pastie.caboo.se/191224 I am really stumped as I am sure I am not doing anything out of the ordinary. Any and all advice is much appreciated, and if you are ever in Wellington (New Zealand) drinks are on me! Thanks Josh On May 4, 4:11 am, Sébastien Gruhier <sgruh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Something is wrong isn your side, a lot of people use GoogleMap/ > Prototype > Any url to see what''s wrong? > Seb > > On May 3, 2008, at 2:04 PM, Josh K wrote: > > > > > Hi Seb, > > > Thanks for the reply, I had a look at the code you linked to and used > > it (with a few simplifications) and still find myself with the same > > error. > > > This is the code I am using -http://pastie.caboo.se/190975 > > > Maybe I am useless at using Prototype, but please help me. > > > Thanks > > > Josh > > > On May 3, 6:55 pm, Sébastien Gruhier <sgruh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I use GoogleMaps with rails fot a while now and I have never had > >> such a problem. > >> here is a sample code I use (from a demo application that I will do > >> in > >> Railcamps Paris)http://pastie.caboo.se/190933 > > >> HTH > >> Seb > >> On May 3, 2008, at 6:48 AM, Josh K wrote: > > >>> Hi Guys, > > >>> I am trying to build a Rails app which uses Prototype and Google > >>> Maps > >>> but have run into issues with Prototype and Google Maps both > >>> extending > >>> Objects and Arrays. > > >>> I have searched about this problem and came across these two posts > >>> in > >>> the Google Maps group. > > >>>http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6 > >>> ... > > >>>http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991 > > >>> I was using Prototype to observe the document dom:loaded event to > >>> run > >>> a method which set up the Google Map, but this caused the following > >>> error: > > >>> a has no properties > >>>http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js > >>> Line 50 > >>> function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}} > >>> Yb(null)main.js (line 50) > >>> R(null, Object)main.js (line 521) > >>> xx(null, Object)main.js (line 1619) > > >>> When I use the onload event hook inside of the body tag it seems to > >>> work better (although Firebug reports recursion warnings). > > >>> Does anyone know how to use Prototype and Google Maps together > >>> without > >>> these errors. > > >>> Thanks > > >>> Josh--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---