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
My problem is as follows. In my ASP page I read SVG through 'embed'
tag. I am changing few things in this svg file and then I need to
return changed svg back to server. I use IE6 and ASP. NET. I tried to
send it by XmlHttp but with no success.
var svgDocument;
function svgInitialize(evt) {
Hi Steve
i would suggest sending a string not a document Object, so
XHR.send(printNode(svgDocument));
should do the trick.
besides, please don t use getters and setters,
(old non standard syntax, dont write this:
evt.getTarget().getOwnerDocument())
this is correct: svgDocument =
Hi
text:wrap id=comments x=590 y=490 width=410
style=font-family: arial;
fill:red;
font-size: 15px;
text-align: justify;
line-interval: 1.2emmy text/text:wrap
Hi all,
I am writing a program to retrieve information from SVG in
Javascript.
I used getElementsByTagName and able to get the informations (the
attributes) of a particular element.
But when i use getElementById, it doesn't work anymore. Although in
my SVG code, there is an element with
I'll take a shot at it.
Whenever I want to update a message on an SVG display, I normally
replace the entire text node, not just update the value of the node. I
vaguely recall seeing this approach somewhere and adopted it.
var text = svgDoc.createTextNode( the new text );
var elem =
Anyone try to convert Autocad dwg file to svg?
Meanwhile I can only use illustrator to do that manually, is there any
way to do that in a batch mode?
-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my
--- In svg-developers@yahoogroups.com, samcctan [EMAIL PROTECTED] wrote:
I am writing a program to retrieve information from SVG in
Javascript.
I used getElementsByTagName and able to get the informations (the
attributes) of a particular element.
But when i use getElementById, it
Thanks martin... as you mentioned,
As the SVG DTD defines its attributes in an external DTD you will
not get Mozilla to look at it at all and therefore Mozilla (at least
in not SVG enabled builds) will not know about attributes of type ID
in SVG documents and thus getElementById does not
--- In svg-developers@yahoogroups.com, steve2kbn [EMAIL PROTECTED] wrote:
In my ASP page I read SVG through 'embed'
tag. I am changing few things in this svg file and then I need to
return changed svg back to server. I use IE6 and ASP. NET. I tried to
send it by XmlHttp but with no
Hi G. Wade,
Thank you very much for your quick response. Your method works for
my text elements except the one needs to be wrapped.
To wrap long text, I borrowed the javascript TextWrap.es from
http://www.xml.com/2002/09/11/examples/TextWrap.es and defined a
text:wrap element (id=comment)
Jacky,
in ASV you'll put 'Copy SVG'(contextmenu) into action...
(Windows ClipBook viewer (/system32/clipbrd.exe) will show the
bmp/txt results;-)
hth
Paul
--- In svg-developers@yahoogroups.com, Ronan O'Driscoll
[EMAIL PROTECTED] wrote:
Hi Jacky,
You could try:
Hi Martin,
Thank you very much! I can now retrieve the attributes by using
the codes you suggested. I am able to identify them by id and class
as well.
If you don't mind, could I know is it possible for me to put all the
returned values in an array? Lets say, in my svg, I have a few
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
text:wrap element as
Hi,
I am writing a Javascript to read my SVG file. There are two things I
am confuse of.
1. I know I am not suppose to use try{} catch{} in my JS. But if I
take them out, then some errors will be poping up.
Code:
function readXML(url){
try {
req = new XMLHttpRequest();
Hi Martin,
If there are a few elements in one id or class, as in most of the
SVG, it might have a few rect which having the same class.
I tried to run with the code below:
var element = getElementById(resp, 'xAxis');
var elementAtt = element.getAttribute('d');
alert(The colour of
It looks like you are really duplicating getURL() functionality. If that is
true - unless there is some reason you need to get the XML through your
routine - you could use the getURL() itself right?
I have an SVG that is somewhat older and does on-the-fly wrapping and
updating of a set of text. The code is open as it was for a University
project. I am not sure if it will help or not... and if I did it today I
would do things slightly different (e.g. more conformance ;))
18 matches
Mail list logo