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 -> ASP.NET - InMotion Framework

 Ajax- dependent list box + link url

Print topic Send  topic

Author Message
Mukul


Posts: 53
Posted: 03/25/2008, 6:55 AM

Hi,
Thanks to yessoftware, we can easily get lots of ajax functionality like dependent listbox to work.

What i am trying to do is get a link to work a list box.

Eg: There are different class for students.
when i select the class, I get the students in the in the second dropdown.
I need to get the resume of the student (if present in db) as a link besides the students dropdown, and if no resume is present then "file upload" to be shown.

So no the dependency is on dropdown of student but need to get the file links.

Any help will be greatly appreciated.
Thanks,
Mukul
View profile  Send private message
Mukul


Posts: 53
Posted: 04/28/2008, 10:59 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.

MS Access to Web

Convert MS Access to Web.
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.