No DOM for Yahoo! Web Object Widgets?

I have a Yahoo! Widgets Web object and I would like to access the elements inside it when it is loaded. I am already doing great with WebEvents Y! W, but there is one small problem.

The web objects don't seem to have the DOM of their loaded page.

I can access webObj.html, which is the loaded source of the page, but as a string.

I can't find anything to parse this html into a DOM object. XMLDOM.parse () is the only thing that matches "parsing" in documents, and that doesn't go.

Y documents! W say getElementById is only applicable to Frame, Window and Widget objects. I want to do something (grab a page, get values ​​by known ids on that page, do things with values), not what Y! W wants you to do? Should I only interact with xml / json services?

0


source to share


1 answer


You can access the web object document like this:

document.getElementById('WebObjectID').base.document.getElementById('HTMLElementID')

      



webObj.base

returns internal DOM

+1


source







All Articles