Avatar billede gonzzo Nybegynder
14. november 1999 - 14:25 Der er 4 kommentarer og
1 løsning

send til dokument

Hejsa
i 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/gemme" "resultatet af formen" til et bestemt dok. (eks. test.htm) kan det lade sig gøre

---------- eks på test.htm hvor resultatet skal indsættes -----------
<html>

<!-- Minus AutoDato -->
</head>

<body>
<body background="../grafik/bag.gif" bgproperties="fixed">
<font color=#ffffff>

</body>
<TABLE border="1" width="100%" bgcolor="#000000">

>>>>>>her skal være en eller anden kode som gøre at det som gemmes fra det andet dok. bliver gemt på denn pos. hver gang og bare "skubber" det tidligere gemte længere ned....

---------- slut på test.htm ---------



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('&lt;!--------- Cut Below This Line ---------&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.fornavn.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;top&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.typpe.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');   
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;top&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+ document.gen.eftnavn.value +'&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;top&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.dato.value +'&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;top&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.periode.value+'&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;/tr&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.kr.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.email.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.innavn.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.inpass.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;tr ALIGN=&quot;Center&quot;&gt;');
            window.parent.frames[1].document.writeln('    &lt;td VALIGN=&quot;TOP&quot; BGCOLOR=&quot;Silver&quot;&gt;');
            window.parent.frames[1].document.writeln('        &lt;a NAME=&quot;'+document.gen.typpe.value.substring(0,1) +'&quot;&gt;&lt;/a&gt;');
            window.parent.frames[1].document.writeln('        &lt;font COLOR=&quot;Black&quot; SIZE=&quot;2&quot; FACE=&quot;Arial&quot;&gt;');
            window.parent.frames[1].document.writeln('            &lt;b&gt;'+document.gen.bem.value + '&lt;/b&gt;');
            window.parent.frames[1].document.writeln('        &lt;/font&gt;');
            window.parent.frames[1].document.writeln('    &lt;/td&gt;');
            window.parent.frames[1].document.writeln('&lt;!--------- End Above This Line ---------&gt;');
            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>               

Avatar billede mule Nybegynder
14. november 1999 - 14:35 #1
Hvad med først at smide lidt flere point i ............. :o)
Avatar billede gonzzo Nybegynder
14. november 1999 - 15:17 #2
okay men kan det overhovedet lade sig gøre ??

100 p.  ekstra!!
Avatar billede mule Nybegynder
14. november 1999 - 15:24 #3
Har du et sted hvor du har det nuværende script placeret?
Avatar billede gonzzo Nybegynder
14. november 1999 - 15:29 #4
Avatar billede gonzzo Nybegynder
18. november 1999 - 19:16 #5
lukket har fundet løsningen!!!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester