FORM layout problems with href :(
John
- html
Hallo,
Deutsche text versuch folgt unten ;)))
I'm using Javascript to submit a form when I click an href. But this is not a JavaScript question...
I noticed that if I include the href on the form the height of the form is automatcally given a size which exceed that which I want - I have no control :( When I put the href outside of the FORM I get the layout I want.
Why must I put my <a href> outside of the FORM to get the desired layout?
Thanks,
John.
Here is my file...
Hallo,
Ich benutze JavaScript um ein submit form zu machen - aber dieses Frage geht mehr in die Richtung HTML...
Ich habe bemerkt das wenn ich die href innerhalb das FORM schreibe das wird die grosse mein feld automatisch grosser - ich habe keine Kontrolle mehr :( Wenn ich die href ausserhalb mein form schreibe dann kriege ich meine erwunschte Ergebniss.
Warum is das??
Danke, John
Hier is meine Datei...
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<table border="1" cellspacing="1" cellpadding="1" width="100%">
<tr>
<td colspan="2">
<form method="POST" name="FOOTER1" action="/blah/blah">
<input type="hidden" name="cmd" value />
<input type="hidden" name="arg1" value />
<input type="hidden" name="arg2" value />
</form>
<a href="#" onclick=" document.FOOTER1.cmd.value='65537'; document.FOOTER1.submit();">link outside of form - looks right but not what I want</a>
</td>
</tr>
<tr>
<td colspan="2">next row</td>
</tr>
</table>
<br><br>
Form has a visible field:
<table border="1" cellspacing="1" cellpadding="1" width="100%">
<tr>
<td colspan="2">
<form method="POST" name="FOOTER2" action="/blah/blah">
<input type="hidden" name="cmd" value />
<input type="hidden" name="arg1" value />
<input type="hidden" name="arg2" value />
<a href="#" onclick=" document.FOOTER2.cmd.value='65537'; document.FOOTER2.submit();">link inside of form - not right layout but does what I want</a>
</form>
</td>
</tr>
<tr>
<td colspan="2">next row</td>
</tr>
</table>
</body>
</html>
Moin John,
»» <form method="POST" name="FOOTER2" action="/blah/blah">
Mache es mal mit style:
<form style="display:inline" method="POST" name="FOOTER2" action="/blah/blah">
Gruß
Mike
Hoi Mike,
Super! Vielen Dank :)