T
Torsten Reiners
Hi,
it might be a simple solution but I do not see it. The problem is that
I have the following file stored on my local harddrive. All references
are URL to a remote computer. It is working, i.e. the code is not
throwing an error (btw the field should link to other pages by
clicking them).
The strange behavior is, that I copy the file to the remote computer
and execute it by typing http://www.smartframe.de/dumm.html (everybody
can try and check that it is an exact copy of the code below).
Internet explorer throws an error (Object expected) where I ask for
the getSVGDocument.
Witihn IE (6.0.28, latest SVG Plugin) I enabled the execution of JS
over domains.
Please help because I have no idea anymore but assume that it is a
simple solution. It is driving me nuts.
Thanks
Torsten
----------------------------------------------------------------------------
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="http://www.smartframe.de/static_content/css/treiners.css">
<script src="http://www.smartframe.de/applets/smartbars/SmartBar.js"
type="text/javascript"></script>
</head>
<body onload="initializefct()">
<script xmlns:smartframe="http://www.smartframe.de/xsl"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:xsp="http://apache.org/xsp" type="text/ecmascript">function
initializefct()
{
initialize_object127();
} </script>
<!-- other html code -->
<script type="text/ecmascript">
function jump_to_uri(target) {
document.location.href(target); }
function initialize_object127()
{
var obj = document.object127.getSVGDocument();
obj.getElementById("BUTTON_MS_G").setAttribute("onclick","jump_to_uri('http://www.smartframe.de:8080/cocoon/smartframe/main.xsp?identifier=treiners_2002-11-05T15:04_01:00')");
obj.getElementById("BUTTON_PROD_LOG_G").setAttribute("onclick","jump_to_uri('http://www.smartframe.de:8080/cocoon/smartframe/main.xsp?identifier=treiners_2002-11-05T15:01_01:00')");
}
</script>
<object type="image/svg+xml"
data="http://www.smartframe.de/lomobjects/me/vorms/tp3/media/svg/treiners_2003-02-05T180003_0100.svg"
width="600" name="object127" height="300"> </object>
</body>
</html>
it might be a simple solution but I do not see it. The problem is that
I have the following file stored on my local harddrive. All references
are URL to a remote computer. It is working, i.e. the code is not
throwing an error (btw the field should link to other pages by
clicking them).
The strange behavior is, that I copy the file to the remote computer
and execute it by typing http://www.smartframe.de/dumm.html (everybody
can try and check that it is an exact copy of the code below).
Internet explorer throws an error (Object expected) where I ask for
the getSVGDocument.
Witihn IE (6.0.28, latest SVG Plugin) I enabled the execution of JS
over domains.
Please help because I have no idea anymore but assume that it is a
simple solution. It is driving me nuts.
Thanks
Torsten
----------------------------------------------------------------------------
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="http://www.smartframe.de/static_content/css/treiners.css">
<script src="http://www.smartframe.de/applets/smartbars/SmartBar.js"
type="text/javascript"></script>
</head>
<body onload="initializefct()">
<script xmlns:smartframe="http://www.smartframe.de/xsl"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:xsp="http://apache.org/xsp" type="text/ecmascript">function
initializefct()
{
initialize_object127();
} </script>
<!-- other html code -->
<script type="text/ecmascript">
function jump_to_uri(target) {
document.location.href(target); }
function initialize_object127()
{
var obj = document.object127.getSVGDocument();
obj.getElementById("BUTTON_MS_G").setAttribute("onclick","jump_to_uri('http://www.smartframe.de:8080/cocoon/smartframe/main.xsp?identifier=treiners_2002-11-05T15:04_01:00')");
obj.getElementById("BUTTON_PROD_LOG_G").setAttribute("onclick","jump_to_uri('http://www.smartframe.de:8080/cocoon/smartframe/main.xsp?identifier=treiners_2002-11-05T15:01_01:00')");
}
</script>
<object type="image/svg+xml"
data="http://www.smartframe.de/lomobjects/me/vorms/tp3/media/svg/treiners_2003-02-05T180003_0100.svg"
width="600" name="object127" height="300"> </object>
</body>
</html>