<community>of XML and SVG Developers</community>
This is a discussion on error when refreshing within the SVG Questions forums, part of the SVG Forums category; i'm using a html and javascript file that embeds a svg the page loads fine, but when you refresh the ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, hmm, I'm not sure what the problem could be. I think we will need to see the javascript and SVG. And name your browser. Learn SVG - http://learnsvg.com |
| |||
|
The file is pretty big, but here is the entire javascript section: <script type="text/javascript"> var svgDoc = document.theSVG.getSVGDocument(); var nodes = svgDoc.getElementsByTagName("circle"); svgDoc.rootElement.addEventListener("SVGZoom", syncCircle, false); function toggle_circles(checkbox) { if(checkbox.checked) showcircles = 'hidden'; else showcircles = 'visible'; for(i=0; i<nodes.length; i++) nodes.item(i).setAttributeNS(null,'visibility', showcircles); } function syncCircle() { var s = 1/svgDoc.rootElement.currentScale; for(i=0; i<nodes.length; i++) { nodes.item(i).setAttribute("r", .0005*s); } } </script> |
| |||
|
Hi, I have a similar problem refreshig a SVG document. First I open it in IE, then, I modify it with a external java class, then, I refresh the SVG document and I dont know if the IE browser or the ASV6 doesnt work well. Only some parts are refreshed and other some arent even drawn. I really dont know who is causing this problem. Please I need some help with this ... Thanks ... |
| |||
| Quote:
|
| |||
|
Same problem here. The curious thing is, sometimes it actually does work. My guess is that this is some kind of race condition. The page and the plugin load the content concurrently, but the plugin has to be finished loading for the HTML page to access the document root. (just a thought) Is there a way to ensure that the plugin has finished parsing? |
![]() |
| Tags |
| error, refreshing |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Epson Ink Cartridges
All our Epson compatible ink cartridges are made from brand new parts and contain premium quality ink. We also stock branded Epson ink cartridges
cheap ink cartridges
Yes, our ink cartridges are outrageously cheap. No, they aren't poor quality. Choose from top brands or compatible cartridges!
HARD DISK DRIVE DATA RECOVERY CHESHIRE
Are you in Cheshire and desperate for recovery of data on a hard disk drive? We have the experience and the expertise to help.