aakici
Posts: 49
|
| Posted: 01/18/2005, 12:57 PM |
|
I want to retrieve data from a mysql database when listbox change. When i add event CCS directs me to html part of project. How can i retrieve data within html part of page?
_________________
Regards,
M.Alpaslan AKICI |
 |
 |
Nicole
Posts: 586
|
| Posted: 01/19/2005, 5:55 AM |
|
It looks like you added a client side event, that’s why you’re redirected to HTML code. But in your case you need a combination of client side and server side code.
When user changes a Listbox you can reload a page and pass any parameter that indicates that some values need to be retrieved from a database. You can use JS code to reload a page, e.g.
window.location.href = "page_name.php?parameter_name=" + this.value ;
Then create page’s or form’s server side Before Show event where catch parameter_name parameter and retrieve a database value depending on it. You can find a code sample at http://docs.codecharge.com/studio/html/index.html?http:...BValue.html?toc
_________________
Regards,
Nicole |
 |
 |
aakici
Posts: 49
|
| Posted: 01/20/2005, 4:14 PM |
|
Thanks. Your code is very cleaar and helpful
_________________
Regards,
M.Alpaslan AKICI |
 |
 |
|