tschanne: Variable als HTML-Code ausgeben

Beitrag lesen

Hallo,

wie sieht denn der Code drum rum aus?

sondern löschen die seite und schreibt es in eine weisse html seite!!??

Klingt für mich als stände da irgendwo noch ein unmotiviertes document.open

Grüße,
Utz

hi
nein nirgends is document.open
hier der restliche code:
    <td>

<select size="1" name="Auspragung" class="popup1" ID=Select4>

<option value="" selected></option>

<script type="text/javascript">
  function anz(BI)
   {
   <%rsBI1.MoveFirst%>
   //Variablen-Definition
   //**************************************************
   var max = <%=rsBI1.RecordCount%>;
   var z = 0;
   var tat = 0;

//Definition Gesamt-Array
   var BI1 = new Array(max);
   for(var i = 0; i < BI1.length; ++i)
   {
    BI1[i] = new Array(3);
   }
   //**************************************************

//Abfüllen Gesamt-Array
   //**************************************************

while(z < max)
   {
   <%
   while not rsBI1.EOF
   %>

BI1[z][0] = "<%=rsBI1("MID")%>";
   BI1[z][1] = "<%=rsBI1("Beschaffungsinstrument")%>";
   BI1[z][2] = "<%=rsBI1("Bezeichnung")%>";

if(<%=rsBI1("Beschaffungsinstrument")%> == BI)
   {
   tat++;
   }
   z++;
   <%
   rsBI1.MoveNext
   wend
   %>
   }
  //**************************************************
  //Anzeige
  z = 0;
  document.writeln("<selcet>");
  while(z < max)
  {
   if(BI1[z][1] == BI)
   {
   document.writeln("<option value='" + BI1[z][0] + "'>" + BI1[z][2] + "</option>");
   }
  z++;
  }
  document.writeln("</selcet>");
  }
  </script>
 </select>
 </td>

Vom Prinzp her is das schon möglich, das man so mit document.write bei ner select box options anfügen kann oder?