Javascript Objects problem
by "Peter Newton" <c-newton(at)ihug.co.nz>
|
| Date: |
Wed, 25 Oct 2000 13:21:52 +1300 |
| To: |
<hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Hello HWG Lifesavers,
I always seem to have trouble
addressing an object in Javascript.
My current problem is this:-
I am creating a webpage which contains
a form on the left and a table on the right.
The table is an example of where some of
the form content will end up, and provides
the person with an example of what it will
look like before sending the form.
I am using the ONBLUR trigger withing the
form text input tag to call a function something like this:-
<input type=text name=title onblur="showheading();">
The table will look something like:-
<table name=example width="300px" border=0>
<tr>
<td name=heading></td>
<td name=desc></td>
</tr>
</table>
What I need the function to do is to assign the value
of the forms title input field to a td cell named heading
but all efforts to address the td named "heading" fails.
and I havn't even started on accessing the form yet.
Javascript for me is greate untill I need to access an object
then its hours of hit and miss which is a real frustration.
If anyone can see why I am having this problem a
diagnosis and online cure would be most welcome.
Many Thanks
Peter Newton
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA