CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 dependent listbox fired wher refresh page

Print topic Send  topic

Author Message
albertogreco

Posts: 2
Posted: 02/12/2009, 1:11 PM

I am using the very good feature of dependent listbox.
It works very well when I change the selection on the master listbox.
After the selection if I refresh the page have: the master listbox maintaining the previously selected value but the second listbox empty.
To fill the second listbox I will have to change the selection in the master one two times: the first one to change to a different value, the second one to re-select the original value.

How can avoid the problem?
Do you know a work around?
View profile  Send private message
damian

Posts: 838
Posted: 02/12/2009, 1:13 PM

does the same for me to...
i have noticed this behaviour on other websites - it appears to be a limitation
why are users refreshing a page that they are inserting data into?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
mentecky

Posts: 321
Posted: 02/12/2009, 1:48 PM

albertogreco,

You have to call the JavaScript function that invokes the AJAX call when your master listbox is changed. You can find the function in the bindings section of the HTML. It's normally a really long name.

I can't recall where I put the call but I think it was on the dependent listbox's On Load event. The parameter is the master listbox. My code looks like this:
employee_house_resident_ss_ResidentIDPTDependentListBox1_start(document.forms["employee_house_resident_s"].s_HouseID);

Good luck,

Rick
_________________
http://www.ccselite.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.