search for: clickhandl

Displaying 8 results from an estimated 8 matches for "clickhandl".

Did you mean: clickhandler
2009 Mar 24
0
Patch: clickHandlers in VirtualEarth
...avascript errors in Virtual Earth maps ("e.view is undefined"). I''m using version 6 of mapcontrol.ashx. After consulting Virtual Earth documentation, I came up with a solution. Here is my patch (based on rev 212) > var that = this; 360c361,368 < me.clickHandler(e.view.LatLong.Latitude, e.view.LatLong.Longitude, me); --- > //added by FB > var x = e.mapX; > var y = e.mapY; > var pixel = new VEPixel(x, y); > var LL = that.maps[api].PixelToLatLong(pixel); > //end of add > //me.clickHandl...
2006 Mar 09
2
extending an existing DOM object in a prototype way
...I have in mind, but I''m not sure this is exactly correct: var ActiveSpan = Class.create(); ActiveSpan.prototype = { initalize: function(span) { Object.extend(span, this); this.registerCallbacks(); }, registerCallbackss: function() { Event.observe(this, ''click'', clickHandler.bindAsEventListener(this); }, clickHandler: function(e) { this.style.background = "red"; } } does this look right? Also, I''ll eventually want to go through the child elements in the initalize method to set those children up as well. The overall goal of this is to create...
2006 Mar 03
6
[PATCH] Effect.Accordion (not from the wiki)
Hello boys and girls In the ever-loving spirit of OSS, here''s another feature for s.a.u. In particular it''s called Effect.Accordion, and is a scriptaculified version of openrico''s Accordion. Work in progress, I''ll submit further modifications as the come in, but this is 90% of what needs to be done. I anticipate some bugs when I start using it more. Tested
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
...is class -- "this" will now be the DOM element extended with the ActiveSpan methods, and not just an "ActiveSpan") this.registerCallbacks(); } registerCallbackss: function() { //ALWAYS store DOM handlers in variables so you can dispose of them (prevent memory leaks) this.clickHandlerPointer = this.clickHandler.bindAsEventListener(this); Event.observe(this, ''click'', this.clickHandlerPointer); }, clickHandler: function(e) { this.style.background = this.options.color || "red"; }, dispose: function() { //get rid of the DOM event handlers......
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
...is class -- "this" will now be the DOM element extended with the ActiveSpan methods, and not just an "ActiveSpan") this.registerCallbacks(); } registerCallbackss: function() { //ALWAYS store DOM handlers in variables so you can dispose of them (prevent memory leaks) this.clickHandlerPointer = this.clickHandler.bindAsEventListener(this); Event.observe(this, ''click'', this.clickHandlerPointer); }, clickHandler: function(e) { this.style.background = this.options.color || "red"; }, dispose: function() { //get rid of the DOM event handlers......
2008 Mar 12
0
Execute custom code when clicking marker
...I do not know which events are supported by the different map providers, I don''t know if this is a good idea. This could possibly eliminate setInfoDiv() (and code related to it), as the function passed to addListener() could handle such functionality. It seems to me that the Mapstraction.clickHandler() may give functionality similar to what I need, but I don''t really understand how to use it at the moment. A couple of additional comments: setHover() seems not to be mentioned in the documentation. Also, the clickHandler() function takes an argument "me" that seems not to be...
2008 May 27
6
IE7 Problems
...his is broken var el = $m(this.pinID + "_" + this.maps[this.api].GUID).onmouseover; And if I click in the map and drag it, when I let go, I get "view.LatLong is null or not an object" on this line this.maps[api].AttachEvent("onclick", function(e) { me.clickHandler(e.view.LatLong.Latitude, e.view.LatLong.Longitude, me); }); Since I''m kind of new to this sort of development and Mapstraction, I''m wondering how much testing is done on IE7 and Virtual Earth? Do these seem like legitimate errors? Thanks, Tim
2009 Nov 04
0
r53 committed - applied patch from John McKerrell
...mxn.LatLonPoint(location.lat(), location.lng())}); + } + + // If the user puts their own Google markers directly on the map + // then there is no location and this event should not fire. + if ( location ) { + me.clickHandler(location.lat(),location.lng(),location,me); + } + }); }, applyOptions: function(){ @@ -87,6 +102,7 @@ removeMarker: function(marker) { var map = this.maps[this.api]; + marker.proprietary_marker.closeInfoWindow();...