Thanxs for your response. I tried as suggested but still it's not working. My HTML sample code is -
<script src=""
<script>
function update()
{
formElements = Form.getInputs('searchForm','checkbox');
var len = formElements.length;
for( i=0 ; i< len ; i++)
{
if(document.searchForm.elements[i].checked)
{
window.opener.document.signup.subject_1.value = $F(formElements[i]);
window.close();
}
}
}
</script>
</head>
<body>
<!-- Form for the display of search text bar !-->
<form name="search" method="post" action="" ?formField=subject_1">
<center><b>Search Criteria: </b><input type="text" name="searchValue">
<input type="submit" value="Search" name="searchBisac"><br />
</center>
<fieldset><legend>Note</legend>
Search on category name e.g. art, fiction, science etc.<br />
Search leads to listing of BISAC codes, when clicked shall be stored in the category of your choice.
</fieldset>
</form>
<!-- Form created from the search result !-->
<form id="searchForm">
<br /><input type="checkbox" name="AC" id="AC" value="ANTIQUES & COLLECTIBLES Art " >">
ANT002000 ANTIQUES & COLLECTIBLES Art
<br /><input type="checkbox" name="AC" id="AC" value="ART General " >">
ART000000 ART General
<br /><input type="checkbox" name="AC" id="AC" value="ART African " >">
ART015010 ART
African
<br /><input type="checkbox" name="AC" id="AC" value="ART American General " >">
ART015020 ART
American
General
..................
...
</form>
Pls, suggest what I'm missing.
Thanxs
~Gurcharan
On 10/10/06, Christophe Porteneuve aka TDD <[EMAIL PROTECTED]
> wrote:
Hey there,
Gurcharan Singh a écrit :
> Form.getInputs ('FormName',['checkbox']). But on the submission of the
> form I'm getting the error message - HTML has no properties.
Try Form.getInputs('FormId', 'checkbox').
a) You need the *id* of the form, not its *name* (btw, XHTML 1.0
deprecated 'name' attributes for just about anything except form *fields*).
b) You pass a string, not an array of strings, as a second argument.
'HTH
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--
www.digitalmediainitiatives.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
