HighDots Forums  

Creating a Form inside a Table?

alt.html.tags alt.html.tags


Discuss Creating a Form inside a Table? in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Glen Grainger
 
Posts: n/a

Default Creating a Form inside a Table? - 09-22-2008 , 12:19 AM






Hi,

Hope someone reads this newsgroup, I am having a problem when creating a
form inside a table column, well not so much as I can't but when I do it
will not validate at w3c.

Here is the table code:

<table class="special" border="4" cellpadding="2" cellspacing="2">
<tr>
<form action="newpage.html"><td><input class="btn" type="submit"
value="Links"></td></form>
<form action="newpage.html"><td><input class="btn" type="submit"
value="Links"></td></form>
</tr>
<tr>
<form action="minepage.html"><td><input class="btn" type="submit"
value="Links"></td></form>
<form action="minepage.html"><td><input class="btn" type="submit"
value="Links"></td></form>
</tr>
<tr>
<form action="mypage.html"><td colspan="2"><input class="bigbtn"
type="submit" value="More Links"></td></form>
</tr>
</table>

The table uses a class from a css to adjust the border and background
colours/colors, the buttons also use the css to adjust their colours/colors,
size and font, I havn't finished it yet, still in the design phase (as you
can see by the pages the buttons open and the values).

Ok, I found that I had to do it this way as it displays correctly in IE and
Firefox with the form tags 'outside' of the td tags, but if I put the form
tags 'inside' the td tags then only Firefox displays the table correctly, IE
stuffs it and displays incorrectly.

I guess the question I have, is there any other way to do this that the
stupid "validation service" at w3c will validate it?

Hence the reason why I do not use the validation service, oh yeah, I have
tried doctype html and xhtml Transitional. I will probably keep designing
the website and forget what w3c thinks.


Thankyou...



Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: Creating a Form inside a Table? - 09-25-2008 , 03:17 AM






Gazing into my crystal ball I observed "Glen Grainger"
<nightcrawler (AT) westnet (DOT) com.au> writing in
news:00e71557$0$15868$c3e8da3 (AT) news (DOT) astraweb.com:

Quote:
Hi,

Hope someone reads this newsgroup, I am having a problem when creating
a form inside a table column, well not so much as I can't but when I
do it will not validate at w3c.

Here is the table code:

table class="special" border="4" cellpadding="2" cellspacing="2"
tr
form action="newpage.html"><td><input class="btn" type="submit"
value="Links"></td></form
form action="newpage.html"><td><input class="btn" type="submit"
value="Links"></td></form
/tr
tr
form action="minepage.html"><td><input class="btn"
type="submit"
value="Links"></td></form
form action="minepage.html"><td><input class="btn"
type="submit"
value="Links"></td></form
/tr
tr
form action="mypage.html"><td colspan="2"><input class="bigbtn"
type="submit" value="More Links"></td></form
/tr
/table

The table uses a class from a css to adjust the border and background
colours/colors, the buttons also use the css to adjust their
colours/colors, size and font, I havn't finished it yet, still in the
design phase (as you can see by the pages the buttons open and the
values).

Ok, I found that I had to do it this way as it displays correctly in
IE and Firefox with the form tags 'outside' of the td tags, but if I
put the form tags 'inside' the td tags then only Firefox displays the
table correctly, IE stuffs it and displays incorrectly.

I guess the question I have, is there any other way to do this that
the stupid "validation service" at w3c will validate it?

Hence the reason why I do not use the validation service, oh yeah, I
have tried doctype html and xhtml Transitional. I will probably keep
designing the website and forget what w3c thinks.


Thankyou...



You have to wrap the table in the form element, but have a look at
http://intraproducts.com/usenet/requiredform.asp and see if that helps
you a little. It's all CSS, and much more accessible.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
  #3  
Old   
Glen Grainger
 
Posts: n/a

Default Re: Creating a Form inside a Table? - 10-11-2008 , 03:40 AM




"Adrienne Boswell" <arbpen (AT) yahoo (DOT) com> wrote

Quote:
Gazing into my crystal ball I observed "Glen Grainger"
nightcrawler (AT) westnet (DOT) com.au> writing in
news:00e71557$0$15868$c3e8da3 (AT) news (DOT) astraweb.com:

snip

You have to wrap the table in the form element, but have a look at
http://intraproducts.com/usenet/requiredform.asp and see if that helps
you a little. It's all CSS, and much more accessible.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Hi, Thanks you the reply and link, I had a quick look abd didn't see
anything like what I wanted to do, will have a better look later.

What I ended up doing was removing the form and input tags completely then
using the button tag with a onclick function instead to open the pages that
I wanted. This way actually validated at w3c fine, but I have noticed that
in both IE and Firefox they 'block' the onclick function by default and you
have to 'alow' it to work.

Thanks again.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.