CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Ajax - dependent listbox + textbox and labels

Print topic Send  topic

Author Message
Mukul


Posts: 53
Posted: 04/25/2008, 12:11 AM

Hi,
I have dependentbox2 dependent on dependentbox1.
When i select a value in dependentbox1, list appears in dependentbox2 with Ajax

Now i want want other fields in the same form to be populated
textbox2, label2 on dependentbox2.value with Ajax

also when i select another value in dependentbox2 the textbox2, label2 should change.

data from dependentbox2, textbox2, label2 comes from same table2

Thanks and Regards,
Mukul
View profile  Send private message
Mukul


Posts: 53
Posted: 04/28/2008, 10:55 PM

Solved:
The problem was with showing the link and getting href value for it.

Created a Autofill Ajax call on the dependentbox2, in the start event put dependentbox2.onchange;
and in the control the list of controls to fill the value in.

For label: innerHTML
For textbox etc: value
For Images: src

It was difficult to get value for href part for a 'link'
So instead i put a <span id=someid>{link1}</span>

and in the controls:
someid: with field details as innerHTML
In the service page got the field value as complete string ie <a href=\"field\">field</a>

So during addition the ajax call, span was changed with the complete value and during simple modify, the link1 was regular dynamic link with static and dynamic set to field.

Hope this helps
Regards,
Mukul
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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