On 2008-11-30 01:59:31 +0200, "Mi-ul"
<webforumsuser@macromedia.com> said:
> First the easy question - is this possible?
Not in HTML:
http://www.w3.org/TR/html401/interact/forms.html#h-17.3
> Secondly what approach should I take / any pointers?
>
> I have a job sheet page that for each job has accept /
refuse buttons (one
> form, 2 submit buttons)
>
> Once the job has been accepted that cell in the table
becomes an allocate box
> (dropdown list and submit button)
>
> I want to be able to allocate all jobs (i.e. change each
dropdown box as
> required, then hit one (?any?) submit button but
presumably this will need the
> whole page in a single form and then good use of array
notation. Is this
> possible or will it interfere with my accept / refuse
buttons?
There are multiple solutions in this case (list contains just
pointers
and it's not exhaustive):
- use javascript to set a hidden field with the id of the job
when
accept/refuse is clicked then submit the form. In the action
page if
the hidden field has a value then it's accept/refuse id;
- use javascript on accept/refuse something like:
window.location.href='update_accept_status.cfm?status=accept/refuse';
- use ajax to send the status to the server, get the html
with the
dropdown and submit button and replace the current html.
--
Mack