Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > getting class of SVG element using Javascript

Reply
Thread Tools

getting class of SVG element using Javascript

 
 
Jacqueline Snook
Guest
Posts: n/a
 
      05-27-2004
Hi,

I am working on a website that uses a SVG diagram with multiple
polygons (to represent rooms in a hotel). Each polygon has a class to
represent whether the room is single or double. In a separate
javascript file, I need to do a different action depending on the
class. How do I read the class in the Javascript file. I tried using
getAttribute("class"), but this does not work - IE comes up with an
error stating 'The object doesn't support this property or method'.

Any help would be greatly appreciated as this is doing my head in!!

Jacqueline
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      05-27-2004
On 27 May 2004 10:08:55 -0700, Jacqueline Snook wrote:

> Re: getting class of SVG element using Javascript


You have the wrong group..
<http://www.physci.org/codes/javafaq.jsp#js>

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
Reply With Quote
 
 
 
 
Jacqueline Snook
Guest
Posts: n/a
 
      05-28-2004
Thanks!! (sorry)

Andrew Thompson <(E-Mail Removed)> wrote in message news:<njw5dr4p45fs.yem01plsf5f8$(E-Mail Removed)>.. .
> On 27 May 2004 10:08:55 -0700, Jacqueline Snook wrote:
>
> > Re: getting class of SVG element using Javascript

>
> You have the wrong group..
> <http://www.physci.org/codes/javafaq.jsp#js>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
svg to svg saving problem milof83 Java 1 08-18-2006 07:36 PM
[SVG] probleme dessin d'images SVG avec Batik Mardagg Java 0 05-12-2006 02:13 PM
[SVG] problem with SVG image drawing with Batik Library Mardagg Java 0 05-12-2006 02:12 PM
[SVG] using image-tag to integrate SVG in SVG Arne Nordmann XML 0 06-28-2004 01:16 PM
Getting class of SVG element in Javascript Jacqueline Snook Javascript 2 05-30-2004 10:46 AM



Advertisments