kelum
07-12-2004, 12:55 AM
hi,
i have a problem with getURL method.
using the following code i add the xml file to existing svg content.
var new_node //global variable
function get_url(evt)
{
svgdoc = evt.target.ownerDocument
getURL("rivers"+count+".xml",callback)
}
function callback(data)
{
if (data.success)
{
new_node= parseXML(data.content,svgdoc)
svgdoc.getElementById("base").appendChild(new_node)
}
then i try to drop that xml file using following method.
bnode=svgdoc.getElementById("base") //base--parent of the added layer
bnode.removeChild(new_node)
but this give error like DOMERROR ......
if you can pls help me
regards,
kelum
i have a problem with getURL method.
using the following code i add the xml file to existing svg content.
var new_node //global variable
function get_url(evt)
{
svgdoc = evt.target.ownerDocument
getURL("rivers"+count+".xml",callback)
}
function callback(data)
{
if (data.success)
{
new_node= parseXML(data.content,svgdoc)
svgdoc.getElementById("base").appendChild(new_node)
}
then i try to drop that xml file using following method.
bnode=svgdoc.getElementById("base") //base--parent of the added layer
bnode.removeChild(new_node)
but this give error like DOMERROR ......
if you can pls help me
regards,
kelum