|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ECS] JAVAscript questions David Kindred Tue, 8 Feb 2000 17:59:36 -0500 |
Hey, Mark.
For #1, you'll want to look at tables. They're really simple:
<table> </table> to define the table
<tr> </tr> to define the rows within the table.
<td> </td> for cells within the rows.
Here's a sample which makes a table that is 80% the width of the screen. It
has one row which has two cells, one skinny and one fat. To add more rows,
you have more <tr></tr> pairings.
<table border="0" cellpadding="0" width="80%" height="100%" valign="top">
<tr>
<td width="30%" height="21">
<p>Skinny column</p>
</td>
<td width="70%" height="21">
<p>Fatter column</p>
</td?
</tr>
</table>
The sample above has the border set to "1" so you can see the dimensions.
You can set it to "0" if you want to use the table just for alignment
purposes. Each of the cells can have its own alignment settings (one could
be left justified, the other could be right justified, if you want). Just
add the align or valign settings to the <td> line.
For #2, Do you think a button would be better for submitting the change than
a radio button??
Just my $0.02.
--David
-----Original Message-----
From: Mark Gilmore [mailto:omnip@usit.net]
Sent: Tuesday, February 08, 2000 5:39 PM
To: ecs-list@netbloc.com
Subject: [ECS] JAVAscript questions
I have just uploaded a sample ECS web page to
http://www.usit.com/omnip/x.htm.
Questions:
1) I am prefacing each form entry (TEXT/SELECTION) with
an Item name. How can I make this a FIXED-length field
(for visual alignment) ?
2) For SELECT entries, I am using an ONCHANGE command to
send changes to ECS (this works fine).
For TEXT entries, I am using an associated RADIO button
and an ONCLICK to send changes. What is a better way to do this ?
I could use a normal link, but I don't know how to trigger
the send on a click unless I add separate javascript code
ELSEWHERE (NOT desirable). A SUBMIT wants to send ALL data.
3) Any other suggestions for my html/javascript ?
THANKS
--
Mark Gilmore
Omnipotence (ECS home automation software)
http://www.usit.com/omnip
423-745-0026
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects