Thanks Crowder. The latest version has solved my problem [?] On Mon, May 9, 2011 at 12:31 PM, T.J. Crowder <t...@crowdersoftware.com>wrote:
> Hi, > > OMG. Out of curiousity, I looked at the prototype.js file you > referenced in that file; wow was I in for a shock: You're using > Prototype 1.3.1?!?!?!! > > That version was superceded more than SIX YEARS AGO. I don't actually > know when, because the Prototype changelog doesn't go back that far, > but we're talking 2005 here. The pre-release of 1.5 was January, 2006. > > And yes, looking at the code, apparently 1.3.1 extended > Object.prototype. That's a very bad idea, the team learned that, and > the library hasn't done it in years. > > You can / should / must / *really need to* download the latest > here: ;-) > http://prototypejs.org/download > -- > T.J. Crowder > Independent Software Engineer > tj / crowder software / com > www / crowder software / com > > On May 9, 6:10 am, venu gupta <venugupt...@gmail.com> wrote: > > Thanks Crowdy and Niles for your replies. > > > > But If i dont load prototype.js, no javascript error shows, the moment i > > include , i get javascript errors. Please see the screenshot below . > > Also attached is the html file for your reference > > > > [image: maps.JPG] > > > > On Mon, May 9, 2011 at 1:50 AM, Andrew Niles <d...@spidertracks.co.nz > >wrote: > > > > > > > > > > > > > > > > > > > > > JUst to confirm what T.J has said, your site currently uses prototype > > > (and jQuery in the play nice mode) with google maps, and all run fine > > > together. This is for both Gmap2 and Gmap3 api's > > > > > Having done a lot of programming with google maps, this is most likely > > > other code that is incorrectly call into the api's (well that was the > > > sort of errors that cause this sort of thing for me.) > > > > > Regards. > > > > > -- > > > andrew 'daff' niles | spidertracks | 117A The Square > > > po box 5203 | palmerston north 4441 | new zealand > > > P: +64-6-353-3395 | M: +64-21-515-548 > > > E: d...@spidertracks.comwww.spidertracks.com > > > > > On Sun, 2011-05-08 at 02:30 -0700, T.J. Crowder wrote: > > > > Hi > > > > > > > Also the console shows a warning: > > > > > > > "Warning: This site adds property <extend> to Object.prototype. > > > > > > If you have some tool saying that, it's a bug in the tool. Prototype > > > > doesn't add anything to `Object.prototype` (for the very reason given > > > > in the error). Prototype *does* add `extend` and 15 other functions > to > > > > `Object`, which is a *very* different thing (and doesn't break > > > > `for..in` loops). > > > > > > > Iam getting the javascript errors if I use prototype.js > > > > > > What other errors are you getting? I'd be pretty surprised if just > > > > having Prototype loaded would break Google maps' code. They'd pretty > > > > much have to be doing `for..in` on *array* instances without proper > > > > safeguards, and I doubt they're doing that. > > > > > > HTH, > > > > -- > > > > T.J. Crowder > > > > Independent Software Engineer > > > > tj / crowder software / com > > > > www / crowder software / com > > > > > > On May 7, 10:45 am, venu <venugupt...@gmail.com> wrote: > > > > > Iam getting the javascript errors if I use prototype.js > > > > > > > Also the console shows a warning: > > > > > > > "Warning: This site adds property <extend> to Object.prototype. > > > > > Extending Object.prototype breaks JavaScript for..in loops, which > are > > > > > used heavily in Google Maps API v3." > > > > > > > Please help me out > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Prototype & script.aculo.us" group. > > > To post to this group, send email to > > > prototype-scriptaculous@googlegroups.com. > > > To unsubscribe from this group, send email to > > > prototype-scriptaculous+unsubscr...@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > > -- > > Regards, > > Venu Kumar Bukka > > > > maps.JPG > > 125KViewDownload > > > > maps.html > > 3KViewDownload > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- Regards, Venu Kumar Bukka -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
<<328.png>>