popup to mimic parent window

A

Adam

hi, i'm new to JS, wondering how one would go about creating a popup window
that would exactly copy the size & location of the parent window. i am
guessing that you would combine two functions, one to assign size & location
of parent window to JS variables; the next to open the popup incorporating
those variables. i'm sure i can find snippets on the web. would there be a
simpler way?

thanks for help.

dave
 
E

Evertjan.

Adam wrote on 01 nov 2007 in comp.lang.javascript:
hi, i'm new to JS, wondering how one would go about creating a popup
window that would exactly copy the size & location of the parent
window. i am guessing that you would combine two functions, one to
assign size & location of parent window to JS variables; the next to
open the popup incorporating those variables.

Why don't you try it out, in stead of just guessing?
Show us the test code you made.
i'm sure i can find snippets on the web.

How can you be sure if you haven't yet found them, Adam?
would there be a simpler way?

How would we know if there is a simpler way,
if you do not show us the snippets you found?

Oh wait,
you think it is simpler for you if we look for those snippets?
 
E

Evertjan.

Adam wrote on 05 nov 2007 in comp.lang.javascript:
I'm into paying a few dollars via paypal for someone to write this
code for me. pls contact me here and state your fee:
http://www3.telus.net/deluximages/js.htm

Writing the impossible is far more expensive than a few dollars,
[it could even cost you hard euros, who wants dollars anyway].

Many users use popup blockers or convert a new window to an additional tab
of the main window. A consistent result will be impossible.

Cross browser you could run into other troubles.

It would be far more usefull if you explain the effect you want to have on
the clients screen, then perhaps we could give you a sound advice.

Are you just planning to give the impression that the original window is
lost? Obscuring the view in the present window with a z-indexed
superimposed div would render better results.
 
A

Adam

Are you just planning to give the impression that the original window is
lost? Obscuring the view in the present window with a z-indexed
superimposed div would render better results.

Evertjan,

my client is doing a legal dance with the FDA in the US, where due to
'unsubstantiated' medical claims being made about herbal or natural
ingredients, his lawyer advised him that he should open a seperate window,
with no links back to his site, and it also must obscure his parent page, in
order to convey the medical or health effects of his product. i'm not
interested in the legal dance, i'm just trying to technically fulfill his
request. the cross-browser thing is not that important, just simply a popup
that will open to obscure the parent. i didn't really think this was such a
huge deal. i could waste hours not being a JS scripter; if someone can do
it for ten bucks, i'm game.
 
E

Evertjan.

Adam wrote on 05 nov 2007 in comp.lang.javascript:
Evertjan,

my client is doing a legal dance with the FDA in the US, where due to
'unsubstantiated' medical claims being made about herbal or natural
ingredients, his lawyer advised him that he should open a seperate
window, with no links back to his site, and it also must obscure his
parent page, in order to convey the medical or health effects of his
product. i'm not interested in the legal dance, i'm just trying to
technically fulfill his request. the cross-browser thing is not that
important, just simply a popup that will open to obscure the parent.
i didn't really think this was such a huge deal. i could waste hours
not being a JS scripter; if someone can do it for ten bucks, i'm game.

Don't let me laugh, Adam.

Doing the impossible for 10 lousy dollars is impossible, you could
deduce, not only in principle, look for "impossible" in a dictionary, but
also because the deal would involve 10's of thousands of such currency to
that lawyer.
the cross-browser thing is not that important, just simply a popup
that will open to obscure the parent.

So de lawyer would be content, if the thing works on IE5,
not on IE5.5, IE6, IE7, FF2, IEmac, Safari, IE7+IE7pro,
Conqueror, text browsers, mobile browsers, google cache, etc?

Doing the impossible is(!) a "Huge Deal", as it would involve Higher
Powers than simple Javascript. It could even involve the DOM.
just simply a popup that will open to obscure the parent.

The word "simply" says it all, since when is The Impossible simple?
open a seperate window, with no links back to his site,

Wouldn't that window be on his site?
And, if it were on a seperate domain, "his other site",
wouldn't it have a document.referrer pointing to "his site"?
Wouldn't "his other site" not have a whois poining to his company,
complete with address and phone numbers?

His lawyer must be mad, as what he asks will never convince a court.
i'm not interested in the legal dance

You should be.

Obscuring a window does not substantiate 'unsubstantiated' medical
claims. Not even if it were cross-browser proof. A simple mouse click
would undo the obscurement on many operating systems anyway.

His lawyer must be mad, as what he asks will never convince a court.

You could become an accomplice to a fraudulent act.

A good thing for you that it is impossible.

Better go and earn some money elsewhere.
 
T

Thomas 'PointedEars' Lahn

Adam said:
Are you just planning to give the impression that the original window is
lost? Obscuring the view in the present window with a z-indexed
superimposed div would render better results.

[...]
my client is doing a legal dance with the FDA in the US, where due to
'unsubstantiated' medical claims being made about herbal or natural
ingredients, his lawyer advised him that he should open a seperate window,
with no links back to his site, and it also must obscure his parent page, in
order to convey the medical or health effects of his product. i'm not
interested in the legal dance, i'm just trying to technically fulfill his
request. the cross-browser thing is not that important, just simply a popup
that will open to obscure the parent. i didn't really think this was such a
huge deal. i could waste hours not being a JS scripter; if someone can do
it for ten bucks, i'm game.

A smarter lawyer could rip this reasoning into pieces, as it is well-known
that the required features do not need to be supported by the runtime
environment. IOW: The request can not be fulfilled technically, and ISTM
your client pays his lawyer too much.


PointedEars, IANAL
 
J

John W. Kennedy

Adam said:
Evertjan,

my client is doing a legal dance with the FDA in the US, where due to
'unsubstantiated' medical claims being made about herbal or natural
ingredients,

Translation:

My client is a mass murderer who needs help evading the law.

Burn in Hell.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top