Click to See Complete Forum and Search --> : How to Disable or Lock a Frame


ajewahar
05-04-2003, 09:43 AM
Hi,

I have a HTML page with 2 frames.

'Frame1" source a HTML files which contain a Banner and MenuBar and each Menu Bar option are linke to various URLs.

Frame2 contain a HTML which has One 'Input Text' box and a 'Password' type input box.

What I need is that user should not be able to click any of 'Menu' options available in "Frame1" prior he submit his 'login' details which in 'Frame2"

Basically I want to disable "Frame1" as default. Upon validating of user login details I need to enable "frame1".

Is there any way that can be done.

Regards

requestcode
05-05-2003, 08:57 AM
Is there a way to tell if they loged in successfully in frame2? Possibly a variable in frame1 that gets set when the log in. Of course if they reload the frame or the whole page then the variable would probably get reset and then they would not be able to use the menu again. You might also be able to set a cookie that would keep track of the login.

ajewahar
05-05-2003, 11:05 AM
Thanks for your reply...

Yes, I managed to this through a boolean "session" variable "LoggedIn" and this will be validated from each URL user selected.

Thanks