Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jeff Rafter
>No it doesn't it implies that the geometry is calculated, nothing > needs to be rendered. That is typically the act of putting bits on a > device, and is generally much more expensive than just calculating the > bbox of content. Sorry, that is a good distinction-- however I have seen rendere

[svg-developers] SVG and XLink in HTML

2005-10-17 Thread delmundo51
Hi there, i try to create SVG-Code out of xml-files dynamically, which i want to embed into HTML-Tables as Code(not as link to a SVG-File). Here a little example of a file with svg-Code in HTML: "http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";> Newscollector

[svg-developers] svg + jsp

2005-10-17 Thread nuggehalli_narasimha
Hi there, Is there an example where a svg file created on the fly is being dynamically called within the JSP page. Any help will be appreciated. Thanks, --N Yahoo! Groups Sponsor ~--> Most low income households are not online. Help bridge the digi

Re: [svg-developers] get java variable inside svg document

2005-10-17 Thread thomas . deweese
Hi Nathan, svg-developers@yahoogroups.com wrote on 10/17/2005 03:19:39 PM: >I am using batik squiggle as svg viewer.Is it possible to call a > java function or get the value of a function in a java class > (implemented in Batik) from with in an svg document. Yes. Batik uses the Mozilla

Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread thomas . deweese
Hi Jeff, svg-developers@yahoogroups.com wrote on 10/17/2005 02:06:04 PM: > Hmmm, forceRedraw *should* work in an ideal world-- but I haven't tested > it. Essentially this is a problem with many implementations-- the DOM is > lazy with respect to rendering hints. In SharpVectorGraphics I think

[svg-developers] get java variable inside svg document

2005-10-17 Thread sent1729
Hi All, I am using batik squiggle as svg viewer.Is it possible to call a java function or get the value of a function in a java class (implemented in Batik) from with in an svg document. Thanks for any input, Nathan. Yahoo! Groups Sponsor ~

Re: [svg-developers] node from id

2005-10-17 Thread Jeff Rafter
> Mozilla maintains a hash table. I'd imagine most other browsers would do the > same, but I could be wrong. Agreed. Another important point is this: because all of the implementations do silly stuff like maintain a hash table you can get into trouble with IDs. Supposedly the DTD has to be in fo

RE: [svg-developers] node from id

2005-10-17 Thread Doug Schepers
Hi, David- | At 08:24 AM 10/17/2005, Doug wrote: | >That way, you're only hitting the DOM to find the element | once, instead | >of twice. gEBI is a rather expensive method call, I would think, | >especially on large documents (unless the implementation | caches a hash | >table of all the ids

Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jeff Rafter
Jonathan Watt wrote: > This is a very unfortunate problem. :-( > Rendering is asynchronous so at the point in time the following line is > called the 'rect' probably won't have been rendered. You could try calling > document.documentElement.forceRedraw() here, but I don't think forceRedraw > w

Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
On 10/17/05, david dailey <[EMAIL PROTECTED]> wrote: > > At 08:24 AM 10/17/2005, Doug wrote: > >That way, you're only hitting the DOM to find the element once, instead > of > >twice. gEBI is a rather expensive method call, I would think, especially > on > >large documents (unless the implementation

RE: [svg-developers] node from id

2005-10-17 Thread david dailey
At 08:24 AM 10/17/2005, Doug wrote: >That way, you're only hitting the DOM to find the element once, instead of >twice. gEBI is a rather expensive method call, I would think, especially on >large documents (unless the implementation caches a hash table of all the >ids). Interesting -- I would take

[svg-developers] How to create similar picture using SVG?

2005-10-17 Thread Gmail
Hello! Please look at the picture in attachment. Is it possible to create such picture using SVG (via Batik for example) and is it too hard? I would like also the way how I can insert texture in the text. Can I create lightning effects to emulate 3D text simultaneously with a texture? Please give

RE: [svg-developers] xml to svg need help ASAP

2005-10-17 Thread Doug Schepers
Hi, mapinja- You have 2 issues you need to solve: 1) load and process the SVG; 2) figure out how to draw the charts. For the first problem, you might look at the example found here: http://www.zuccaralloo.de/devgroup/content.php?m=messages Specifically, the file: http://www.zuccaralloo.de/devg

Re: [svg-developers] parseXML doesnt split up XML nodes

2005-10-17 Thread Olaf Schnabel
Hi nasenma25 In my opinion you get the root element back, if you ask for xmldoc.childNodes. Try xmldoc.documentElement.childNodes; > var xmldoc = parseXML(obj.content); > var nodes = xmldoc.childNodes; > alert("ln: "+nodes.length)

Re: [svg-developers] parseXML doesnt split up XML nodes

2005-10-17 Thread Peter Thompson
I think that you need to Response.write something like "" after you set the content type but before Response.write mydoc.xml (to make what you send be a valid XML document). I've only done this in Java, so I may not be correct for ASP. Depending on your application, you may be able to test se

[svg-developers] Re: xml to svg need help ASAP

2005-10-17 Thread cybarber
Hi Mapinja, I will help you see below, but before that: Please do first of all read and learn the basics of transforming XML with XSLT. There are tons of info in the MSDN section of msxml4 sdk and on other websites!. Well then the following is an allround Javascript which first detects what MS

RE: [svg-developers] xml to svg need help ASAP

2005-10-17 Thread Barend Köbben
Can you please first look at the help everybody has been giving you so far, see if you understand it, may be try out some things yourself, and NOT keep repeating basically the same question over and over...? I am sure your teachers would like that a lot more, and so would the people on this lis

[svg-developers] xml to svg need help ASAP

2005-10-17 Thread mapinja
I need the code to write a .svg file where I parse this xml file & plot a bar graph from those values. Can anybody help me please ASAP. 65 20 300 2400 300 25 50 Avocado Dip 29 11 3 5

[svg-developers] parseXML doesnt split up XML nodes

2005-10-17 Thread nasenma25
I am on a project reading Data from an Access DB with some Serverside ASP code, putting it into an XML and sending to to a clientside SVG. The XML data created by the ASP code displays OK so far in my IE when calling the page directly. But when i pass the ASP XML Output to my SVG i just get 1 bi

[svg-developers] Re: xml to svg conversion need help urgently

2005-10-17 Thread christophestrobbe
--- In svg-developers@yahoogroups.com, "mapinja" <[EMAIL PROTECTED]> wrote: > > hi > > i have to do a project for my multimedia class & i need to use xml & > svg. how can i extract the data from xml file & use it into an svg file > to plot a graph ? > For ASP, it depends on the version you're u

RE: [svg-developers] node from id

2005-10-17 Thread Doug Schepers
Hi, Maiko- If you're looking for the most optimized way, do it like this: var myItem = doc.getElementById('myItem'); myItem.parentNode.removeChild(myItem); That way, you're only hitting the DOM to find the element once, instead of twice. gEBI is a rather expensive method call, I would think, es

Re: [svg-developers] node from id

2005-10-17 Thread osaka minami
hi jonathan, no, i want the node itself that lays under doc.gEBI('myItemId'). if doc.gEBI('myItem').parentNode.removeChild(doc.gEBI('myItem')) is the only way to go for e.g. a remove, well, ok. i just wondered if there is a shorter, clear way. thx anyway, maiko Jonathan Watt wrote: >On 10/17/

Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
On 10/17/05, osaka minami <[EMAIL PROTECTED]> wrote: > > well i just found > > document.getElementById('myItemId').parentNode.removeChild( > document.getElementById('myItemId)); Ah, I see. I hadn't understood it was the parent node you wanted. that's a wired logic... > > maiko > > >hi, > > > >i

Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
Hi maiko, JavaScript isn't a strongly typed language, so you don't have to cast or anything like that. You just use the interface you need: var myItem = document.getElementById('myItemId'); myItem.removeChild(...); -Jonathan On 10/17/05, osaka minami <[EMAIL PROTECTED]> wrote: > > hi, > > i am

Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jonathan Watt
This is a very unfortunate problem. :-( On 10/17/05, Jérôme Tricand de la Goutte <[EMAIL PROTECTED]> wrote: > > Hi Jeff, > > On FF 1.5, you can't also do, for example : > > var myObj=document.createElementNS(NameSpace, 'rect') > myObj.setAttribute('x',20) > myObj.setAttribute('y',20) > myObj.setAt

Re: [svg-developers] node from id

2005-10-17 Thread osaka minami
well i just found document.getElementById('myItemId').parentNode.removeChild(document.getElementById('myItemId)); that's a wired logic... maiko >hi, > >i am wondering what the quickest way is to get a node >reference out of an element accessed by >.getElementById(), let's say i want handle myIt

[svg-developers] node from id

2005-10-17 Thread osaka minami
hi, i am wondering what the quickest way is to get a node reference out of an element accessed by .getElementById(), let's say i want handle myItem as a node where myItem = document.getElementById('myItemId') in order to perform a removeChild() on it. it's an easy thing when i have an event on th

Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jérôme Tricand de la Goutte
Hi Jeff, On FF 1.5, you can't also do, for example : var myObj=document.createElementNS(NameSpace, 'rect') myObj.setAttribute('x',20) myObj.setAttribute('y',20) myObj.setAttribute('width',20) myObj.setAttribute('height',20) document.getElementById('WhereIputRects').appendChild(myObj) var bb=myObj

Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jeff Rafter
> "getBBox()" is also supported, although there does seem to be something > buggy about it. I haven't troubled to track it down, but I think it only > works on visible, rendered objects. Yep, there is a problem in that you have to wait until *after* onload... but not in onload. So you have to s

[svg-developers] Re: Access is denied from SVG in Win XP

2005-10-17 Thread pilatfr
With XP SP2, you have to give complete URL ... You can use domain attribute for your svg document to be more flexible Michel --- In svg-developers@yahoogroups.com, "tbone58x" <[EMAIL PROTECTED]> wrote: > > I am getting the error Access is denied - Line 5 column 9 when > trying to open another