Posts

Showing posts from January, 2011

Querying Elements Inside iframe & TabPanel

As it's quite fairly new to me because I've never did Javascript extensively, thus it is difficult for me at first to code it. My recent task required me to extract information from a web page displayed within an iframe, and then create an XML to represent it. The approach is pretty straightforward after searching the Internet for solutions. All I need is to get the ID of the iframe, and then create an object inside Javascript to point to that iframe using getElementById, and finally invoke the Javascript function of the web page displayed within the iframe. But then the other task is how to get the list of iframe IDs? There are several iframe elements that will be created dynamically and each of them is going to be an element within an AJAX TabPanel, which in turn will be created dynamically also inside an AJAX TabContainer. If it's just normal HTML element, then it's very straightforward; but with the TabPanel object, I need to find a way to extract only the activ