rookie
|
Posted: 04/23/2004, 7:25 PM |
|
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_article.asp?s_keyword=...ent&s_prod=&kb_
articlesPageSize=10&s_type=&order_by=Popularity&s_cat=&article_id=61
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=23
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....!
|
|
|
rookie
|
Posted: 04/23/2004, 8:07 PM |
|
O.K. it's me again...
there a way to modidy the code, so whan I change de value of the first
listbox, it update the data of the page automatically, and display the same
page again?
I'm using this in a update form...
"rookie" <pcboss1976@hotmail.com> escribió en el mensaje
news:c6cj7c$i75$1@news.codecharge.com...
> 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_article.asp?s_keyword=...ent&s_prod=&kb_
> articlesPageSize=10&s_type=&order_by=Popularity&s_cat=&article_id=61
>
> 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=23
>
> 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....!
>
>
>
|
|
|
|