Topic awaiting preservation: Link to submit before going to it's destination? (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: East Anglia, England. |
posted 07-27-2004 11:20
I am planning a page with several checkboxes, each of them will have a link to a page giving details of the selections. The problem I can see is, people could select a few checkboxes and then click on a link, then loose their selections because they hadn't pressed submit/save. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-27-2004 11:48
code: onclick="document.forms.myFormsName.submit()"
|
Nervous Wreck (II) Inmate From: East Anglia, England. |
posted 07-27-2004 17:26
That sounds good, I'll give it a try. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-27-2004 17:33
you need to pass it via a hidden field, which's value you set in your javascript function |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-27-2004 21:58
Umm you may want to realize from the users persepective, if they are selecting a link without saving then they are making a choice not to save what they have checked. |
Nervous Wreck (II) Inmate From: East Anglia, England. |
posted 07-28-2004 10:55
Thanks Tyberius, changing the value of the hidden field will work fine. I can come up with some way of keeping track of where the user is popping off to. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-28-2004 12:48
I've seen webapps that handled forms this way... they were document centric, and you just don't loose the data you just entered because for example you have to look up something in another article. The data doesn't get saved before the user hit's save, but it isn't lost either. |