5 messages in com.mysql.lists.eventum-develRE: Problem with arrrays in forms| From | Sent On | Attachments |
|---|---|---|
| Barry Benowitz | 05 Apr 2006 07:04 | |
| Barry Benowitz | 05 Apr 2006 14:16 | |
| Jostein Martinsen | 10 Apr 2006 08:15 | |
| Jostein Martinsen | 10 Apr 2006 08:17 | |
| Barry Benowitz | 10 Apr 2006 08:19 |
| Subject: | RE: Problem with arrrays in forms![]() |
|---|---|
| From: | Barry Benowitz (barr...@raritan.com) |
| Date: | 04/05/2006 02:16:22 PM |
| List: | com.mysql.lists.eventum-devel |
I have some more info on this:
When it is set up to return a PHP array for the select (ie name=users[]) and the entire form is passed to the javascript, the java console says "users has no properties. Therefore, I don't think I am referencing this array properly from javascript.
I am not sure what that means, but it may give a clue.
Thanks,
Barry
-----Original Message----- From: Barry Benowitz [mailto:barr...@raritan.com] Sent: Wednesday, April 05, 2006 10:05 AM To: even...@lists.mysql.com Subject: Problem with arrrays in forms
Hi I hope someone can give me some help.
I need to allow multi-picks for the searching solutions, both the advanced search and the quick search screens. For the most part that has been pretty easy just convert the "name=scalar" to "name=scalar[]" and then modify the PHP , but I am running into several problems. First, in the case of the quick search page, "release" is a hidden value because its not a field you allow quick searches on. But if you just add the array brackets to release when the type=hidden, you just get a string like this "Array". How can I get the form to return a properly formatted array.
The second problem is that the clearFilters button doesn't work, now that all the elements are arrays and not scalars. I know nothing of javascript, but how can I modify the javascript to clear the filters when the elements are arrays? That is, how to convert f.users.selectedindex = 0 when users is an array.?
Barry Benowitz
Raritan Computer
(732) 764 8886 x1362
barr...@raritan.com




