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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---