javascript - Getting access to deep nested image -


i have page set out thus:

<body> <div class="header_div"> <object width="100%" height="30px" id="header" name="header" data="/cgi-bin/header.pl"></object> </div> <div class="page_div" id="page_div"> <object id="page" name="page" width="100%" height="100%" data="/cgi-bin/page.pl"></object> </div> <div class="menu_div" id="menu_div"> <object id="menu" data="/cgi-bin/menu.pl" width="250px" height="180px"></object> </div> <div class="login_div" id="login_div"> <object id="login" name="login" width="200px" height="300px" data="/cgi-bin/login.pl"></object> </div> 

within <object> tag of page script called "page.pl", (as shown). calls perl script called "sidebar.pl" (effectively include tag) within sidebar graphic called "login" (if user clicks this, can log in, , form displays in "login div")

however, when results displayed in "page.pl", there feature needs user log in ... "login div" made visible again

the login details sent, , results returned "login div", tag, close window / (hide_div) option. now, here comes tricky bit! if poss, want change "login" graphic in sidebar, (which part of page div)

due nesting structure, difficult go graphic, i'm thinking easiest way starting top of browser (window.xxx ???) nested structure like: "window.document.getelementbyid('page').getattribute('data').innerhtml.getelementbyid('login').src" .. syntax hopelessly wrong

any ideas?

sorry say, don't think can parse contents of retrieved via object tag. instead, should consider getting these elements via ajax, , can parse contents heart's content ;-)


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -