hvordan er det nu lige med .......
Hejsai denne form er der en knap der hedder "generate HTML" ved siden af denne knap vil jeg gerne have en ny knap med teksten "send til dok" knappens funktion er at sende "resultatet af formen" til et bestemt dok. (eks. test.htm) kan det lade sig gøre vha. noget action=post eller andet ???
her er formen....
---------- cut --------
<HTML>
<HEAD>
<TITLE>Medlem's Generator</TITLE>
<SCRIPT language="JavaScript">
<!--
function generate(aForm)
{
window.parent.frames[1].document.close();
window.parent.frames[1].document.open();
window.parent.frames[1].document.close();
window.parent.frames[1].document.writeln("<HTML>");
window.parent.frames[1].document.writeln("<BODY BgColor=\"white\">");
window.parent.frames[1].document.writeln('<CENTER><FONT Face=\"Arial\">Medlems Generator - HTML code for <B>'+document.gen.typpe.value+'</B></FONT></CENTER><BR>');
window.parent.frames[1].document.writeln('<PRE>');
window.parent.frames[1].document.writeln('<!--------- Cut Below This Line --------->');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.fornavn.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN="top" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.typpe.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN="top" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+ document.gen.eftnavn.value +'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN="top" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.dato.value +'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN="top" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.periode.value+'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('</tr>');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.kr.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.email.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.innavn.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.inpass.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('<tr ALIGN="Center">');
window.parent.frames[1].document.writeln(' <td VALIGN="TOP" BGCOLOR="Silver">');
window.parent.frames[1].document.writeln(' <a NAME="'+document.gen.typpe.value.substring(0,1) +'"></a>');
window.parent.frames[1].document.writeln(' <font COLOR="Black" SIZE="2" FACE="Arial">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.bem.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln('<!--------- End Above This Line --------->');
window.parent.frames[1].document.writeln('</PRE><CENTER>');
window.parent.frames[1].document.writeln('<FONT face=\"Arial">This is how it will look like</FONT><BR>');
window.parent.frames[1].document.writeln('<TABLE border=\"1\" width=\"100%\" bgcolor=\"#000000\">');
window.parent.frames[1].document.writeln('<tr ALIGN=\"Center\">');
window.parent.frames[1].document.writeln(' <td VALIGN=\"top\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.dato.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.typpe.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"top\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+ document.gen.fornavn.value +'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"top\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.eftnavn.value +'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"top\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.email.value+'</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.periode.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.kr.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.innavn.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.inpass.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' <td VALIGN=\"TOP\" BGCOLOR=\"Silver\">');
window.parent.frames[1].document.writeln(' <a NAME=\"'+document.gen.typpe.value.substring(0,1) +'\"></a>');
window.parent.frames[1].document.writeln(' <font COLOR=\"Black\" SIZE=\"2\" FACE=\"Arial\">');
window.parent.frames[1].document.writeln(' <b>'+document.gen.bem.value + '</b>');
window.parent.frames[1].document.writeln(' </font>');
window.parent.frames[1].document.writeln(' </td>');
window.parent.frames[1].document.writeln(' </tr>');
window.parent.frames[1].document.writeln('</TABLE></CENTER>');
window.parent.frames[1].document.writeln("<P></BODY>");
window.parent.frames[1].document.writeln("</HTML>");
}
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="WHITE">
<FORM name="gen">
<CENTER>
<TABLE Border="0" bgcolor="silver">
<TR>
<TD bgcolor="gray"><FONT Color="white">Typpe</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="typpe" ></TD>
<TD RowSpan="3" Valign="center" bgcolor="white">
</TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">For nvan</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="fornavn" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Efter navn</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="eftnavn" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Dato</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="dato" ></TD>
<TD BGColor="WHITE" align="center">Local Version</TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Periode</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="periode" ></TD>
</tr>
<TR>
<TD bgcolor="gray"><FONT Color="white">Kr.</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="kr" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">E-Mail adr.</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="email" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Login Navn</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="innavn" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Login Pass.</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="inpass" ></TD>
</TR>
<TR>
<TD bgcolor="gray"><FONT Color="white">Bemærkninger</FONT></TD>
<TD bgcolor="gray"><INPUT Type="TEXT" Name="bem" ></TD>
<TD bgcolor="gray">
<INPUT type="button" value="Generate HTML" onClick="generate(document.forms[0])">
<INPUT type="reset" value=" Clear " onclick="window.parent.frames[1].document.close();window.parent.frames[1].document.open();window.parent.frames[1].document.close();">
<INPUT type="button" value=" Exit " onClick="window.parent.history.back()">
</TD>
</TR>
</TABLE>
</CENTER><NOBR>
</FORM><NOBR>
</BODY>
</HTML>
