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="initial izefct()">
<script xmlns:smartfram e="http://www.smartframe. de/xsl"
xmlns:cinclude= "http://apache.org/cocoon/include/1.0"
xmlns:xsp="http ://apache.org/xsp" type="text/ecmascript">fun ction
initializefct()
{
initialize_obje ct127();
} </script>
<!-- other html code -->
<script type="text/ecmascript">
function jump_to_uri(tar get) {
document.locati on.href(target) ; }
function initialize_obje ct127()
{
var obj = document.object 127.getSVGDocum ent();
obj.getElementB yId("BUTTON_MS_ G").setAttribut e("onclick","ju mp_to_uri('http ://www.smartframe. de:8080/cocoon/smartframe/main.xsp?identi fier=treiners_2 002-11-05T15:04_01:00' )");
obj.getElementB yId("BUTTON_PRO D_LOG_G").setAt tribute("onclic k","jump_to_uri ('http://www.smartframe. de:8080/cocoon/smartframe/main.xsp?identi fier=treiners_2 002-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>