List Info

Thread: How do I access caption generated through third party libraries?




How do I access caption generated through third party libraries?
user name
2006-06-16 05:25:16
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">&lt;/script&gt;
<script type="text/javascript" src="./js/Bs_TreeElement.class.js"></script>
<script type="text/javascript" src="./js/Bs_Checkbox.class.js"&gt;</script>
 
 
Thanks,
Amitha


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
How do I access caption generated through third party libraries?
user name
2006-06-16 08:18:49
Hi,

Please don't post the question again with different subject. Just a thought.

Regards,
Angrez

On 6/16/06, Amitha Shetty <yahoo.co.in"> amithashettybyahoo.co.in> wrote:
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&quot;></script>
<script type=";text/javascript" src="./js/Bs_Array.class.js">&lt;/script&gt;
<script type=";text/javascript" src="./js/Bs_Tree.class.js&quot;>&lt;/script&gt;
<script type=";text/javascript" src="./js/Bs_TreeElement.class.js";></script>
&lt;script type=";text/javascript" src="./js/Bs_Checkbox.class.js"&gt;</script>
 
 
Thanks,
Amitha


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


_______________________________________________
Wtr-general mailing list
rubyforge.org">Wtr-generalrubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )