Hi, How do I access caption generated through third party libraries? I see a screen with checkboxes(in a tree strucuture) and labels beside the checkboxes. Developers are using third party libraries(javascripts) to generate these checkboxes and they are placing a label beside the checkbox. When I do a view source on this page I see the following code which has the actual label(Male). var a = new Array; a[0] = new Array; a[0]['id'] = '1' a[0]['checkboxName'] =''ID_1'' a[0]['caption'] = 'Male'(#This is the data I want to retrieve) a[0]['isOpen'] = true a[0]['children'] = new Array; a[0]['children'][0] = new Array; a[0]['children'][0]['id']='2'; a[0]['children'][0]['caption']=''Female'; a[0]['children'][0]['checkboxName']='ID_2';
but when I say ie.checkboxes[1].name , it returns the text ID_1.
But I am interested in the caption of the checkbox i.e Male How do I retrieve this caption? Third party libraries used for generating the checkboxes: <script type="text/javascript" src="./js/Bs_Misc.lib.js"></script> <script type="text/javascript" src="./js/Bs_Array.class.js"></script> <script type="text/javascript" src="./js/Bs_Tree.class.js"></script> <script type="text/javascript" src="./js/Bs_TreeElement.class.js"></script> <script type="text/javascript" src="./js/Bs_Checkbox.class.js"></script> Thanks,
Yahoo! India Answers: Share what you know. Learn something new Click here
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now |