down vote
favorite
I would like to draw Bezier Curves in SVG, and i know that the code looks like:
path.setAttributeNS(null, "d", "M5,5 C5,45 45,45 45,5"
but what to do if i want to give attributes on page i mean like:
circ.setAttributeNS(null, 'cx', x);
circ.setAttributeNS(null, 'cy', y);
circ.setAttributeNS(null, 'r', bokU);
where cx,cy,r are given from page text field after i submit it with button.I mean i want to write evry x and y postion of that curve on text fields and then when i hit button it will draw curve with given atributes like x,y,bokU in second code.