![]() Topic awaiting preservation: Link to submit before going to it's destination? (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: East Anglia, England. |
![]() 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 |
![]() code: onclick="document.forms.myFormsName.submit()"
|
Nervous Wreck (II) Inmate From: East Anglia, England. |
![]() That sounds good, I'll give it a try. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() 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 |
![]() 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. |
![]() 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 |
![]() 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. |