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

2005-02-28 Thread Jérôme Tricand de la Goutte

Hi

You must define a empty variable myVar in your HTML doc.
Then you define your function myFunction(args) in your SVG.
then use parent.myVar=myFunction.

Then, you will be able to use myFunction in HTML, calling myVar(args)

Hope it helps

Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



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 

 





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links



 



  



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-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/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





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

2005-02-28 Thread alexost

Hi, Again

This solution seems like a good one for functions (I didn’t tried it yet,
but I think it will do the work).

But, what will be the solution for variables, for example:

In html file in local script I need to use a value of a global variable from
SVG local script, how I can I do it? I can’t do the same link for variables
as I did for functions.

Is the only solution is to use your solution in variation:

To create a function in the SVG myFunction that will return the value of a
global variable

And to define parent.myVar=myFunction

 

Are there other solutions?

 

 

 

 

 

 

  _  

From: Jérôme Tricand de la Goutte [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 9:56 AM
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] call JS function from html ?

 

Hi

You must define a empty variable myVar in your HTML doc.
Then you define your function myFunction(args) in your SVG.
then use parent.myVar=myFunction.

Then, you will be able to use myFunction in HTML, calling myVar(args)

Hope it helps

Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



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 

 





-
To unsubscribe send a message to:
[EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my
membership
 
Yahoo! Groups Links



 



  



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my
membership
 






Yahoo! Groups Sponsor



ADVERTISEMENT
 
http://us.ard.yahoo.com/SIG=129abvrtl/M=298184.6018725.7038619.3001176/D=gr
oups/S=1706030389:HM/EXP=1109664090/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
etflix.com/Default?mqso=60190075 click here


 
http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
:HM/A=2593423/rand=280049871 

 

  _  

Yahoo! Groups Links

*   To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo!
http://docs.yahoo.com/info/terms/  Terms of Service. 



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



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-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/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[svg-developers] call JS function from html ?

2005-02-25 Thread Alex Ost.


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 

 





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-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/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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