*** tpb has joined #melange | 00:00 | |
*** mithro has quit IRC | 01:33 | |
*** dirigeant has quit IRC | 06:26 | |
*** dirigeant has joined #melange | 07:29 | |
*** MatthewWilkes has joined #melange | 08:16 | |
*** Merio has joined #melange | 08:22 | |
*** ChanServ sets mode: +v Merio | 08:22 | |
*** mithro has joined #melange | 09:18 | |
*** ChanServ sets mode: +v mithro | 09:18 | |
*** MatthewWilkes has quit IRC | 09:35 | |
*** MatthewWilkes has joined #melange | 09:44 | |
*** madrazr has joined #melange | 10:00 | |
*** ChanServ sets mode: +v madrazr | 10:00 | |
*** robbyoconnor has quit IRC | 10:30 | |
*** MatthewWilkes is now known as mwilkes|lunch | 11:30 | |
*** scorche has quit IRC | 11:38 | |
*** scorche has joined #melange | 11:44 | |
*** saviet has joined #melange | 12:08 | |
*** robbyoconnor has joined #melange | 12:27 | |
*** madrazr has quit IRC | 12:37 | |
*** mwilkes|lunch is now known as MatthewWilkes | 12:48 | |
saviet | Merio: Hello! | 13:21 |
---|---|---|
saviet | Merio: r u there, I have a doubt about JS maps api. :) | 13:22 |
Merio | saviet: Hi! yup, tell me :) | 13:27 |
saviet | Merio:okay, I am trying creating markers on the map for all the users and events | 13:28 |
saviet | Merio: However, sometimes all the markers do not appear | 13:28 |
saviet | Merio: sometimes they all do appear | 13:28 |
saviet | Merio: any idea why this could be happening? Because the number of users and events are still the same | 13:29 |
Merio | saviet: can I see the code in some way? At a first glance seems like a timing issue in the asynchronous request | 13:29 |
saviet | Merio: ok i have pasted the code here: http://pastebin.com/F5FatfrH | 13:31 |
tpb | Title: function afterLoad() { if - Anonymous - F5FatfrH - Pastebin.com (at pastebin.com) | 13:31 |
Merio | saviet: I don't know if this could be the problem, but it seems you're using a mix of V2 and V3 version of the API | 13:35 |
saviet | oh ok | 13:35 |
saviet | Merio: The extra G in everything is the newer version is it? | 13:35 |
Merio | saviet: nope, the opposite :) In the old version everything had the G prefix, now IIRC everything is in the google.maps namespace | 13:36 |
*** lfranchi_ is now known as lfranchi | 13:36 | |
saviet | Merio: oh ok, ok:) so Melange is using the newer version right. Okay, I will change those how it goes | 13:37 |
Merio | saviet: yup, V2 has been deprecated, fortunately we changed everything (I hope! :)) almost one year in advance :) | 13:38 |
saviet | Merio: ok :) | 13:38 |
Merio | saviet: see if it works, otherwise just ping me and I'll look deeper in the code | 13:38 |
saviet | Merio: okay, thanks :) | 13:39 |
Merio | saviet: then if you have some time I'll tell you some other way to do this, you're currently duplicating asynchronous javascript code for each django iteration, maybe it would be better to pass all variables to an external script that manages everything, but we'll see after you change to v3 | 13:41 |
saviet | Merio: oh ok sure | 13:42 |
saviet | Merio: I have changed it all to V3 code, but the problem still seems to persist | 14:02 |
Merio | saviet: can you paste it again? | 14:05 |
saviet | Merio: I have pasted it here: http://paste.pocoo.org/show/244712/ | 14:07 |
tpb | Title: Paste #244712 | LodgeIt! (at paste.pocoo.org) | 14:07 |
Merio | saviet: seems like they changed some stuff in the behavior of the functions in V3 and seems also that some function changed name | 14:12 |
Merio | google.maps.Map2 should be Map in line 17 http://code.google.com/apis/maps/documentation/javascript/tutorial.html#google.maps.Map | 14:13 |
tpb | <http://ln-s.net/7OrN> (at code.google.com) | 14:13 |
saviet | Merio: oh ok | 14:13 |
Merio | About geocoding (line 26 and 37), seems like they changed a lot => http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding | 14:13 |
tpb | <http://ln-s.net/7OrP> (at code.google.com) | 14:13 |
saviet | Merio: oh ok, i just used the methods used in the other melange Map JS scripts :( | 14:23 |
saviet | ok i will change my code | 14:23 |
Merio | saviet: yup but since V3 is now stable it's better to use it ... then we will change the other scripts as well ^_^ | 14:26 |
saviet | Merio:ok | 14:26 |
saviet | Merio: and what was the other thing you were saying about duplicating asynchronour JS code | 14:27 |
Merio | saviet: AFAICT your JS code is inside a Django template, that means that you're not iterating a piece of JS code but you're making Django doing a sort of "copy/paste" of the same code, which could be one source of problems | 14:28 |
saviet | Merio: oh ok, so instead I could use a JS for loop? | 14:29 |
Merio | saviet: have you had a look to the organization home page? | 14:29 |
Merio | saviet: actually you could externalize the JS code into an external JS file rather than diving it into the Django template | 14:30 |
saviet | Merio: Ok, I will do that. | 14:31 |
saviet | Merio: Organization home page, you mean the list of accepted orgs page? | 14:33 |
saviet | Merio: Oh i understand what you mean | 14:33 |
Merio | saviet: if the org admin creates a document and use its link id as the organization home page in the organization settings then in the org home page there will be a map | 14:34 |
saviet | Merio: the org home page does a similar thing as what I am trying to do! Okay i will look at the code. | 14:34 |
Merio | saviet: code in http://code.google.com/p/soc/source/browse/app/soc/content/js/templates/soc/organization/home-091027.js and http://code.google.com/p/soc/source/browse/app/soc/templates/soc/organization/home.html | 14:34 |
tpb | <http://ln-s.net/79k1> (at code.google.com) | 14:34 |
saviet | Merio: thanks :) | 14:35 |
Merio | saviet: yw :) | 14:35 |
Merio | saviet: need to go home now, I'll be offline for a hour and I'll be back here if you need something else :) See you later :) | 15:41 |
*** Merio has quit IRC | 15:41 | |
saviet | Merio: Sure thanks :) | 15:41 |
*** MatthewWilkes has quit IRC | 16:00 | |
*** dirigeant has quit IRC | 16:15 | |
*** madrazr has joined #melange | 16:55 | |
*** ChanServ sets mode: +v madrazr | 16:55 | |
*** madrazr has quit IRC | 16:56 | |
*** madrazr has joined #melange | 17:01 | |
*** ChanServ sets mode: +v madrazr | 17:01 | |
*** lresende has joined #melange | 17:05 | |
*** madrazr has quit IRC | 17:07 | |
*** lresende has quit IRC | 17:10 | |
*** lresende has joined #melange | 17:11 | |
*** madrazr has joined #melange | 17:15 | |
*** ChanServ sets mode: +v madrazr | 17:15 | |
*** dhaun has joined #melange | 17:47 | |
*** Merio has joined #melange | 17:54 | |
*** ChanServ sets mode: +v Merio | 17:54 | |
*** madrazr has quit IRC | 18:34 | |
*** saviet has quit IRC | 18:46 | |
*** lresende has quit IRC | 19:05 | |
*** lresende has joined #melange | 19:38 | |
*** Merio1 has joined #melange | 19:44 | |
*** Merio has quit IRC | 19:46 | |
*** Merio1 has quit IRC | 19:55 | |
*** Merio has joined #melange | 20:08 | |
*** ChanServ sets mode: +v Merio | 20:08 | |
*** lresende has quit IRC | 21:04 | |
*** Merio has quit IRC | 21:05 | |
*** dhaun has quit IRC | 21:23 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!