Sonia: "typeText" not defined??? wieso?

Beitrag lesen

Hallo,

ich hab da mal ein kleines Problem.
Ich hab mir hier ein Dokument gebastelt, das, wenn man auf eine bestimmte
Stelle auf einem Bild klickt, in einem Layer etwas reingeschrieben werden
soll. Das Problem: ich bekomme von Netscape immer die Fehlermeldung:
-->
JavaScript Error:
http://domino/informatica/telefono.nsf/Localintern, line 9:

typeText is not defined.
<--

Wieso? frage ich mich dann nur noch verdutzt

<HTML>
<!-- Lotus-Domino (Versi¢n 4.6.2a - 9 Octubre 1998 on Windows NT/Intel) -->
<HEAD>
<script language = "JavaScript">

var lclNames=new Array (
          'Miguel, Thomas, Juanjo, Josema',
          'Jose' );

function typeText(text)
  {
         var out='<font face="Arial, Helvetica">[ <font   color=#0033FF><font size=10pt>'+text.substring(0,text.length)+'</font></font> ]</font>';
          if(navigator.appName=="Netscape")
                  with(document.names.document)
                  {
                    open();
                    write(out);
                    close();
                  }
          else
                  names.innerHTML=out;
   }

</script>
</HEAD>
<BODY TEXT="000000" BGCOLOR="ffffff" BACKGROUND="/informatica/telefono.nsf/714ee75fcb2c2dbf41256a87004dd16d/$Background/0.1e?OpenElement&FieldElemFormat=gif">

<FORM METHOD=post ACTION="/informatica/telefono.nsf/714ee75fcb2c2dbf41256a87004dd16d?CreateDocument" NAME="_Localintern"></Form>
<INPUT NAME="$$HTMLHead" VALUE="[<script language = "JavaScript">  var lclNames=new Array (          'Miguel, Thomas, Juanjo, Josema',          'Jose' );    //Dieser Methodenaufruf muss in den href!   //function start()  /*{          typeText(lclNames[0]);  }*/    function typeText(text)  {         var out='<font face="Arial, Helvetica">[&nbsp;<font   color=#0033FF><font size=-1>'+text.substring(0,   text.length)+'</font></font>&nbsp;]</font>';           if(navigator.appName=="Netscape")                  with(document.names.document)                  {                          open(); write(out); close();                  }          else                  Names.innerHTML=out;   }  </script>]"><DIV ID="localMap"  style="position: absolute; top: 20; left: 10; width=300; height= 410;"> <img name="mapintpl1" src="../../images/mapintpl1.jpg" width="269" height="400" border="0" usemap="#m_mapintpl1"><map name="m_mapintpl1">

<---##############################-->
<area shape="rect" coords="51,30,84,52"
href="#1" OnClick="typeText(lclNames[0],3 - 1, 1)" alt="hier">
^^^^^^^^^ ^^^^^^^^
variante 1 variante 2

<---##############################-->
<area shape="rect" coords="88,12,269,51" href="2" alt ="2">
<area shape="rect" coords="102,54,269,92" href="3" alt ="3" >
<area shape="poly" coords="198,243,224,220,197,219" href="#" >
<area shape="poly" coords="197,140,196,186,214,186,220,185,222,201,261,202,261,141" href="#" >
<area shape="rect" coords="101,176,135,234" href="#" >
<area shape="rect" coords="69,177,100,234" href="#" >
<area shape="rect" coords="38,177,68,233" href="#" >
<area shape="rect" coords="5,187,35,221" href="#" >
<area shape="rect" coords="37,109,71,171" href="#" >
<area shape="rect" coords="133,141,163,172" href="#" >
<area shape="rect" coords="102,143,129,169" href="#" >
<area shape="rect" coords="5,156,33,181" href="#" >
<area shape="rect" coords="5,222,34,246" href="#" >
<area shape="rect" coords="4,247,35,282" href="#" >
<area shape="rect" coords="37,237,68,294" href="#" ><BR>
<area shape="rect" coords="67,237,101,296" href="#" >
<area shape="rect" coords="5,284,36,309" href="#" >
<area shape="rect" coords="4,309,34,347" href="#" >
<area shape="rect" coords="38,299,67,361" href="#" >
<area shape="rect" coords="67,297,99,362" href="#" >
<area shape="rect" coords="99,298,133,362" href="#" >
<area shape="rect" coords="0,363,65,395" href="#" >
</map>
<a name="1">
<script language="JavaScript">

typeText(lclNames[0]);

</script>
</a>
</DIV>
<DIV IP="names"  style="position: absolute; top: 20; left: 400;"></DIV>
<P>
<INPUT TYPE=submit VALUE="Transferir"></FORM>
</BODY>
</HTML>

hoffentlich findet jemand was, ich such schon die ganze
Zeit und seh den wald vor lauter baeumen nicht

Gruss
Sonia