You would need to create a javascript function in the top page that the greybox can call after it's evaluated the un/pw. After submitting the login form from the greybox, you would then either serve a page that tells them that their login is incorrect and to try again, or a page that will call the top page function in the body onload. The top page function can do whatever you like then - close the greybox (see the documentation advanced usage) then load a new page, etc.
For your 'enter' issue, add a function to the password box for onkeypress. The function will check to see if the keypress was an enter; if so, it can submit the form. You can find oodles of examples if you google for that. Tyler On Nov 6, 2:35 pm, danoman <[EMAIL PROTECTED]> wrote: > I am trying to use this html password > methodhttp://www.javascriptkit.com/script/cut34.shtml > > i have skipped step number 2 and instead of a form on one page i > have a link in my menu that directs the visitor directly to the > gatekeep.html > > that works no problem. > > the problem is that when i use the menu link to open the gatekeep.html > in a greybox frame, the submit form won't work. > > any ideas? > > i'd like for the gatekeep.html to open in a greybox frame - allow the > user to enter the password and upon password submission for the gb > window to close. > > Also, does anyone have code for a form button to submit on an 'enter' > keystroke (for the password box) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

