Almost done...

23/04/2004 - 21:53 por rookie | Informe spam
Hi, it's me again, :->

I've choose to use the Dependent Listbox sample that appears in the
Codecharge FAQ
http://support.codecharge.com/kb_ar...d=&kb_
articlesPageSize&s_type=&order_by=Popularity&s_cat=&article_ida

but (like always) I have a problem; i need to preserve the parameter the
page already have, like this:

bevore I change the "select" in the listbox, the url of the page was:
www.mypage.com/courses.asp?JuniorHigh#

when I excecute the select, it changes to
www.mypage.com/courses.asp?selected=9 but the "JuniorHigh" parameter just
disappear, and if I save the data, it saved it to all rows in the table, so
I tried this, base on the FAQ example:
window.location.href = "select_courses.asp?JuniorHigh=" +
CoursesForm.School.value + "&selected=" + this.value;

"School" is a field in the "CoursesForm" form, that is where the dependent
listboxes are, but it sends me a null value error!
 

Leer las respuestas

#1 rookie
23/04/2004 - 22:35 | Informe spam
"rookie" escribió en el mensaje
news:
Hi, it's me again, :->

I've choose to use the Dependent Listbox sample that appears in the
Codecharge FAQ



http://support.codecharge.com/kb_ar...d=&kb_
articlesPageSize&s_type=&order_by=Popularity&s_cat=&article_ida

but (like always) I have a problem; i need to preserve the parameter the
page already have, like this:

bevore I change the "select" in the listbox, the url of the page was:
www.mypage.com/courses.asp?JuniorHigh#

when I excecute the select, it changes to
www.mypage.com/courses.asp?selected=9 but the "JuniorHigh" parameter just
disappear, and if I save the data, it saved it to all rows in the table,


so
I tried this, base on the FAQ example:
window.location.href = "select_courses.asp?JuniorHigh=" +
CoursesForm.School.value + "&selected=" + this.value;

"School" is a field in the "CoursesForm" form, that is where the dependent
listboxes are, but it sends me a null value error!


Preguntas similares