Re: [svg-developers] Re: call JS function from html ?

2011-03-15 Thread ddailey
I believe the examples in 
http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#scripting_HTML work 
in all browsers.

cheers
David
  - Original Message - 
  From: profileofpradeep 
  To: svg-developers@yahoogroups.com 
  Sent: Tuesday, March 15, 2011 2:09 AM
  Subject: [svg-developers] Re: call JS function from html ?



  Hi Jololivier,

  The code you posted does not work in Chrome. Please help me how I could make 
it work there?

  It works fine with FF and IE.

  Thank you,
  --Pradeep

  --- In svg-developers@yahoogroups.com, "jololivier"  
wrote:
  >
  > 
  > Hi,
  > you have to "connect" svg funtion and javascript function in the init 
  > event of your SVG tag.
  > 
  > For example, you want to call the svg function svgToto from 
  > javascript :
  > 
  > 
  > javascript (in the "main" page) :
  > function toto (param1, param2)
  > {
  > window.htmlToto(param1, param2);
  > }
  > 
  > 
  > Svg (in the svg embeg page):
  > function svgToto (param1, param2)
  > {
  > ...
  > }
  > 
  > function init(evt)
  > {
  > parent.htmlToto=svgToto;
  > }
  > 
  > 
  > When you call toto (param1, param2) in your "main" page, svgToto is 
  > launch.
  > 
  > 
  > 
  > --- In svg-developers@yahoogroups.com, "Alex Ost."  
  > wrote:
  > > 
  > > Hi,
  > > 
  > > It is easy to call a JS function defined in HTML from embedded SVG
  > > But, how do I do it when the function is defined in SVG and the 
  > call 
  > > should be from the html side or even from other frame?
  > > 
  > > Help will be gratitude.
  > > 
  > > 10x in advanced
  >



  

[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[svg-developers] Events when elements overlap

2011-03-15 Thread scalablev
I need to make a tooltip based on all elements below the mouse pointer, not 
just the top-most. What's the best cross-browser way to do this?

Here's an example that works in ASV: Hover over the smallest rectangle, and the 
script "diggs" through the overlapping elements by setting the pointer-events 
to none, one by one: http://kart.nois.no/pub/oye/ie9/events.svg

Other implementations don't fire the mouseover-event for the bottom elements 
when the pointer-events are removed from the top (unless the pointer is moved), 
so that breaks my current code. Any suggestions to work around this? I've had a 
look at http://www.carto.net/svg/eventhandling, but I'm not sure if any of that 
can be used.





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/