Saturday, May 30, 2009

[jQuery] Referencing an element in a frame

<frameset id="outer" rows="20%,*" >
<frame name="econsole" src="econsole.htm" frameborder="0"
noresize="noresize" />
<frame name="launch" src="launch.htm" frameborder="0"
noresize="noresize" />
</frameset>

$(document).ready( function() {
// how would I reference a div of ID=test insode the frame named
econsole?
$('frame[name="econsole"] what goes here')
}

I'd also like to know the reverse. For javascript insode econsole's
window, how would I reference the frameset of id="outer" (I'd like to
change the attribute rows from econsole.)

Thanks,

Sam

No comments: