Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restriction from child window to parent window

Status
Not open for further replies.

rait

Programmer
Jan 23, 2008
1
US
Hello,
I have a parent window and a hyperlink would create another child pop up window ontop of it. I would like to restrict the user from clicking/accessing the parent window until they hit the "Save" or "Cancel" button in the child window. Can someone suggest me how I can accomplish it?

Thanks,
rait
 
2 options:

1) Use IE's showModalDialog. It only works in IE, so forget about any sort of cross browser compatibility.

2) Use an absolutely positioned div instead of the popup window. You can then put an invisible div with a z-index between the popup and the original page so that nothing on the bottom page can be accessed.

I'd go for option #2, but then again I never use any sort of popup windows - only absolutely positioned divs.

Here's an example:


-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top