mcr
Newbie
Posts: 1
Registered: 11/15/2007
Member Is Offline
|
| posted on 11/15/2007 at 05:41 PM |
|
|
Dates go away when back button is clicked
I am using the calendar on a classic ASP page where I have other input tags.
The user will enter data and click on a save button, they are redirected to another page where I validate data against a SQL server table. If there
are any exceptions, I return the user to the input form using history.go(-1).
The problem I have is that all the user's data is gone when I send them back.
Is there a way to retain the data?
Any help will be greatly appreciated.
Thanks,
maria
|
|
|
tigra
Administrator
Posts: 1915
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/15/2007 at 09:07 PM |
|
|
is that with free or PRO version?
|
|
|
Rene
Junior Member
Posts: 2
Registered: 1/4/2008
Member Is Offline
|
| posted on 1/4/2008 at 09:42 AM |
|
|
I have the same problem (with pro version).
If a form needs to be reloaded (because the user wants to edit some fields) the date will be reset to the default.
Is it possible to keep the last date?
|
|
|
tigra
Administrator
Posts: 1915
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/7/2008 at 02:21 AM |
|
|
If you let calendar generate input box then use 'selected' property of the initialization structure to preset the value. If you attach the calendar
to the existing input box then use value attribute of the input tag or set the value to the input box via javascript. Calendar doesn't store any
information between the page loads.
PS: I'd avoid using history for redirect. You can't be sure where you're sending the client. Redirect to the known url feels like the better
option.
|
|
|