[svg-developers] how to access fme:attribute by Javascript

2005-02-10 Thread tangdm
I converted .shp files into svg file by FME Workbench. Here is a path from the svg file. I want to get the values of SITE_NAME,EASTING, NORTHING from my javascript. They are actually the attibutes of the shapes' underlying data table. getElementById(obj1).getAttributeNS(null,"fme:SITE_NAM

[svg-developers] Re: how to access fme:attribute by Javascript

2005-02-10 Thread tangdm
uot;Safe Software FME Namespace > here", "SITE_NAME"); > > hth > Paul > --- In svg-developers@yahoogroups.com, "tangdm" <[EMAIL PROTECTED]> wrote: > > > > I converted .shp files into svg file by FME Workbench. Here is a >

[svg-developers] how to set a link to a svg element by JavaScript

2005-02-17 Thread tangdm
Hi All, I need to set different links(.pdf, .doc, .ppt) to a svg element, say varLink when I click on different map objects. I failed when I tried to change the node value of the varLink in my javaScript by svgDoc.getElementById("varLink").firstChild.nodeValue=" Here is a link"; Please

[svg-developers] one more question about setting a link to a svg element by JavaScript

2005-02-17 Thread tangdm
.createTextNode('Here is a link'); > newText.appendChild(labelText); > > newA.appendChild( newText ); > > var varLink = svgDoc.getElementById('varLink'); > varLink.appendChild(newA); > > > Hope that helps- > Doug > > doug . schepers @ vectoreal.c

[svg-developers] How to display attribute value(text wrap needed)on svg map by ECMAScript?

2005-04-13 Thread tangdm
Hello, I need to display attribute values on my svg map when I click on some map objects. Because the length of attribute "COMMENT" is 256, text wrap is required when displaying it. I tried text:wrap in svg script as followed, "my text" was wrapped. my text But I don't know how to

[svg-developers] wrap text - problem to create a text:wrap element by javascript

2005-04-19 Thread tangdm
Hi All, To wrap and display text(a map element's attribute value) on the map, I tried two approaches: (1)Create a text:wrap element in Javascript like this: var textns ="http://xmlns.graougraou.com/svg/text/";; wrapText1= svgDoc.createElementNS(textns, 'text:wrap');

[svg-developers] 3rd post - how to wrap text by JavaScript - Help please!

2005-04-24 Thread tangdm
Hi All, I am sorry I have to post the same question again because I stuck in here for two weeks and the task's deadline is in next week. My problem is text wrapping. I need to retrieve attribute values and display the data on svg map when a map element is clicked. To do this, I created a

[svg-developers] Re: 3rd post-how to wrap text by javascript-problem still there

2005-04-24 Thread tangdm
rrect but that the ASV viewer just doesn't properly > update the display when you modify the value. (I don't really know, I'm > just speculating.) > > Hope that helps, > G. Wade > > On Sun, 24 Apr 2005 08:22:58 - > "tangdm" <[EMAIL PROTECT

[svg-developers] Re: 3rd post - how to wrap text by JavaScript - Help please!

2005-04-24 Thread tangdm
Hi Holger and all, I am stupid I didn't mention what the text:wrap is in my previous messages. To wrap the long text(attribute value of a map element), I borrowed a text wrap javascript Text.es from http://www.xml.com/2002/09/11/examples/TextWrap.es and defined the element as my text