schwim — 2014-07-28T21:25:08-04:00 — #1
Hi there everyone!
<verylongstoryshorter> I'm designing a social voting system for submitted links. I tried creating a content strip at the top for my voting system and then embedding the submitted link below in an iframe. I quickly realized that many sites do not want to be embedded inside an iframe. curl and fsockopen opens up huge cans of worms when trying to display page content. So my next attempt will be two open two sized and positioned windows. One small strip across the top for my stuff and the rest of the real estate for the submitted url.
To give you an example of what I mean, SearchTempest does such a thing. In direct results mode, if I click:
"Open Results Window"
Then it opens a control window as a long strip along the left side and the content window on the right.
I would like to do this very thing, with the previously stated exception of it being oriented one above the other. Unfortunately, I'm not sufficiently savvy to do it on my own and ST's page source has so much stuff in it, I can't decipher what's going on.
Could someone help me achieve this?
Thanks for your time!
felgall — 2014-07-28T22:04:35-04:00 — #2
You can suggest size and position in the third parameter of the window.open() command but in most cases your visitor's browser will be configured to process open requests in a new tab rather than a new window and so that third parameter will be ignored.
The only way to ensure that elements get positioned relative to other elements in the browser is to insert them all in the same web page over one another.
schwim — 2014-07-28T22:30:09-04:00 — #3
I don't have a browser that doesn't honor search tempests system. I would be happy with the success rate I've witnesses d there.
As for embedding elements in the same page, if someone doesn't want their content embedded in my page, they go to a lot of trouble to make sure it doesn't happen. It doesn't seem an option.