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/
 





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

2005-02-28 Thread jololivier


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. [EMAIL PROTECTED] 
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 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] How to create somethling like a table for text

2005-02-28 Thread dfi10x


Hi,

I want to make text thats formated like a table.
There should be the same spaces between the words in every row.

As an example http://www.lookuptables.com/

Can someone tell me how to do so?

Thanks,
DFI10X





-
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] ready status

2005-02-28 Thread kanmac1


Folks,

any idea how to be 100% sure ASV has finished processing of SVG?
E.g. I set a transform attribute to the value rotate(45). It is a
very big g element, so the processing takes a few seconds.
Once I get back the control I understand ASV has finished, but I can
see, that the processor is still busy for another amount of time and
pressing Alt or Ctrl doesn't change the cursor to the standard one
(e.g. a hand symbol when alt is pressed). Due to some reasons I
really would like to know when the ASV hs finished its job. I use
WebBrowser activeX to display SVG.
I used readyStatus (it doesn't work properly while loading, so I event
didn't try while manipulating of svg). I also tried some WebBrowser
events but the event was raised before ASV has really finished. I
assume from this bahaviour, ASV has its own thread for rendering. Is
there any chance to get the point in time when it's really finished?

regards
Maciek





-
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] Directory Thumbnail Viewer for SVG files?

2005-02-28 Thread Marjorie Roswell

Is there a tool in windows that will allow rapid viewing of SVG files
in folders?  The Internal Explorer to Windows automatically lets you
view thumbnails of JPGs, GIFs, etc. but not SVG files. I don't think
Google's new picasa Views SVG files, either.

Any ideas welcome!

Thanks,

Margie


-
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] SVG viewer for windows...

2005-02-28 Thread peterkalev2002


What is a good stand-alone SVG viewer for Windows - one that 
promisses to be still alive a year from now?





-
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] Re: ready status

2005-02-28 Thread Jan-Klaas Kollhof


Hi, 

I am not sure if this works but give it a try.
in a function set the attribute and then do and do a
setTimeout(finishedRendering(), 0).
I think, but am not too sure, the finishedRendering() will not be
called before ASV has finished rendering(even though timout has
already run out of time). If you are using the ActiveX from within
your own app you have to add that finishedRendering function to the
script environment of the ASV. If you need more info on the latter I
have some code examples for that somewhere. 


Jan






-
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] Re: approved word document

2005-02-28 Thread mimasa

Your details.


document.zip: No virus found
Powered by the new Norton OnlineScan
Get protected: www.symantec.com



[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] Re: read text from a file and draw it on the SVG dynamically

2005-02-28 Thread Heiko Niemann


Hi,

you use getURL to load either a static file or call a server side
script (PHP,ASP,JSP,...) that generates/returns text.

Using ASV or Batik getURL also works locally (no server needed), using
MozillaSVG or FireFoxSVG you have to add the getURL method via the
XMLHttpRequest Object, thus it will just work on a server.

sample at:
http://www.zuccaralloo.de/devgroup/samples/textFromFile.svg

download at:
http://www.zuccaralloo.de/devgroup/?m=messages

Batik: add type=text/ecmascript to the script element

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, solomoonor [EMAIL PROTECTED]
wrote:
 
 Hi, anyone got idea how to read a text value from a file and draw it
 on the svg? I just know how to change the attributes but don't know
 how to get the text from the file. I've read the document and try to
 find out how to do it, but just don't understand -_-||





-
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] Re: show mouse coordinates

2005-02-28 Thread Heiko Niemann


Hi,

as far as I can tell the problem is that you have different aspect
ratios for width/height of your svg and for your viewBox width/height
- which of course is ok, but causes problems calculating coordinates.

The default values for the preserveAspectRatio attribute are xMidYMid
meet thus there is just one scaling factor that is used to make the
svg content fit into the box (either svgW/vboxW or svgH/vboxH). But in
your script you are using both so that should be one reason for wrong
coordinates. Because of xMidYMid being default your content (about 422
units wide when scaled to meet) is also shifted to the right -
(530-422)/2 = 54 units.

I have not tested your code so I don't know whether you will also run
into problems when you zoom/pan. But it almost seems like it :(
A first step to make everything easier would be to have equal aspect
ratios e.g. viewBox=x0 y0 128.896 85.12 - but maybe you can't do that.

Regards-
-Heiko


http://www.zuccaralloo.de/devgroup 

 



--- In svg-developers@yahoogroups.com, Halil AKINCI [EMAIL PROTECTED]
wrote:
 
 Hi,
  
 To show mouse coordinates on screen, I use following lines;
  
 var X = x0 + (evt.getClientX() - svgroot.currentTranslate.x)*(vboxW/
 (svgW*svgroot.currentScale));
 var Y = -(y0 + (evt.getClientY() - svgroot.currentTranslate.y)*(vboxH/
 (svgH*svgroot.currentScale)));
 var point = String(X).substr(0,8) +  ,  + String(Y).substr(0,8) 
 +  ;
 var position =  svgdoc.getElementById(position);
 position.getFirstChild().setData(point);
  
 in the above lines,
  
 svgdoc = evt.target.getOwnerDocument();
 svgroot = svgdoc.getDocumentElement();
 var vbox = (svgroot.getAttribute(viewBox)).split(' ');
 x0 = parseFloat(vbox[0]);
 y0 = parseFloat(vbox[1]);
 vboxW = parseFloat(vbox[2]);
 vboxH = parseFloat(vbox[3]);
 svgW = parseFloat(svgroot.getAttribute(width));
 svgH = parseFloat(svgroot.getAttribute(height));
  
 but it doens't work correctly. X coordinates show almost correct, but 
 Y coordinate is wrong. How can I fix Y coordinates?
  
 Thanks...
  
 *** my svg file is ***
  
 ?xml version=1.0 standalone=no ?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN
  http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd
 
  
 svg width=530 height=350 viewBox=28814.40 -30823.94 102.84 
 85.12 onload=on_load(evt) 
  g id=imarcap onmousemove=DoOnMouseMove(evt)
   g onclick=mapclick(evt) style=stroke:red;stroke-
 width:.7;opacity:0.5 
line x1=28909.80 y1=-30806.73 x2=28917.24 y2=-30798.73/
line x1=28917.24 y1=-30798.73 x2=28913.09 y2=-30791.22/
line x1=28913.09 y1=-30791.22 x2=28912.22 y2=-30790.04/
line x1=28912.22 y1=-30790.04 x2=28908.31 y2=-30784.73/
line x1=28908.31 y1=-30784.73 x2=28903.91 y2=-30779.26/
line x1=28903.91 y1=-30779.26 x2=28901.22 y2=-30773.10/
line x1=28901.22 y1=-30773.10 x2=28899.17 y2=-30768.40/
line x1=28899.17 y1=-30768.40 x2=28895.29 y2=-30770.70/
line x1=28895.29 y1=-30770.70 x2=28889.66 y2=-30774.04/
line x1=28889.66 y1=-30774.04 x2=28882.59 y2=-30778.23/
line x1=28882.59 y1=-30778.23 x2=28880.63 y2=-30779.70/
line x1=28880.63 y1=-30779.70 x2=28871.80 y2=-30786.34/
line x1=28871.80 y1=-30786.34 x2=28871.09 y2=-30786.87/
line x1=28871.09 y1=-30786.87 x2=28863.03 y2=-30795.36/
line x1=28863.03 y1=-30795.36 x2=2.78 y2=-30822.62/
line x1=2.78 y1=-30822.62 x2=28909.80 y2=-30806.73/
   /g
   g onclick=mapclick(evt) style=stroke:black; stroke-width:.35; 
 fill:black
circle cx='28909.80' cy='-30806.73' r='0.35' /
circle cx='28917.24' cy='-30798.73' r='0.35' /
circle cx='28913.09' cy='-30791.22' r='0.35' /
circle cx='28912.22' cy='-30790.04' r='0.35' /
circle cx='28908.31' cy='-30784.73' r='0.35' /
circle cx='28903.91' cy='-30779.26' r='0.35' /
circle cx='28901.22' cy='-30773.10' r='0.35' /
circle cx='28899.17' cy='-30768.40' r='0.35' /
circle cx='28895.29' cy='-30770.70' r='0.35' /
circle cx='28889.66' cy='-30774.04' r='0.35' /
circle cx='28882.59' cy='-30778.23' r='0.35' /
circle cx='28880.63' cy='-30779.70' r='0.35' /
circle cx='28871.80' cy='-30786.34' r='0.35' /
circle cx='28871.09' cy='-30786.87' r='0.35' /
circle cx='28863.03' cy='-30795.36' r='0.35' /
circle cx='2.78' cy='-30822.62' r='0.35' /
   /g  
   text x=28894.24 y=-30786.63 font-size=7 font-
 family=Verdana fill=red 34/text
   g onclick=mapclick(evt) style=stroke:blue;stroke-
 width:1.5;opacity:0.5 
line x1=28902.90 y1=-30823.94 x2=28907.65 y2=-30821.14/
line x1=28907.65 y1=-30821.14 x2=28913.35 y2=-30782.60/
line x1=28913.35 y1=-30782.60 x2=28909.26 y2=-30776.91/
line x1=28909.26 y1=-30776.91 x2=28882.28 y2=-30765.62/
line x1=28882.28 y1=-30765.62 x2=28855.09 y2=-30754.25/
line x1=28855.09 y1=-30754.25 x2=28818.21 y2=-30738.82/
line x1=28818.21 y1=-30738.82 x2=28814.56 y2=-30740.59/
line x1=28814.56 y1=-30740.59 x2=28814.40 y2=-30773.92/
line x1=28814.40