I Found the Problem!! there is a script that Facebook uses to dynamically resize the height of the application IFrame if it does not fit into the available browser window.
<div id="FB_HiddenIFrameContainer" style="display:none; position:absolute; left:-100px; top:-100px; width:0px; height: 0px;"></ div> <script src="http://static.ak.facebook.com/js/api_lib/v0.4/ FeatureLoader.js.php" type="text/javascript"></script> <script type="text/javascript"> FB_RequireFeatures(["CanvasUtil"], function(){ FB.XdComm.Server.init("xd_receiver.htm"); FB.CanvasClient.startTimerToSizeToContent(); }); </script> removing it makes the events go back to life!! I will try to find out why is this script messing up with some of the events, and post back here for your future reference. now I have to figure out a way to resize the iframe myself without calling this.. but that is another story. Thanks! -Javier On Jan 8, 11:09 am, Javier <[email protected]> wrote: > Yes I did, still waiting on an answer which if I know them already > will blame the google api :) > > I am trying to find out why some events are not fired using Firebug, > if you have any suggestion on some javascript/dom debugging extension > for firefox please let me know. > > -Javier > > On Jan 8, 11:01 am, "[email protected]" <[email protected]> > wrote: > > > On Jan 8, 6:58 am, Javier <[email protected]> wrote: > > > > Hi > > > > I am having trouble making both GPolygon and GPolyline events work as > > > they should when the page runs inside an iframe. > > > My sample page runs as an ifram application inside Facebook so I > > > cannot post the code nor links to it here, but I have tested exactly > > > the same code and I can tell so far that: > > > > click, mouseover, mouseout events work fine on IE7 and Chrome when run > > > inside an iframe. Same code don't fire the events in FF3, however, and > > > here is where it gets weird, the map events like Gmap2.click work fine > > > on all browsers when running the exact same code. > > > > If I run the same page outside the facebook iframe works like a charm > > > in all browsers, so it seems weird that map.click works fine but > > > gpolygon.click and gpolyline.click don't. > > > > Final test: running the same code on an iframe but outside facebook, > > > works perfectly fine too. So the problem might be somewhere in > > > facebook. > > > > I have tried disabling svg, and every css trick I could find but no > > > luck so far. > > > > This might be a problem on how firefox handles the events when fired > > > inside an iframe, but it makes no sense so far that some work and some > > > others don't. > > > Seems like you have pretty much proved it is specific to facebook. > > Have you tried a facebook support group? > > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
