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
|
|
|
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
|
|
|
|