XML Elves

XML Elves

<community>of XML and SVG Developers</community>


error when refreshing

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 ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2004, 04:19 PM
Anonymous
Guest
 
Posts: n/a
Default error when refreshing

i'm using a html and javascript file that embeds a svg
the page loads fine, but when you refresh the page it makes a runtime error.
any1 know whats going on?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-17-2004, 11:11 PM
jon - svg
Guest
 
Posts: n/a
Default error when refreshing

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-18-2004, 09:51 AM
Anonymous
Guest
 
Posts: n/a
Default Re: error when refreshing

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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-28-2004, 11:13 PM
Cast
Guest
 
Posts: n/a
Default SVG refreshing problem ...

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 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-29-2004, 11:36 AM
Anonymous
Guest
 
Posts: n/a
Default Re: SVG refreshing problem ...

Mine has a problem even without any modifications.
If you load the page and then, without doing anything else, hit refresh, it'll give an error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-11-2004, 04:53 AM
Anonymous
Guest
 
Posts: n/a
Default Re: error when refreshing

Quote:
Originally Posted by Anonymous
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-16-2004, 08:50 AM
Anonymous
Guest
 
Posts: n/a
Default error when refreshing

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
error, refreshing


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 12:34 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

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.

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10