Thanks for the answer!
I have looked at the example you pointed out.
As far as I can see in this example the svg "drawing" ($('#svgselect').svg({onLoad: function(svg)) is together with the scripting part in only one file, besides the shapes are created using the same jQuery SVG extension which later modifies them.
What I want to do, instead, is to embed an SVG file created on INKSCAPE, so this SVG file I embed doesn't have this jQuery-like encoding (since it's basically a graphic created on Inkscape)
For instance, my rectangles are not created as...
Code:
svg.rect(10, 20, 150, 100, {id: 'rect1',fill: 'red', stroke: 'black', strokeWidth: 3});
...but created as...
Code:
<rect id="rect1" x="10" y="20" width="150" height="100" style="fill:red;stroke:black"/>
So, my issue is...
1) I create a graphic using Inkscape, in this graphic I insert a rectangle whose id is "rect1" (as it was defined before). I save this graphic as "svgfile.svg"
2)I embed this newly created svg graphic in my file "index.html"...
Code:
<embed name="scada" id="scada" src="svgfile.svg" type="image/svg+xml" width="100%" height="800"/>
3)Now, from my html file I want to change the colour of the rectangle using jQuery after, for instance, I click on a button which calls the following function...
Code:
$('#link').click(function(){
// CODE THAT CHANGES THE COLOUR OF THE RECTANGLE
});
I need a clue about how this code will look like, if there is a way to do this.
Thank you very much for reading so far 
Hope somebody can help me.
Greetings.
Francisco.
Bookmarks