[LRUG] Introduction and a request for JS help
Vahagn Hayrapetyan
vahagnh at gmail.com
Sat Jan 24 01:28:19 PST 2009
Thomas, -
thanks for the productivity tips - being a FireBug superuser is surely worth
spending some time at. A fantastic tool. Regarding JavaScript, that's one
language I really have mixed feelings for. Feels mostly like a pile 'o poo,
with some good parts in it (
http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1232740034&sr=8-1
)
When I know my way better about those good parts, I might just have a go at
refactoring that initialize() function...
Everybody: I've fixed the markers now using exactly the same correction that
got the first part working. So sole, it is obviously possible to also call
the openInfoWindowHtml(var, var) method on object (GMap2) that wraps the the
DOM element (div#map), and not only on the marker.
I also like that one can toggle / untoggle the marker when clicking it - the
official Google examples (
http://code.google.com/apis/maps/documentation/examples/icon-custom.html)
don't do that.
That's it folks. Feel free to copy&paste the code from my application.js if
at any odd point in the future you'll need it.
All the best, Vahagn
On Fri, Jan 23, 2009 at 5:47 PM, Thomas R. Koll <tomk32 at gmx.de> wrote:
>
> Am 23.01.2009 um 17:39 schrieb Vahagn Hayrapetyan:
>
> Oh YEESSSSS. Thomas, you're my man. I owe you beer (lots), anytime,
>> anywhere we meet.
>>
>> The moment I read your answer was when I finally learned to use FireBug
>> properly
>>
>
> Just to let you know the deeper secrets: I've pasted your initialize (give
> it a better name
> and make a class out of it!) into the console and took it apart till the
> map finally responded.
> console.log() ftw
> I know why I hate Javascript...
>
> ciao, tom
>
>
> --
> Thomas R. "TomK32" Koll || http://tomk32.de || http://ananasblau.com
> just a geek trying to change the world
> Skype: TomK32 || Mail: tomk32 at gmx.de
> http://flickr.com/people/tomk32
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20090124/bb34e7d5/attachment-0003.html>
More information about the Chat
mailing list