Oooooooo boy! A vigin forum! (rubbing hands together )
Here's a question: I've been considering how to make a page supposed to render in a popup (a slideshow, for instance), stay in the popup - e.g. when you use the url directly you still get the popup.
It's a tough issue. Theoretically you could do something akin to frame forcing. I even thought of causing the page to open a browser to open the popup then close the parent window, though if a search engine has the page logged, people will have their browsers inadvertantly closed.
Ideas?
__________________ LlamaseryEnlightened Internet Strategies
"Psychics will lead dogs to your body." --Alleged fortune cookie message
would be my choice. I once was going to do something like this (had a working example until I formated), that makes it so your page is on top, but once they are done with it, they can close it and continue browsing...
Hadn't seen that WTC proposal yet. Looks like another one to add to the new Futures photo gallery section (which also will be linked from a corresponding page in the History section (almost ready for launch - like by tomorrow).
However, long as you brought it up I'm preparing to align CWTC for endorsement of This Project, which has the best feel of any WTC proposal I've seen thus far. I'll letcha know.
__________________ LlamaseryEnlightened Internet Strategies
"Psychics will lead dogs to your body." --Alleged fortune cookie message
that would be increadably cool. And really big, wow, I know they are starting something on site 7 right now. There was an article in either the local paper (san diego union tribune) or the WSJ about their decission process. They are susposedly going to have the final project decided by december...
window.location.replace('http://www.google.com');
// maybe history.back() would suffice
}
}
</script>
I basically check to see if you haven't assigned the popup window a boolean, popped. If undefined or doesn't evaluate to true, open the popup code you want, giving the new window the popped boolean. And then, to preserve the main window, replace the location with google's.
Thanks jkd. That's more what I had in mind. Lemme try it out!
Edit:
Okay, that worked perfectly. For instance, Click Here.
Code:
<script type="text/javascript"><!--
window.onload = function() {
var PopUpUrl="http://commemoratewtc.com/history/artwork/ideogram01.html"
var newWin;
if (typeof window.popped == 'undefined' || !window.popped) {
newWin = window.open(PopUpUrl,"","width=472,height=422,toolbar=no,location=0,directories=0,status=0,scrollbars=no,menubar=0,resizable=0");
newWin.popped = true;
window.location.replace('http://commemoratewtc.com/history/artwork/ideogram.php');
}
}
// -->
</script>
[edit#2]
Okay, just hit a minor glitch. If I open the popup from the page I get two popups, one of which contains the page I launch from. Go Here and click on the image to launch the popup. You'll see what I mean. Pretty close though. I suppose I could just target the page running in the popup, though it'll reload the existing page unnecessarily. Ideas?
[/edit#2]
__________________ LlamaseryEnlightened Internet Strategies
"Psychics will lead dogs to your body." --Alleged fortune cookie message
Originally posted by welo I even thought of causing the page to open a browser to open the popup then close the parent window, though if a search engine has the page logged, people will have their browsers inadvertantly closed.
Ideas?
I've been trying to do something like that on my site! Although I'm trying to use cookies to save the referrer URL so as to open that page again, once the surfer leaves my site... (haven't figured out how, yet)