From: nikola <web...@ya...> - 2005-03-03 08:54:57
|
hi, I want to access iframe content as I can acsess "main" page content for example: main.php page <html> <head><title>title</title></head> <body> some content<br> <a href="link.php">link</a> <iframe id="i_frame" name="i_frame" src="main.php?content_id=1"></iframe> </body></html> ... now if I want to get link or iframe on this main page, I know how to do it... final HtmlInlineFrame iframe = (HtmlInlineFrame)page.getHtmlElementById("i_frame"); but i want to know if there is a way to access content of this iframe page, how can I access main.php?content_id=1 from main.php in some way referencing iframe, to get elements of that second page... ... I know I can get srcAttribute of iframe, and then load main.php?content_id=1 to a WebClient, but then I can't access elements of that page, for example if there is link I can't get it final HtmlAnchor anchor = second_page.getAnchorByHref(" some_href"); ... I get an error ElementNotFound ... __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ |