File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes forms[0].changes.value is null or not an object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "forms[0].changes.value is null or not an object" Watch "forms[0].changes.value is null or not an object" New topic
Author

forms[0].changes.value is null or not an object

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
Im quite new to javascript and im getting the following error document.forms[0].changes.value is null or not an object. What am i doing wrong? Thanks for your time

<script language="JavaScript">
function writeIt()
{
alert(document.forms[0].changes.value);
}
</script>
</head>
<body>
<CENTER>
<table width="750" border="1" cellspacing="3" cellpadding="3">
<tr>
<th>Item Type</th>
</tr>

<tr>
<td class="regtext" valign="top">
<tr>
<td>
<SELECT name='itemType' onchange="writeIt();">

<OPTION value="A" selected>A</OPTION>
<OPTION value="N">N</OPTION>
<OPTION value="P">P</OPTION>
<OPTION value="T">T</OPTION>
</SELECT>
</td>
<td>
<input type="text" name="price" value="90" onchange="writeIt();" size="20">
</td>
<input name="id" type="hidden" value="AJ-LA-4005">
<input name="changes" type="hidden">
</tr>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

There is no form on your page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: forms[0].changes.value is null or not an object