tag:blogger.com,1999:blog-34454975.post1309587562542348952..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: JavaScript get_class and is_a functionsAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-34454975.post-3333990752446667292009-03-24T12:27:00.000+01:002009-03-24T12:27:00.000+01:00u r blog Is very niceu r blog Is very niceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-31892018970892172072008-11-28T11:44:00.000+01:002008-11-28T11:44:00.000+01:00Nice, except it's not useful at all for certain ty...Nice, except it's not useful at all for certain types of objects.<BR/><BR/>-----<BR/>var foo = function() { return "foo"; }<BR/><BR/>var bar = new foo();<BR/><BR/>alert( get_class(bar) );<BR/>-----<BR/><BR/>Returns "anonymous"..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-9368366643516222972008-04-18T01:10:00.000+02:002008-04-18T01:10:00.000+02:00Sorry Matias, but IE DOM is crap and constructor d...Sorry Matias, but IE DOM is crap and constructor does not exists as native DOM classes as well.<BR/><BR/>No way to know their nature, until you will implement a good outerHTML parser to recognise the element.Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-2265422680767137852008-04-18T00:05:00.000+02:002008-04-18T00:05:00.000+02:00im trying to use the get_class() function. It work...im trying to use the get_class() function. It works great in firefox but it IE it returns "undefined". I wanna use it to know what kind of element is the object. I mean: if it's a HTMLDivElement, HTMLimputElement, etc. Do i have to use any other function???matubaumhttps://www.blogger.com/profile/17330676485587777169noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-2036681437581542092007-09-05T20:58:00.000+02:002007-09-05T20:58:00.000+02:00Thanks for the nice post!Thanks for the nice post!Anonymousnoreply@blogger.com