What am I doing wrong here? Shouldn't it possible to access elements in other 
frames, if the frame 
source is on the same server?

This doesn't work:

<html>
<head>
<script src="jquery-1.1.3.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#f1 p').click(function(){
    alert( 'click' );
});
});
</script>
</head>
<frameset rows="100,*" />
   <frame id="f1" src="frame.html" />
   <frame id="f2" src="frame.html" />
</frameset>
</html>

content of frame.html:
<html>
<body><p>Hello!</p></body>
</html>

Reply via email to