I have replaced the carousel code with
oIframe.src = "Codebox/" + password + ".html";
and it does the right thing when I enter the right password..
But does not bring back to dump if I enter wrong password... it just takes me (as intended by the original code) to /Codebox/wrongpassword.html
The problem here is, a wrong password can be any thing and the code contend in the pop up box does not know when it opens, what password the user is going to enter.
I know I am not understanding the code. Here is the file arrangement.
Webroot
-index.html (the homepage)
-dragto.html ( refered to as dump)
-gate.html (the pop up )
-Codebox
--xyz.html (refered to as treasure)
Please suggest what should the code be which I need to put in the pop up (gate.html).
I think I am confused about the not-carousel.html in the code. Please help
Here is the link with the implemented code.
https://dl.dropbox.com/u/25512757/Sand-Box/index.html