Dear Andreas Neumann, I am not trying to get the screen width and height of the SVG canvas.Instead I am trying to get the computers sccreen resoultion and set the svg root's viewbox to match the computer screen resolution. I certainly appreciate your reply. Any further input will be helpful.
Andreas Neumann <[EMAIL PROTECTED]> wrote: Hi Nathan, the svg root element has the .viewport attribute for that purpose which is implemented in Batik. See the file below. a good resource to view the available SVG DOM methods and properties is btw http://phrogz.net/ObjJob/object.asp?id=133 - there aren't comments, but at least you see what is available and inherited. viewport example: ---------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" onload="viewportTest()"> <script type="text/ecmascript"> <![CDATA[ function viewportTest() { var viewPort = document.documentElement.viewport; alert(viewPort.x+","+viewPort.y+","+viewPort.width+","+viewPort.height); } ]]> </script> </svg> Hope this helps, Andreas --- In [email protected], "sent1729" <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is it possible to get the windows screen size(width and height in > pixles), in batik squiglle browser. For ex: in IE using javascript we > can say screen.width and screen.height to access the windows screen > size information, is there an equivalent command in batik? > > Any help is greatly appreciated. > > Thanks > Nathan. > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- SPONSORED LINKS Xml format Svg Format Data --------------------------------- YAHOO! GROUPS LINKS Visit your group "svg-developers" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- --------------------------------- Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. [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/

