vForums Support Banner


Visit vForums

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Programming Discussion :: getElementsByClassName - View Topic
Topic Rating: *****
Printable View
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
getElementsByClassName (29th Apr 09 at 10:28pm UTC)
The functions.js which is used on every forum now includes my implementation on getElementsByClassName. This function has native support in browsers such as Firefox or Safari so that is used whenever avaliable. But the code I had added is used for browsers such as Internet Explorer. It's called in the same way as the other parts of the get() function: get('The ClassName', CLASS[, Object]); It can cope with elements which have multiple class names. Unfortunately it returns an array of the matching elements rather than a node list but I think that's the best that can be expected for Internet Explorer {Unsure}

Image
 Printable View

All times are GMT+0 :: The current time is 6:20am
Page generated in 0.1674 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums