Avatar billede netsrac Praktikant
11. september 2000 - 21:31 Der er 10 kommentarer og
1 løsning

Radiobuttons

Jeg har to sider med det samme antal radiobuttons osv. Fra den ene side (som bliver åbnet fra den anden) vil jeg kontrollere de radiobuttons som er på siden hvor der blev åbnet fra..

Det skal være noget i stil med

function ok()
{
opener.opret.design.checked = document.eksempel.design.checked
}

men hvordan gør jeg lige det ?
Avatar billede olebole Juniormester
11. september 2000 - 21:51 #1
<ole>
Hvis input-elementerne hedder det samme (altså dine radiobuttons) i de to forms, må dette vel kunne bruges:

function ok() {
prevForm = opener.document.opret;
thisForm = document.eksempel;
for (i=0; i<prevForm.length; i++) {
    if (prevForm.elements[i].type == \"radio\" && prevForm.elements[i].checked == \"true\") {
        thisForm.elements[prevForm.elements[i].name].checked = true;
    }
}

/mvh
</bole>
Avatar billede netsrac Praktikant
13. september 2000 - 15:13 #2
Det virker ikke...

Kildekoden til den første fil
---------------------------------

<HTML>
<HEAD>
<TITLE>netsrac.dk - Freelance Webarkitekt</TITLE>
<STYLE TYPE=\"text/css\">
<!--
A:link { text-decoration: none; color: f7740a }
A:visited { text-decoration: none; color: f7740a }
A:active { text-decoration: none; color: f7740a }
A:hover { text-decoration: underline; color: f7740a }
INPUT { background-color: #efefef; font-family: tahoma }
-->
</STYLE>
<SCRIPT LANGUAGE=\"JavaScript\">
function openWin2(fil,navn)
{
window.open(fil,navn,\'width=200,height=300,toolbar=yes,scrollbars=yes,menubar=yes\');
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR=\"#DCD9D3\" TEXT=\"#000000\">

<TABLE BORDER=\"0\" WIDTH=\"100%\" HEIGHT=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<TR><TD VALIGN=\"center\" align=\"center\">


<TABLE BORDER=\"1\" BORDERCOLOR=\"#000000\" WIDTH=\"600\" HEIGHT=\"350\" cellspacing=\"1\" cellpadding=\"1\">
<TR>
<TD BGCOLOR=\"#000000\" VALIGN=\"top\">

<TABLE BORDER=\"0\" WIDTH=\"100%\" HEIGHT=\"20\" cellspacing=\"0\" cellpadding=\"0\">
<TR><TD><CENTER>
<FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\">
&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/default.asp\" ONMOUSEOVER=\"window.status=\'Forside\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Forside</B></FONT></A>
&nbsp;&nbsp;-&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/profil.asp\" ONMOUSEOVER=\"window.status=\'Profil\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Profil</B></FONT></A>
&nbsp;&nbsp;-&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/referencer.asp\" ONMOUSEOVER=\"window.status=\'Referencer\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Referencer</B></FONT></A>
&nbsp;&nbsp;-&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/domain.asp\" ONMOUSEOVER=\"window.status=\'Domain Tester\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Domain Tester</B></FONT></A>
&nbsp;&nbsp;-&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/gratis/opret.asp\" ONMOUSEOVER=\"window.status=\'Gratis\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Gratis</B></FONT></A>
&nbsp;&nbsp;-&nbsp;&nbsp;
<A HREF=\"http://www.cnh.dk/netsrac-dk/kontakt.asp\" ONMOUSEOVER=\"window.status=\'Kontakt\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT COLOR=\"f7740a\" SIZE=\"2\" FACE=\"Tahoma\"><B>Kontakt</B></FONT></A>
&nbsp;&nbsp;
</FONT>
</CENTER>
</TD></TR></TABLE>

</TD>
</TR>
<TR>
<TD bgcolor=\"#efefef\">
<TABLE BORDER=\"0\" WIDTH=\"100%\" HEIGHT=\"330\" cellspacing=\"5\" cellpadding=\"5\">
<TR><TD VALIGN=\"top\">

<FONT SIZE=\"2\" FACE=\"Tahoma\">
<B>Gratis T&aelig;ller</B><BR>
P&aring; denne side kan du oprette en gratis T&aelig;ller til din hjemmeside.<BR>
Udfyld nedenst&aring;ende felter, v&aelig;lg opret, herefter vil de modtage en<BR>
email med oplysninger om ops&aelig;tningen af T&aelig;lleren.</FONT>

<FORM METHOD=\"POST\" ACTION=\"opret.asp\" NAME=\"opret\">
<FONT SIZE=\"2\" FACE=\"Tahoma\" COLOR=\"f7740a\"><BR></FONT>
<TABLE BORDER=\"0\" WIDTH=\"100%\"><TR><TD WIDTH=\"50%\" VALIGN=\"top\">
<FONT SIZE=\"2\" FACE=\"Tahoma\">
Design:<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"1\">Gule Tal med Transparent Baggrund<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"2\"><BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"3\"><BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"4\">Sorte Tal med Transparent Baggrund<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"5\">Gr&oslash;nne Tal med Transparent Baggrund<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"6\">R&oslash;de Tal med Transparent Baggrund<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"7\">Bl&aring; Tal med Transparent Baggrund<BR>
<INPUT TYPE=\"radio\" NAME=\"design\" value=\"8\">Hvide Tal med Transparent Baggrund<BR>
<A HREF=\"#\" ONCLICK=\"openWin2(\'eksempel.asp\',\'skrift\');\" ONMOUSEOVER=\"window.status=\'Eksempler\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\"><FONT SIZE=\"1\">Eksempler</FONT></A><BR>
</FONT>
</TD><TD WIDTH=\"50%\" VALIGN=\"top\">
<FONT SIZE=\"2\" FACE=\"Tahoma\">
Homepage:<BR>
<INPUT TYPE=\"text\" NAME=\"homepage\" SIZE=\"20\" value=\"\"><BR>
Email Adresse:<BR>
<INPUT TYPE=\"text\" NAME=\"email\" SIZE=\"20\" value=\"\"><BR>
Password:<BR>
<INPUT TYPE=\"password\" NAME=\"password\" SIZE=\"20\" value=\"\">
</FONT>
</TD></TR></TABLE>
<INPUT TYPE=\"submit\" VALUE=\"Opret\"></P>
</FORM>
</TD></TR></TABLE>

</TD>
</TR>
</TABLE>

</TD>
</TR>
</TABLE>


</BODY>
</HTML>

Kildekoden til den anden fil
--------------------------------------------
<HTML>
<HEAD>
<TITLE>V&aelig;lg Counter</TITLE>
<STYLE TYPE=\"text/css\">
<!--
A:link { text-decoration: none; color: f7740a }
A:visited { text-decoration: none; color: f7740a }
A:active { text-decoration: none; color: f7740a }
A:hover { text-decoration: underline; color: f7740a }
-->
</STYLE>
<SCRIPT LANGUAGE=\"JavaScript\">
function fortryd()
{
history.go(-1)
}
function ok()
{
prevForm = opener.opret;
thisForm = document.eksempel;
for (i=0; i<prevForm.length; i++) {
    if (prevForm.elements[i].type == \"radio\" && prevForm.elements[i].checked == \"true\") {
        thisForm.elements[prevForm.elements[i].name].checked = true;
    }
}
</SCRIPT>
</HEAD>
<BODY>
<body bgcolor=000000><form name=\"eksempel\">
<input type=\"radio\" name=\"design\" value=\"1\"><img src=http://www.cnh.dk/gratis/counterpic/0-1.gif><img src=http://www.cnh.dk/gratis/counterpic/1-1.gif><img src=http://www.cnh.dk/gratis/counterpic/2-1.gif><img src=http://www.cnh.dk/gratis/counterpic/3-1.gif><img src=http://www.cnh.dk/gratis/counterpic/4-1.gif><img src=http://www.cnh.dk/gratis/counterpic/5-1.gif><img src=http://www.cnh.dk/gratis/counterpic/6-1.gif><img src=http://www.cnh.dk/gratis/counterpic/7-1.gif><img src=http://www.cnh.dk/gratis/counterpic/8-1.gif><img src=http://www.cnh.dk/gratis/counterpic/9-1.gif><BR>
<input type=\"radio\" name=\"design\" value=\"2\"><img src=http://www.cnh.dk/gratis/counterpic/0-2.gif><img src=http://www.cnh.dk/gratis/counterpic/1-2.gif><img src=http://www.cnh.dk/gratis/counterpic/2-2.gif><img src=http://www.cnh.dk/gratis/counterpic/3-2.gif><img src=http://www.cnh.dk/gratis/counterpic/4-2.gif><img src=http://www.cnh.dk/gratis/counterpic/5-2.gif><img src=http://www.cnh.dk/gratis/counterpic/6-2.gif><img src=http://www.cnh.dk/gratis/counterpic/7-2.gif><img src=http://www.cnh.dk/gratis/counterpic/8-2.gif><img src=http://www.cnh.dk/gratis/counterpic/9-2.gif><BR>
<input type=\"radio\" name=\"design\" value=\"3\"><img src=http://www.cnh.dk/gratis/counterpic/0-3.gif><img src=http://www.cnh.dk/gratis/counterpic/1-3.gif><img src=http://www.cnh.dk/gratis/counterpic/2-3.gif><img src=http://www.cnh.dk/gratis/counterpic/3-3.gif><img src=http://www.cnh.dk/gratis/counterpic/4-3.gif><img src=http://www.cnh.dk/gratis/counterpic/5-3.gif><img src=http://www.cnh.dk/gratis/counterpic/6-3.gif><img src=http://www.cnh.dk/gratis/counterpic/7-3.gif><img src=http://www.cnh.dk/gratis/counterpic/8-3.gif><img src=http://www.cnh.dk/gratis/counterpic/9-3.gif><BR>
<input type=\"radio\" name=\"design\" value=\"4\"><img src=http://www.cnh.dk/gratis/counterpic/0-4.gif><img src=http://www.cnh.dk/gratis/counterpic/1-4.gif><img src=http://www.cnh.dk/gratis/counterpic/2-4.gif><img src=http://www.cnh.dk/gratis/counterpic/3-4.gif><img src=http://www.cnh.dk/gratis/counterpic/4-4.gif><img src=http://www.cnh.dk/gratis/counterpic/5-4.gif><img src=http://www.cnh.dk/gratis/counterpic/6-4.gif><img src=http://www.cnh.dk/gratis/counterpic/7-4.gif><img src=http://www.cnh.dk/gratis/counterpic/8-4.gif><img src=http://www.cnh.dk/gratis/counterpic/9-4.gif><BR>
<input type=\"radio\" name=\"design\" value=\"5\"><img src=http://www.cnh.dk/gratis/counterpic/0-5.gif><img src=http://www.cnh.dk/gratis/counterpic/1-5.gif><img src=http://www.cnh.dk/gratis/counterpic/2-5.gif><img src=http://www.cnh.dk/gratis/counterpic/3-5.gif><img src=http://www.cnh.dk/gratis/counterpic/4-5.gif><img src=http://www.cnh.dk/gratis/counterpic/5-5.gif><img src=http://www.cnh.dk/gratis/counterpic/6-5.gif><img src=http://www.cnh.dk/gratis/counterpic/7-5.gif><img src=http://www.cnh.dk/gratis/counterpic/8-5.gif><img src=http://www.cnh.dk/gratis/counterpic/9-5.gif><BR>
<input type=\"radio\" name=\"design\" value=\"6\"><img src=http://www.cnh.dk/gratis/counterpic/0-6.gif><img src=http://www.cnh.dk/gratis/counterpic/1-6.gif><img src=http://www.cnh.dk/gratis/counterpic/2-6.gif><img src=http://www.cnh.dk/gratis/counterpic/3-6.gif><img src=http://www.cnh.dk/gratis/counterpic/4-6.gif><img src=http://www.cnh.dk/gratis/counterpic/5-6.gif><img src=http://www.cnh.dk/gratis/counterpic/6-6.gif><img src=http://www.cnh.dk/gratis/counterpic/7-6.gif><img src=http://www.cnh.dk/gratis/counterpic/8-6.gif><img src=http://www.cnh.dk/gratis/counterpic/9-6.gif><BR>
<input type=\"radio\" name=\"design\" value=\"7\"><img src=http://www.cnh.dk/gratis/counterpic/0-7.gif><img src=http://www.cnh.dk/gratis/counterpic/1-7.gif><img src=http://www.cnh.dk/gratis/counterpic/2-7.gif><img src=http://www.cnh.dk/gratis/counterpic/3-7.gif><img src=http://www.cnh.dk/gratis/counterpic/4-7.gif><img src=http://www.cnh.dk/gratis/counterpic/5-7.gif><img src=http://www.cnh.dk/gratis/counterpic/6-7.gif><img src=http://www.cnh.dk/gratis/counterpic/7-7.gif><img src=http://www.cnh.dk/gratis/counterpic/8-7.gif><img src=http://www.cnh.dk/gratis/counterpic/9-7.gif><BR>
<input type=\"radio\" name=\"design\" value=\"8\"><img src=http://www.cnh.dk/gratis/counterpic/0-8.gif><img src=http://www.cnh.dk/gratis/counterpic/1-8.gif><img src=http://www.cnh.dk/gratis/counterpic/2-8.gif><img src=http://www.cnh.dk/gratis/counterpic/3-8.gif><img src=http://www.cnh.dk/gratis/counterpic/4-8.gif><img src=http://www.cnh.dk/gratis/counterpic/5-8.gif><img src=http://www.cnh.dk/gratis/counterpic/6-8.gif><img src=http://www.cnh.dk/gratis/counterpic/7-8.gif><img src=http://www.cnh.dk/gratis/counterpic/8-8.gif><img src=http://www.cnh.dk/gratis/counterpic/9-8.gif><BR>
<input type=\"button\" value=\"OK\" onclick=\"ok();\">&nbsp;&nbsp;<input type=\"button\" value=\"Fortryd\" onclick=\"fortryd();\">
<p>
</HTMLE
</BODY>


Avatar billede olebole Juniormester
13. september 2000 - 15:40 #3
Ehhh...ligger de i hvert sit vindue - i to frames - eller bliver de bare loaded i samme vindue?
Avatar billede netsrac Praktikant
13. september 2000 - 15:59 #4
Fil 1 åbner fil 2 så´en her

<A HREF=\"#\" ONCLICK=\"openWin2(\'eksempel.asp\',\'skrift\');\" ONMOUSEOVER=\"window.status=\'Eksempler\'; return true\" ONMOUSEOUT=\"window.status=\'\'; return true\">
Avatar billede netsrac Praktikant
14. september 2000 - 19:40 #5
Kom nu Ole...jeg ved du kan.....
Avatar billede olebole Juniormester
14. september 2000 - 22:41 #6
Dokument nr.2:

<HTML>
<HEAD>
<TITLE>V&aelig;lg Counter</TITLE>
<STYLE TYPE=\"text/css\">
<!--
A:link { text-decoration: none; color: f7740a }
A:visited { text-decoration: none; color: f7740a }
A:active { text-decoration: none; color: f7740a }
A:hover { text-decoration: underline; color: f7740a }
-->
</STYLE>
<SCRIPT LANGUAGE=\"JavaScript\">
function fortryd() {
top.close();
}
function ok() {
    opener.document.opret.submit();
    top.close();
}
function show() {
prevForm = opener.document.opret;
thisForm = document.eksempel;
    for (i=0; i<prevForm.length; i++) {
        if (prevForm.elements[i].type == \"radio\" && prevForm.elements[i].checked == true) {
            thisForm.elements[prevForm.elements[i-1].value].checked = true;
        }
    }
}
</SCRIPT>
</HEAD>
<BODY>
<body bgcolor=000000 onload=\"show();\"><form name=\"eksempel\">
<input type=\"radio\" name=\"design\" value=\"1\"><img src=http://www.cnh.dk/gratis/counterpic/0-1.gif><img src=http://www.cnh.dk/gratis/counterpic/1-1.gif><img src=http://www.cnh.dk/gratis/counterpic/2-1.gif><img src=http://www.cnh.dk/gratis/counterpic/3-1.gif><img src=http://www.cnh.dk/gratis/counterpic/4-1.gif><img src=http://www.cnh.dk/gratis/counterpic/5-1.gif><img src=http://www.cnh.dk/gratis/counterpic/6-1.gif><img src=http://www.cnh.dk/gratis/counterpic/7-1.gif><img src=http://www.cnh.dk/gratis/counterpic/8-1.gif><img src=http://www.cnh.dk/gratis/counterpic/9-1.gif><BR>
<input type=\"radio\" name=\"design\" value=\"2\"><img src=http://www.cnh.dk/gratis/counterpic/0-2.gif><img src=http://www.cnh.dk/gratis/counterpic/1-2.gif><img src=http://www.cnh.dk/gratis/counterpic/2-2.gif><img src=http://www.cnh.dk/gratis/counterpic/3-2.gif><img src=http://www.cnh.dk/gratis/counterpic/4-2.gif><img src=http://www.cnh.dk/gratis/counterpic/5-2.gif><img src=http://www.cnh.dk/gratis/counterpic/6-2.gif><img src=http://www.cnh.dk/gratis/counterpic/7-2.gif><img src=http://www.cnh.dk/gratis/counterpic/8-2.gif><img src=http://www.cnh.dk/gratis/counterpic/9-2.gif><BR>
<input type=\"radio\" name=\"design\" value=\"3\"><img src=http://www.cnh.dk/gratis/counterpic/0-3.gif><img src=http://www.cnh.dk/gratis/counterpic/1-3.gif><img src=http://www.cnh.dk/gratis/counterpic/2-3.gif><img src=http://www.cnh.dk/gratis/counterpic/3-3.gif><img src=http://www.cnh.dk/gratis/counterpic/4-3.gif><img src=http://www.cnh.dk/gratis/counterpic/5-3.gif><img src=http://www.cnh.dk/gratis/counterpic/6-3.gif><img src=http://www.cnh.dk/gratis/counterpic/7-3.gif><img src=http://www.cnh.dk/gratis/counterpic/8-3.gif><img src=http://www.cnh.dk/gratis/counterpic/9-3.gif><BR>
<input type=\"radio\" name=\"design\" value=\"4\"><img src=http://www.cnh.dk/gratis/counterpic/0-4.gif><img src=http://www.cnh.dk/gratis/counterpic/1-4.gif><img src=http://www.cnh.dk/gratis/counterpic/2-4.gif><img src=http://www.cnh.dk/gratis/counterpic/3-4.gif><img src=http://www.cnh.dk/gratis/counterpic/4-4.gif><img src=http://www.cnh.dk/gratis/counterpic/5-4.gif><img src=http://www.cnh.dk/gratis/counterpic/6-4.gif><img src=http://www.cnh.dk/gratis/counterpic/7-4.gif><img src=http://www.cnh.dk/gratis/counterpic/8-4.gif><img src=http://www.cnh.dk/gratis/counterpic/9-4.gif><BR>
<input type=\"radio\" name=\"design\" value=\"5\"><img src=http://www.cnh.dk/gratis/counterpic/0-5.gif><img src=http://www.cnh.dk/gratis/counterpic/1-5.gif><img src=http://www.cnh.dk/gratis/counterpic/2-5.gif><img src=http://www.cnh.dk/gratis/counterpic/3-5.gif><img src=http://www.cnh.dk/gratis/counterpic/4-5.gif><img src=http://www.cnh.dk/gratis/counterpic/5-5.gif><img src=http://www.cnh.dk/gratis/counterpic/6-5.gif><img src=http://www.cnh.dk/gratis/counterpic/7-5.gif><img src=http://www.cnh.dk/gratis/counterpic/8-5.gif><img src=http://www.cnh.dk/gratis/counterpic/9-5.gif><BR>
<input type=\"radio\" name=\"design\" value=\"6\"><img src=http://www.cnh.dk/gratis/counterpic/0-6.gif><img src=http://www.cnh.dk/gratis/counterpic/1-6.gif><img src=http://www.cnh.dk/gratis/counterpic/2-6.gif><img src=http://www.cnh.dk/gratis/counterpic/3-6.gif><img src=http://www.cnh.dk/gratis/counterpic/4-6.gif><img src=http://www.cnh.dk/gratis/counterpic/5-6.gif><img src=http://www.cnh.dk/gratis/counterpic/6-6.gif><img src=http://www.cnh.dk/gratis/counterpic/7-6.gif><img src=http://www.cnh.dk/gratis/counterpic/8-6.gif><img src=http://www.cnh.dk/gratis/counterpic/9-6.gif><BR>
<input type=\"radio\" name=\"design\" value=\"7\"><img src=http://www.cnh.dk/gratis/counterpic/0-7.gif><img src=http://www.cnh.dk/gratis/counterpic/1-7.gif><img src=http://www.cnh.dk/gratis/counterpic/2-7.gif><img src=http://www.cnh.dk/gratis/counterpic/3-7.gif><img src=http://www.cnh.dk/gratis/counterpic/4-7.gif><img src=http://www.cnh.dk/gratis/counterpic/5-7.gif><img src=http://www.cnh.dk/gratis/counterpic/6-7.gif><img src=http://www.cnh.dk/gratis/counterpic/7-7.gif><img src=http://www.cnh.dk/gratis/counterpic/8-7.gif><img src=http://www.cnh.dk/gratis/counterpic/9-7.gif><BR>
<input type=\"radio\" name=\"design\" value=\"8\"><img src=http://www.cnh.dk/gratis/counterpic/0-8.gif><img src=http://www.cnh.dk/gratis/counterpic/1-8.gif><img src=http://www.cnh.dk/gratis/counterpic/2-8.gif><img src=http://www.cnh.dk/gratis/counterpic/3-8.gif><img src=http://www.cnh.dk/gratis/counterpic/4-8.gif><img src=http://www.cnh.dk/gratis/counterpic/5-8.gif><img src=http://www.cnh.dk/gratis/counterpic/6-8.gif><img src=http://www.cnh.dk/gratis/counterpic/7-8.gif><img src=http://www.cnh.dk/gratis/counterpic/8-8.gif><img src=http://www.cnh.dk/gratis/counterpic/9-8.gif><BR>
<input type=\"button\" value=\"OK\" onclick=\"ok();\">&nbsp;&nbsp;<input type=\"button\" value=\"Fortryd\" onclick=\"fortryd();\">
</BODY>
</HTML>

Så lukker den vinduet, når du trykker \'Fortryd\' og submitter og lukker ved \'OK\'...er det noget, du kan bruge?
/mvh
Avatar billede olebole Juniormester
16. september 2000 - 08:42 #7
Kom nu netsrac...jeg ved, du kan.....  ;o)
Avatar billede netsrac Praktikant
21. september 2000 - 20:40 #8
:-)

Nej....det kan jeg ikke lige bruge....
Se her...

http://www.cnh.dk/netsrac-dk/gratis/counter/opret.asp

På siden er der et lille link over \"opret\" knappen, den åbner et vindue også er det meningen at man der skal kunne vælge og det bliver så overført til den side der åbnede....

Det må da kunne lade sig gøre...
Avatar billede netsrac Praktikant
26. september 2000 - 18:00 #9
Nå Olebole....Du fik pointene som tak for hjælpen, men du er jo altid velkommen til at komme med den rigtige løsning :)
Avatar billede olebole Juniormester
27. september 2000 - 23:07 #10
function ok()
{
prevForm = opener.opret;
thisForm = document.forms[0];
for (i=0; i<thisForm.length; i++) {
    if (prevForm.elements[i].type == \"radio\" && thisForm.elements[i].checked == \"true\") {
        prevForm.elements[i].checked = true;
    }
}

;o)
/mvh
Avatar billede olebole Juniormester
27. september 2000 - 23:10 #11
...og så én gang til for Prins Knud:

function ok()
{
prevForm = opener.opret;
thisForm = document.forms[0];
for (i=0; i<thisForm.length; i++) {
    if (thisForm.elements[i].type == \"radio\" && thisForm.elements[i].checked == \"true\") {
        prevForm.elements[i].checked = true;
    }
}

...kræver, du ikke har andre form-input\'s før dine radio\'s - i begge forms.
/mvh
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