[svg-developers] How do you read a JavaScript variable value from Java?

2006-09-22 Thread supernicegenius
How do you read a SVG JavaScript variable value from Java? The Java app runs a JFrame using Batik. I have svgCanvas object visible in my Java app and I can get the root element using this code: Java code snippet--- //get the svg root element org.w3c.dom.Element svgRoot=this.s

[svg-developers] Re: Performance tips

2006-09-22 Thread Reid Priedhorsky
revelonshift wrote: > OK, thx, you're right. But since getting matrix is done only once at > the initiation phase and during gameplay is only updated, I will > probably stay at my previous solution... > Anyway .. thx for your point... but, during game I'm often affecting > fill attribute and someti

Re: [svg-developers] Newbie query - Doc displays when dragged into browser but not via apache

2006-09-22 Thread Ronan Oger
Hi there, I cut and pasted your code and it worked for me in FF1.5 and O9.02... http://www.hackmare.com/2006/09/22/01.html Is your php generating some headers in the dynamic svg? maybe take a look at what is really going on in your php... ps my apache configuration is out of the box. Ronan O

[svg-developers] Newbie query - Doc displays when dragged into browser but not via apache

2006-09-22 Thread jefferiespa1
I have a document which embeds an SVG file that displays fine in Mozilla or IE when dragged into a browser but displays the following message in Mozilla through my apache server (IE is OK) XML Parsing Error: prefix not bound to a namespace A quick bit of background. The aim is to create SVG symbo

Re: [svg-developers] new population pyramid = now firefox and opera-compliant

2006-09-22 Thread Antoine Quint
Hi, Really nice. Just a note, when using Opera 9.0.2 on Mac OS X, I can indeed view http://www.statistics.gov.uk/populationestimates/ svg_pyramid/uk/pyramid4_3.svg, but not the HTML file containing it. Maybe you should use instead of , or better yet, not use HTML at all since it's only use

Re: [svg-developers] new population pyramid = now firefox and opera-compliant

2006-09-22 Thread Erik Dahlström
On Fri, 22 Sep 2006 17:16:37 +0200, krugerboy1971 <[EMAIL PROTECTED]> wrote: > Hi list > > For those who might be interested, our population pyramid template is > now ASV, Firefox1.5 and (I think - grateful if someone could confirm) > Opera-compliant and can be seen here: > > http://www.statisti

[svg-developers] new population pyramid = now firefox and opera-compliant

2006-09-22 Thread krugerboy1971
Hi list For those who might be interested, our population pyramid template is now ASV, Firefox1.5 and (I think - grateful if someone could confirm) Opera-compliant and can be seen here: http://www.statistics.gov.uk/populationestimates/svg_pyramid/default.ht m Currently includes over 100 year t

Re: [svg-developers] Re: Performance tips

2006-09-22 Thread Erik Dahlström
On Fri, 22 Sep 2006 12:06:20 +0200, revelonshift <[EMAIL PROTECTED]> wrote: > OK, thx, you're right. But since getting matrix is done only once at > the initiation phase and during gameplay is only updated, I will > probably stay at my previous solution... > Anyway .. thx for your point... but,

[svg-developers] Re: Call ASV "copy svg" from javascript

2006-09-22 Thread brucerindahl
Joe Here is the code I use: function serializeNode (node) { if (typeof XMLSerializer != 'undefined') { var nodeString = new XMLSerializer().serializeToString(node) return nodeString; } else if (typeof node.xml != 'undefined') { return node.xml; } else if (typeof printNode !=

[svg-developers] Re: Performance tips

2006-09-22 Thread revelonshift
OK, thx, you're right. But since getting matrix is done only once at the initiation phase and during gameplay is only updated, I will probably stay at my previous solution... Anyway .. thx for your point... but, during game I'm often affecting fill attribute and sometimes using rgb color schema. Is

Re: [svg-developers] Re: Performance tips

2006-09-22 Thread David Vest
Den 2006-09-22 11:24:53 skrev revelonshift <[EMAIL PROTECTED]>: > I tried the same yesterday without success but > just today realize to get initial transform object I have to specifify > initialization in SVG like this transform="matrix(1 0 0 1 0 0)" (for > the fist time). You could use the DOM

[svg-developers] Re: Performance tips

2006-09-22 Thread revelonshift
Thank you. It works,. I tried the same yesterday without success but just today realize to get initial transform object I have to specifify initialization in SVG like this transform="matrix(1 0 0 1 0 0)" (for the fist time). Then it works. Now I replaced the most often setAttribute() calls and see

Re: [svg-developers] Re: Performance tips

2006-09-22 Thread Erik Dahlström
On Thu, 21 Sep 2006 19:28:16 +0200, revelonshift <[EMAIL PROTECTED]> wrote: > I also think that getting infoamtion from DOM on the fly is > slowing-down operations, so I've already cached all nodes in variables > and using only write - setAttributeNS method. > But maybe using directly SVG DOM co