Hi Selva.

Selva:
> I have also tried with absolute URL. but it is not working properly. I am 
> using my own application with JSVGCanvas to display SVG elements. When user 
> presses the "create" button, it is supposed to display the rectangle element 
> with gradient fill. But it is displaying rectangle with black fill.
> 
> Element use2 = doc.createElementNS(svgNS, "rect");
> use2.setAttributeNS(null, "x", "30");
> use2.setAttributeNS(null, "y", "30");
> use2.setAttributeNS(null, "id", "r2");
> use2.setAttributeNS(null, "width", "13");
> use2.setAttributeNS(null, "height", "13");
> use2.setAttributeNS(null, "style", "fill:file:///C:/de.svg#MyGradient");

How about with:

  use2.setAttributeNS(null, "style", "fill: url(file:///C:/de.svg#MyGradient)");

which is correct syntax?

-- 
 Cameron McCormack                      ICQ: 26955922
 cam (at) mcc.id.au                     MSN: cam (at) mcc.id.au
 http://mcc.id.au/                      JBR: heycam (at) jabber.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to