01. oktober 2004 - 13:30
Der er
22 kommentarer og 1 løsning
Sætning ind i FORM?
Jeg har denne sætning her: <a href="java script:void(0)" onClick="winBRopen('opslag.asp','windowname','935','500',resizable=0,'scroll yes no goes here');return false;">Go to Configurator</a> Hvordan får jeg den sat ind i min form her: <html> <head> <meta http-equiv="Content-Language" content="da"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>KE-Burgmann Bredan - Konfigurator</title> </head> <body link="#008000" vlink="#008000" alink="#008000"> <script language="javascript"> function winBRopen(theURL, Name, popW, popH) { var winleft = (screen.width - popW) / 2; var winUp = (screen.height - popH) / 2; winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars=yes,resizable=0,menubar=0,toolbar=0' Win = window.open(theURL, Name, winProp) if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }} </script> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bgcolor="#050B51"> <tr> <td width="100%"> <font face="Arial" size="2"> <img border="0" src="images/logo.jpg" align="right" width="800" height="80"></font></td> </tr> </table> <p> </p> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="50%"> <tr> <td width="100%"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="320" bgcolor="#F3F3F3"> <tr> <td width="6%" height="36"> </td> <td width="62%" height="36"> </td> <td width="19%" height="36"> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="36"> </td> <td width="62%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="50%" id="AutoNumber5" height="100%"> <tr> <td width="100%"><font face="Arial" size="2"> <img border="0" src="images/forsiden.jpg" width="400" height="266"></font></td> </tr> </table> </td> <td width="19%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" height="50%" bgcolor="#FFFFFF"> <tr> <td width="100%"> <form method="POST" action="opslag.asp"><p align="center"> <font face="Arial"><font size="2"><br> <b>Login:<br> </b></font><input type="text" name="login" size="20"><font size="2"><br> <br> <b>Password:<br> </b></font><input type="password" name="password" size="20"><font size="2"><br> <br> </font><input type="submit" value="Send" name="B1"><br> </font></p> </form> </td> </tr> </table> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"><font face="Arial" size="2"> </font></td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"> </td> <td width="14%" height="37"> </td> </tr> </table> </td> </tr> </table> <p align="right"> </p> </body> </html>
Annonceindlæg fra Lenovo
01. oktober 2004 - 13:43
#1
Har prøvet det her: <html> <head> <meta http-equiv="Content-Language" content="da"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>KE-Burgmann Bredan - Konfigurator</title> </head> <body link="#008000" vlink="#008000" alink="#008000"> <script language="javascript"> function winBRopen(theURL, Name, popW, popH) { var winleft = (screen.width - popW) / 2; var winUp = (screen.height - popH) / 2; winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars=yes,resizable=0,menubar=0,toolbar=0' Win = window.open(theURL, Name, winProp) if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }} </script> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bgcolor="#050B51"> <tr> <td width="100%"> <font face="Arial" size="2"> <img border="0" src="images/logo.jpg" align="right" width="800" height="80"></font></td> </tr> </table> <p> </p> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="50%"> <tr> <td width="100%"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="320" bgcolor="#F3F3F3"> <tr> <td width="6%" height="36"> </td> <td width="62%" height="36"> </td> <td width="19%" height="36"> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="36"> </td> <td width="62%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="50%" id="AutoNumber5" height="100%"> <tr> <td width="100%"><font face="Arial" size="2"> <img border="0" src="images/forsiden.jpg" width="400" height="266"></font></td> </tr> </table> </td> <td width="19%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" height="50%" bgcolor="#FFFFFF"> <tr> <td width="100%"> <form method="POST" NAME="myForm" action="opslag.asp"><p align="center"> <font face="Arial"><font size="2"><br> <b>Login:<br> </b></font><input type="text" name="login" size="20"><font size="2"><br> <br> <b>Password:<br> </b></font><input type="password" name="password" size="20"><font size="2"><br> <br><A HREF="java script:void(0)" onClick="winBRopen.myForm.submit('windowname','935','500',resizable=0,'scroll yes no goes here');return false">Enter</A><br> </font></p> </form> </td> </tr> </table> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"> </td> <td width="14%" height="37"> </td> </tr> </table> </td> </tr> </table> <p align="right"> </p> </body> </html>
01. oktober 2004 - 13:43
#2
?-) Kan du ikke bare sætte den ind ...
01. oktober 2004 - 13:45
#3
Jeg kan ikke få den til det, den siger bare at: Linje: 62 Fejl: 'wimBRopen.myFom' er null eller ikke et objekt
01. oktober 2004 - 13:45
#4
Hvad vil du ?-)
01. oktober 2004 - 13:46
#5
Den skal jo åbne i et NYT vindue
01. oktober 2004 - 13:47
#6
Den skal åbne et NYT vindue, hvor den har visse parameter, bestemt brede, højde, ingen mulighed for at strække vinduet osv...
01. oktober 2004 - 13:47
#7
Vil du have formen til at sende til et nyt vindue, så kan du enklest: <form method="POST" action="opslag.asp" target="_blank"><p align="center"> <font face="Arial"><font size="2"><br> <b>Login:<br> </b></font><input type="text" name="login" size="20"><font size="2"><br> <br> <b>Password:<br> </b></font><input type="password" name="password" size="20"><font size="2"><br> <br> </font><input type="submit" value="Send" name="B1"><br> </font></p> </form>
01. oktober 2004 - 13:48
#8
Her: <form method="POST" NAME="myForm" action="opslag.asp"> Bla bla bla <A HREF="java script:void(0)" onClick="document.myForm.submit('windowname','935','500',resizable=0,'scroll yes no goes here');return false">Enter</A>
01. oktober 2004 - 13:48
#9
Men hvad nu hvis den osse skal være 935 bred, 500 høj osv....
01. oktober 2004 - 13:57
#10
Så skal du noget helt andet: <form method="POST" action="opslag.asp" target="newWin" onsubmit="openWin();return false;"> <script type="text/javascript"> function openWin(){ var newWin = window.open("","newWin","width=935,height=500,resizable=no"); var txt = "<html><scr"+"ipt type='text/javascript'>window.onload=function()"; txt+= "{opener.forms[0].submit();}<\57s"+"cript><\57h"+"tml>"; newWin.document.write(txt); newWin.document.close(); } </script>
01. oktober 2004 - 14:01
#11
Ok... hvad så med denne her: <A HREF="java script:void(0)" onClick="document.myForm.submit('windowname','935','500',resizable=0,'scroll yes no goes here');return false">Enter</A>
01. oktober 2004 - 14:02
#12
Har lige prøvet med denne her: <input type="submit" value="Send" name="B1">
01. oktober 2004 - 14:04
#13
Men den er bare helt blank!
01. oktober 2004 - 14:10
#14
Du skal bare fuldstændig fjerne den tidligere funktion og linket !-)
01. oktober 2004 - 14:11
#15
Jamen hvor skal jeg så trykke??
01. oktober 2004 - 14:17
#16
På submit-knappen !-)
01. oktober 2004 - 14:20
#17
Jamen hvordan skal den se ud?? <input type="submit" value="Send" name="B1"> Det virker ikke....
01. oktober 2004 - 14:23
#18
01. oktober 2004 - 14:33
#19
Hrm ... Måske har jeg været for karrig med kode, men den kan jeg ik' li'e forstå, prøv så: <script type="text/javascript"> function openWin(){ var newWin = window.open("","newWin","width=935,height=500,resizable=no"); var txt = "<html><body onload='"; txt+= "opener.forms[0].submit();'><\57bo"+"dy><\57h"+"tml>"; newWin.document.write(txt); newWin.document.close(); } </script>
01. oktober 2004 - 14:37
#20
Det vil den bare ikke!!! her er koden: <html> <head> <meta http-equiv="Content-Language" content="da"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>KE-Burgmann Bredan - Konfigurator</title> </head> <body link="#008000" vlink="#008000" alink="#008000"> <script type="text/javascript"> function openWin(){ var newWin = window.open("","newWin","width=935,height=500,resizable=no"); var txt = "<html><body onload='"; txt+= "opener.forms[0].submit();'><\57bo"+"dy><\57h"+"tml>"; newWin.document.write(txt); newWin.document.close(); } </script> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bgcolor="#050B51"> <tr> <td width="100%"> <font face="Arial" size="2"> <img border="0" src="images/logo.jpg" align="right" width="800" height="80"></font></td> </tr> </table> <p> </p> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="50%"> <tr> <td width="100%"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="320" bgcolor="#F3F3F3"> <tr> <td width="6%" height="36"> </td> <td width="62%" height="36"> </td> <td width="19%" height="36"> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="36"> </td> <td width="62%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="50%" id="AutoNumber5" height="100%"> <tr> <td width="100%"><font face="Arial" size="2"> <img border="0" src="images/forsiden.jpg" width="400" height="266"></font></td> </tr> </table> </td> <td width="19%" height="221" rowspan="6"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" height="50%" bgcolor="#FFFFFF"> <tr> <td width="100%"> <form method="POST" action="forsiden.asp" target="newWin" onsubmit="openWin();return false;"><p align="center"> <font face="Arial"><font size="2"><br> <b>Login:<br> </b></font><input type="text" name="login" size="20"><font size="2"><br> <br> <b>Password:<br> </b></font><input type="password" name="password" size="20"><font size="2"><br> <br><input type="submit" value="Send" name="B1"><br> </font></p> </form> </td> </tr> </table> </td> <td width="14%" height="36"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"> </td> <td width="14%" height="37"> </td> </tr> <tr> <td width="6%" height="37"> </td> <td width="62%" height="37"> </td> <td width="19%" height="37"> </td> <td width="14%" height="37"> </td> </tr> </table> </td> </tr> </table> </body> </html>
01. oktober 2004 - 14:44
#21
Prøv at teste med: <script type="text/javascript"> function openWin(){ var newWin = window.open("","newWin","width=935,height=500,resizable=no"); var txt = "<html><body onload='"; txt+= "alert(opener.forms[0].name);'><\57bo"+"dy><\57h"+"tml>"; newWin.document.write(txt); newWin.document.close(); } </script>
07. oktober 2004 - 08:20
#22
Virker ikke!
13. oktober 2004 - 12:15
#23
lukker
Vi tilbyder markedets bedste kurser inden for webudvikling