[svg-developers] Re: Passing values/string between two svg files

2006-07-16 Thread achio_84
Hi... Actually, what I want to pass between the svg files is the content of the svg file, or more specifically, the elements in the svg file. The element in the svg files are dynamic and hence, I want any changes in 1 svg file can also be seen in the other svg file. I hope what I'd stated is cl

Re: [svg-developers] Re: Passing values/string between two svg files

2006-07-13 Thread Darryl Watson
What I do is put all my javascript into the containing HTML page, not in the SVG documents. This makes it much easier to debug! The only code you should put in your SVG document is the minimum javascipt necessary to parse your Ajaxed code. Thus: (In main document:) var ParseFunc = null;

[svg-developers] Re: Passing values/string between two svg files

2006-07-12 Thread achio_84
Thanks for your reply... I'd get what you mean.. But, where should I write my javascript to get the 2nd svg file's content? Is that in the 2nd file or 1st svg file? And, if I write my javascript in the 2nd file, how can I pass the content to the 1st file? I mean how can my javascript "know" tha