Is it possible to open a new frame in html bellow an existing frame in HTML?

Posted by Prashant Dubey on Stack Overflow See other posts from Stack Overflow or by Prashant Dubey
Published on 2010-04-07T11:38:27Z Indexed on 2010/04/07 11:43 UTC
Read the original article Hit count: 481

Filed under:
|
|

Hi friends

I have a html main.html as given ----- main.html----------------

    <title>FlexTrail</title>
    <script  src="main.js"></script>
    <frameset rows='200,200'>
        <frame id='one'  src="file:///C:/Documents%20and%20Settings/demo/Desktop/FlexTrail/project1/bin-debug/project1.html" frameborder='0' />
        <frame id='two'   src="" frameborder='0' /> 

    </frameset>

</head>
<body >

</body>

here the first frame contains a html generated by Flex Builder 3 and on button click on that flex project i am calling function func2() in main.js using External Interface.

---- main.js-----------------

var flag2=0; function func2() { flag2=1; parent.frames['one'].location="file:///C:/Documents%20and%20Settings/demo/Desktop/FlexTrail/project1/bin-debug/project1.html"; parent.frames['two'].location="file:///C:/Documents%20and%20Settings/demo/Desktop/FlexTrail/project2/bin-debug/project2.html"; }

I want the other file to open in same window bellow the first one.But the problem here is when i run this in IE8 the other frame opens in a different window but in Firefox im not getting any respose.

Note:- Javascript is enabled in both browsers and popup are not blocked

Plz tell me where i m wrong

Thanks in advance

Prashant Dubey

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html