G
Galina
Hello
I have 6 dependent list boxes on my ASP page:
Faculty;
Lecturer;
Course;
Course occurrence;
Group;
Week commencing date.
When faculty is selected, lists of lecturers and courses are
populated. When course is selected, lists of occurrences, groups and
dates are populated.
All data to populate list boxes come from a database on SQL server,
from separate recordsets. List boxes are populated on the client side
using functions generated in the source, when asp page is processed on
the server side. An example:
function populateLecturer_from_Faculty(Faculty) {
prodBox1 = document.getSearch.selLecturer
clearBox(prodBox1);
switch (Faculty) {
case 'ABT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Baxxr, V', '52');
addBoxItem(prodBox1, 'Coxxly, M', '293');
addBoxItem(prodBox1, 'Dxxn, T', '357');
break;
case 'BMP' :
addBoxItem(prodBox1, ' ', '*'); addBoxItem(prodBox1, 'Buxxll, N',
'4197');
addBoxItem(prodBox1, 'Caxxde, J', '2779');
addBoxItem(prodBox1, 'Vowxxs, C', '1279');
break;
case 'CHT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Bisxxp, E', '2763');
addBoxItem(prodBox1, 'Brxxey, D, '172');
break;
case 'CLT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Garxxng, M', '471');
addBoxItem(prodBox1, 'Waxxh, J', '1302');
break;
and so on.
It is of course a very long source, but it works.
When user selects everything, the selection uniquely identifies a
group of students. When user clicks the button Submit, another asp
page is activated showing room(s) occupied by this group on each day
of the selected week. It also works.
My problem: when user clicks the button Back of the browser to return
to the selection asp page, the selection disappears. All list boxes
return to the full initial lists of faculties, lecturers, courses and
so on and the first item of each list is shown rather then that one
that was selected.
Why does asp page changes, when user navigates back to it? How can I
prevent this change? I want my users to see the same data, when they
return to the page.
The browser is IE 5.5 on Windows 9x and 6.0. on Windows 2000. (Being a
large college, we have PCs in different stages of Windows update.) The
problem looks the same on both browsers.
Any help will be greatly appreciated.
Thank you.
Galina
I have 6 dependent list boxes on my ASP page:
Faculty;
Lecturer;
Course;
Course occurrence;
Group;
Week commencing date.
When faculty is selected, lists of lecturers and courses are
populated. When course is selected, lists of occurrences, groups and
dates are populated.
All data to populate list boxes come from a database on SQL server,
from separate recordsets. List boxes are populated on the client side
using functions generated in the source, when asp page is processed on
the server side. An example:
function populateLecturer_from_Faculty(Faculty) {
prodBox1 = document.getSearch.selLecturer
clearBox(prodBox1);
switch (Faculty) {
case 'ABT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Baxxr, V', '52');
addBoxItem(prodBox1, 'Coxxly, M', '293');
addBoxItem(prodBox1, 'Dxxn, T', '357');
break;
case 'BMP' :
addBoxItem(prodBox1, ' ', '*'); addBoxItem(prodBox1, 'Buxxll, N',
'4197');
addBoxItem(prodBox1, 'Caxxde, J', '2779');
addBoxItem(prodBox1, 'Vowxxs, C', '1279');
break;
case 'CHT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Bisxxp, E', '2763');
addBoxItem(prodBox1, 'Brxxey, D, '172');
break;
case 'CLT' :
addBoxItem(prodBox1, ' ', '*');
addBoxItem(prodBox1, 'Garxxng, M', '471');
addBoxItem(prodBox1, 'Waxxh, J', '1302');
break;
and so on.
It is of course a very long source, but it works.
When user selects everything, the selection uniquely identifies a
group of students. When user clicks the button Submit, another asp
page is activated showing room(s) occupied by this group on each day
of the selected week. It also works.
My problem: when user clicks the button Back of the browser to return
to the selection asp page, the selection disappears. All list boxes
return to the full initial lists of faculties, lecturers, courses and
so on and the first item of each list is shown rather then that one
that was selected.
Why does asp page changes, when user navigates back to it? How can I
prevent this change? I want my users to see the same data, when they
return to the page.
The browser is IE 5.5 on Windows 9x and 6.0. on Windows 2000. (Being a
large college, we have PCs in different stages of Windows update.) The
problem looks the same on both browsers.
Any help will be greatly appreciated.
Thank you.
Galina