Here is what I did: The code that checks for the active session forwards to a logout page which clears any remaining session values and sends the user to the login page. I added the following code to the logout page within an onload function: if (window. Parent) { window.parent.location.
Replace('your-login-url'); } else { window.location. Replace('your-login-url'); } Now when the logout page is called, it clears the shadowbox before the browser ever gets any of the login page view. Works great.
Hope this can help someone.
I know this post is old but I had to address the same challenge recently and thought someone else might happen upon this post looking for an answer. The answers given above are great, but do not answer well the original question, which wasn't really "How do I check if the page is in a shadowbox? ", but "How do I avoid the page loading within a shadowbox and then loading again after the shadowbox is closed?"
Here is what I did: The code that checks for the active session forwards to a logout page which clears any remaining session values and sends the user to the login page. I added the following code to the logout page within an onload function: if (window. Parent) { window.parent.location.
Replace('your-login-url'); } else { window.location. Replace('your-login-url'); } Now when the logout page is called, it clears the shadowbox before the browser ever gets any of the login page view. Works great.
Hope this can help someone.
Use isOpen(). shadowbox-js.com/api.html Try this.link. BaseURI to see if that is the same as window.
Location if you want to access the browser location inside the shadowbox.
Thanks Kalyan, but that only works in the parent window. It doesn't work when you call it in the page which is loaded inside the shadowbox. – Max Williams May 26 '10 at 13:08 Try the updated answer.
– Kalyan M May 26 '10 at 15:42 thanks. Is that effectively the same as "window.parent. Location" like I do in my code above?
– Max Williams May 27 '10 at 10:33.
Try this on the login page: var Shadowbox = window.parent. Shadowbox; Then check to see if Shadowbox is undefined.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.