Hi , i am opening a DHTMLXWindow on click of anchor tag, this window has got attached an iframe with an html page as source to it. when the page gets loaded for first time , and on clicking the link the window opens normally, where as when i click the same link again the window do not open as desired. attached is the code:
upload.jsp
browse.html
<script>
</script>
FB.js
function openUploadPhoto()
{
if (w1 != null) {
w1.detachObject();
dhxWins.window(“w1”).close();
w1 = null;
} else {
w1 = dhxWins.createWindow("w1", 20, 30, 360, 200);
dhxWins.window('w1').center();
w1.setText("Upload Photo");
w1.button("close").enable();
dhxWins.window("w1").denyResize();
dhxWins.window("w1").denyPark();
w1.attachObject('iframeinner');
document.getElementById('iframeinner').style.visibility="visible";
}
}