Hallo und dake schön für die schnelle Antwort, ich habe irgendwann ihre Seite "Datenverdrahten" getroffen und sie mir sehr geholfen.Die Interaktion funktionniert ohne problem, nach dem Einbinden durch getURL() kommt eine Fehlermeldung:"Objekt erwartet line:1 column:0"
Die ASV-spezifische Methode ist mit getURL() benannt. Zeige mal etwas Code, um das Problem genauer eingrenzen zu koennen. Funktioniert der Code denn ueberhaupt, wenn die zweite SVG-Datei statisch eingebunden wird?
-----------------------------------------------------------
circle.svg :
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="400" height="400">
<title>Ein Kreis wird groesser</title>
<script type="text/javascript"><![CDATA[
function machewas(){
if(objekt=document.getElementById("circle1")) objekt.setAttribute('r','100');
else alert('es gibt kein objekt');
}
]]></script>
<circle id="circle1" cx="150" cy="150" r="50" style="fill:yellow; stroke:black">
</circle>
<circle onclick="machewas();" cx="150" cy="250" r="20" style="fill:red; stroke:black">
</circle>
<text x="80" y="130" style="font: 16pt Arial;fill: black">Hallo .......</text>
</svg>
----------------------------------------------------------------
die aufrufende Methode:
function anfrage_schicken(){
//alert('Anfrage wird gesendet!!!');
loadFile('circle.svg');
}
function loadFile (fileName) {
getURL(fileName, fileLoaded);
}
function fileLoaded (data) {
if(data.success){
var node=parseXML(data.content,document); alert(data.content);
var group = node.firstChild; alert(group);
document.getElementById("view_Box").appendChild(group);
//alert(node);
}
else{alert('schwerer Ladefehler');}
}
////////////////////////////////////
MfG Mustapha