Click here to get back home

Tring to format - what can I use besides a table???

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Tring to format - what can I use besides a table??? milkyway 01-20-2005
Get Chitika Premium
Posted by milkyway on January 20, 2005, 10:58 pm
Please log in for more thread options
Hello,

I am trying to make the following on an HTML page

FIRST NAME LAST NAME
ADDRESS CITY
STATE ZIPCODE

BUTTON(CONTINUE)
.......

I am using input fields to collect the data:

<INPUT type="text" name="Firstname" ....>

I tried to do the formatting with a table:
<TABLE>
<TR>
<TD>
<INPUT ... FIRST NAME>
</TD>
<TD>
<INPUT ... LAST NAME>
</TD>
</TR>
</TABLE>

<INPUT type="button" onclick="process_input('FormName')";...>

I tried place these input fields as part of a table but then nothing
seems to work.

If I do,
process_input(SubmitForm)
{
var f2 = document.form.[SubmitForm];
f2.method = "get";
f2.submit();
}

Then I get something like the object does not exist.

I can only get things to work if the values if <INPUT ...> is not
placed in a table.

How can I do the proper formatting without using a table to do it? ANY
type of pointers on this is most graciously appreciated!

Regards.



Posted by BMR on January 21, 2005, 11:20 am
Please log in for more thread options
You should do :

<input type="button" onclick="process_input(this.form)";...>

process_input(SubmitForm)
{
SubmitForm.method = "get";
SubmitForm.submit();
}

BMR

milkyway a écrit :
> Hello,
>
> I am trying to make the following on an HTML page
>
> FIRST NAME LAST NAME
> ADDRESS CITY
> STATE ZIPCODE
>
> BUTTON(CONTINUE)
> ......
>
> I am using input fields to collect the data:
>
> <INPUT type="text" name="Firstname" ....>
>
> I tried to do the formatting with a table:
> <TABLE>
> <TR>
> <TD>
> <INPUT ... FIRST NAME>
> </TD>
> <TD>
> <INPUT ... LAST NAME>
> </TD>
> </TR>
> </TABLE>
>
> <INPUT type="button" onclick="process_input('FormName')";...>
>
> I tried place these input fields as part of a table but then nothing
> seems to work.
>
> If I do,
> process_input(SubmitForm)
> {
> var f2 = document.form.[SubmitForm];
> f2.method = "get";
> f2.submit();
> }
>
> Then I get something like the object does not exist.
>
> I can only get things to work if the values if <INPUT ...> is not
> placed in a table.
>
> How can I do the proper formatting without using a table to do it? ANY
> type of pointers on this is most graciously appreciated!
>
> Regards.
>


Posted by Andy Dingley on January 21, 2005, 2:15 pm
Please log in for more thread options
wrote:

Post a URL to the whole page. No URL, no helping.

>How can I do the proper formatting without using a table to do it?

Use the table - it's a perfectly legitimate use for one. They work
inside <form> quite happily.

Do you have a <form> element ? It's not going to be happy without
one.


Posted by Dan on January 22, 2005, 7:23 am
Please log in for more thread options

milkyway wrote:
> <INPUT type="button" onclick="process_input('FormName')";...>
[snip]
> process_input(SubmitForm)
> {
> var f2 = document.form.[SubmitForm];
> f2.method = "get";
> f2.submit();
> }

Is there any reason for your use of JavaScript instead of a plain-HTML
submit button? You seem to be unnecessarily limiting the accessibility
of your form for non-scripting-enabled users.

--
Dan



Similar ThreadsPosted
Bad HTML tag format August 1, 2006, 11:33 am
Entering . to format January 5, 2008, 6:19 pm
date format in forms? July 15, 2004, 12:54 am
Format print using html? Please help October 5, 2004, 1:13 pm
Ending Tag Format Causes Problem May 13, 2005, 4:47 pm
Ho to get (and format) today's date? July 20, 2006, 1:43 pm
How to format unordered list? August 31, 2006, 9:08 am
How to format two "Body Onload" commands? March 18, 2005, 6:46 am
best way to present multi format information September 11, 2005, 11:55 pm
Definition List format adjustments August 8, 2007, 3:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap