How to auto close the parent / opener window without confirmation!

P

PerryC

Anyone know how to auto close the parent / opener window without
confirmation? I have tried:

<script>
opener.window.close()
</script>

----I put it in the child html page, and nothing happen!!---




<script>
self.close()
</script>

---- I put this in the parent html page, and it ask me to confirm and
does not open the child page until I hit no... then the parent page
remains open-----


Is there a way to close parent page at the same time child page is
close or close parent page upon child page open?

Sincerely,
Perry
 
R

Randy Webb

PerryC said:
Anyone know how to auto close the parent / opener window without
confirmation?


Yes, I know how, in 90% or so of the cases.
I have tried:

<script>
opener.window.close()
</script>

----I put it in the child html page, and nothing happen!!---

You should have gotten a dialog window asking if you want to allow
script to close the window (what browser did you test it in?)
<script>
self.close()
</script>

---- I put this in the parent html page, and it ask me to confirm and
does not open the child page until I hit no... then the parent page
remains open-----

Yep, thats the way it works (some of the time)
Is there a way to close parent page at the same time child page is
close or close parent page upon child page open?

Yes, in 90% or so of the browsers on the web.

The Unconditional Truth will set you free though.
 
P

Perry Cheng

OK, Randy, So you know how... do you mind sharing? I am not able to do
so... with the codes I put there... any insight? I am using IE6. How
can I get rid of the confirmation popup? Or, better yet, how can I open
the child window and close the parent window automatically? What code
to use??

Sincerely,
PC


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
R

Richard Cornford

Perry said:
OK, Randy, So you know how... do you mind sharing? I am not able to
do so... with the codes I put there... any insight? I am using IE6.
How can I get rid of the confirmation popup? Or, better yet, how can
I open the child window and close the parent window automatically?
What code to use??
<snip>

The fact that Randy knows and is not telling is significant. An archive
search at groups.google.com will reveal the explanation/context and also
the code for the antisocial hack needed.

Richard.
 
P

Perry Cheng

OK, Richard... I am puzzled... what I am asking is related to hacking???
I did my homework before coming here... and ask... I did search not only
google, but also other places... all that is telling me is not exactly
what I have described here... (see previous posts). So, can you or
someone point to me where I can find these info?

What I really need is to click on a html file (run on my Desktop, not
for the web) and it will open up in full screen...

I was not able to do so, so, to get around it... I write another html
with javascripts to open the original html file (in full screen, without
toolbars...) However, now, I have 2 windows... so that is why I am
seeking a way to close the opener!

If someone can share how to accomplish my original intent, that will be
the best.

Sincerely,
Perry



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
L

Lee

Perry Cheng said:
OK, Richard... I am puzzled... what I am asking is related to hacking???

It's not related to hacking. He called it an antisocial hack.
In this case, it's a hack in the sense that it's code that does
something that you normally shouldn't do, and that shouldn't
really be expected to work, but that does work in some cases.

It's anti-social in the sense that closing a person's window is
extremely rude. Maybe they had some more use for it. In this
case, it's your own window, but people are still justified in
hesitating to post the code.


What I really need is to click on a html file (run on my Desktop, not
for the web) and it will open up in full screen...

I was not able to do so, so, to get around it... I write another html
with javascripts to open the original html file (in full screen, without
toolbars...) However, now, I have 2 windows... so that is why I am
seeking a way to close the opener!

But you don't need to close the opener from the new window.
Why not have the original window [try to] close itself after
opening the new window? You should have found methods to do
that in some browsers.

You might also look into HTA's, if what you want is an icon
on your Windows desktop that you can click and launch a web
application.
 
K

kaeli

Anyone know how to auto close the parent / opener window without
confirmation?

You can't do that *without confirmation* in a normal internet
environment.

Use an HTA if it is for your own use on a windows PC with IE.

And it's
self.opener.close();
in the child window, IIRC.

--
--
~kaeli~
Going to church doesn't make you a Christian any more than
standing in a garage makes you a car.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
R

Randy Webb

Perry said:
OK, Randy, So you know how... do you mind sharing? I am not able to do
so... with the codes I put there... any insight? I am using IE6. How
can I get rid of the confirmation popup? Or, better yet, how can I open
the child window and close the parent window automatically? What code
to use??

The reason you get the confirmation window is because you are attempting
to close a window that script didn't open. The way that script (or the
browser) determines whether you opened it with script or not is checking
the window.opener property.

The reason I didn't post the code (as has been pointed out) is that its
anti-social to be closing windows without permission.

Do a search of the archives for "unconditional truth".
 
T

Thomas 'PointedEars' Lahn

Perry said:
OK, Richard... I am puzzled... what I am asking is related to hacking???

Your Question Mark key is borken. [psf 2.3]

Yes, as "hacking" is jargon for "solving problems", and in the context
of software development, it just means developing and implementing an
algorithm that solves a problem. You confuse that with "cracking", a
common misconception, most certainly influenced by the media who tend
to speak of "evil hackers". Hackers are not bad, crackers are.
Hackers build, crackers destroy. As you destroy the reliability of the
user interface if you would succeed doing what you intend to do, you
would be a cracker.

<http://www.catb.org/~esr/faqs/hacker-howto.html>


PointedEars
 
L

Lasse Reichstein Nielsen

Thomas 'PointedEars' Lahn said:
Yes, as "hacking" is jargon for "solving problems", ...
You confuse that with "cracking", a common misconception,

It's a common misconception in some circles that they get to define
the word "hacker". In the strictest sense, it means someone who hacks
wood. Other meanings exist, and while a small minority insists that
it cannot mean someone who illegally accesses computers, that is the
common and accepted use of the word for the rest of the world.
<URL:http://www.cbc.ca/news/indepth/words/hack.html>
<URL:http://coscorrosa.com/writing/rants/hacker-cracker.php>
/L
 
T

Thomas 'PointedEars' Lahn

Lasse said:
Thomas 'PointedEars' Lahn said:
Yes, as "hacking" is jargon for "solving problems", ...
You confuse that with "cracking", a common misconception,

It's a common misconception in some circles that they get to define
the word "hacker". In the strictest sense, it means someone who hacks
wood. [...]

man jargon


PointedEars
 
G

Grant Wagner

Lasse said:
It's a common misconception in some circles that they get to define
the word "hacker". In the strictest sense, it means someone who hacks
wood.

"hacker" has 3 meanings according to dictionary.com <url:
http://dictionary.reference.com/search?q=hacker />:

hack·er1 Audio pronunciation of "hacker" ( P ) Pronunciation Key (hkr)
n. Informal

1. One who is proficient at using or programming a computer; a computer buff.
2. One who uses programming skills to gain illegal access to a computer network
or file.
3. One who enthusiastically pursues a game or sport: a weekend tennis hacker.

None of which involve "hacking" wood. I might modify the 3rd to read:

3. One who enthusiastically pursues a game, sport or hobby (computer
programming); a weekend tennis hacker, a weekend code hacker

which might be someone different from "one who is proficient at programming".


"hacker" has four meanings according to Merriam-Webster <url:
http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=hacker />:

Main Entry: hack·er
Pronunciation: 'ha-k&r
Function: noun
1 : one that hacks
2 : a person who is inexperienced or unskilled at a particular activity <a
tennis hacker>
3 : an expert at programming and solving problems with a computer
4 : a person who illegally gains access to and sometimes tampers with
information in a computer system

In this definition, "one that hacks" is included, with "hack" defined as:

transitive senses
1 a : to cut or sever with repeated irregular or unskillful blows b : to cut or
shape by or as if by crude or ruthless strokes <hacking out new election
districts> c : ANNOY, VEX -- often used with off
2 : to clear or make by or as if by cutting away vegetation <hacked his way
through the brush>
3 a : to manage successfully <just couldn't hack the new job> b : TOLERATE <I
can't hack all this noise>
intransitive senses
1 a : to make chopping strokes or blows <hacked at the weeds>; also : to make
cuts as if by chopping <hacking away at the work force> b : to play inexpert
golf
2 : to cough in a short dry manner
3 : LOAF -- usually used with around
4 a : to write computer programs for enjoyment b : to gain access to a computer
illegally

So your claim about "hacking wood" being one particular interpretation is
substantiated, but it is by no means the "strictest" sense of the word.

Note that I would argue that "hacker" could also be defined as someone who
produces _bad_ computer programming, given that "one who hacks" is "to cut or
sever with repeated irregular or unskillful blows" why couldn't "one who hacks"
be "to program with repeated unskillful code"?
Other meanings exist, and while a small minority insists that
it cannot mean someone who illegally accesses computers, that is the
common and accepted use of the word for the rest of the world.
<URL:http://www.cbc.ca/news/indepth/words/hack.html>
<URL:http://coscorrosa.com/writing/rants/hacker-cracker.php>

The common and accepted use of the word depends on it's context. If I say "he
hacked at the tree" I doubt anyone would suggest he was attempting to tamper
with computer information contained in the tree. I would hope we can all agree
that "hacker" when related to computers means either:

1. an expert (or someone who is proficient) at programming and solving problems
with a computer (a computer buff);
2. a person who (uses programming skills to) illegally gains access to and
sometimes tampers with information in a computer system

The exact meaning depends on the personal point-of-view of the speaker and the
context in which it is used.

However, I agree that to the majority of people in non-computer related fields,
when presented with the word in a computer-related context, would define it as
2.
 
I

Ivan Marsh

It's a common misconception in some circles that they get to define the
word "hacker". In the strictest sense, it means someone who hacks wood.
Other meanings exist, and while a small minority insists that it cannot
mean someone who illegally accesses computers, that is the common and
accepted use of the word for the rest of the world.

I love that when someting is used incorrectly by enough people it becomes
the correct way to use it.

Read:

Hackers: Heroes of the Computer Revolution
by Steven Levy
ISBN: 0141000511

Great (and very entertaining) history of the microcomputer revolution.

Everything from MIT's electric train club to Apple, Microsoft, Sierra.
 
R

Randy Webb

Thomas said:
Perry said:
OK, Richard... I am puzzled... what I am asking is related to hacking???


Your Question Mark key is borken. [psf 2.3]

No, it worked perfectly. 3 times in fact. On the contrary, its your
spellchecker that is *broken*.

And all this in a sub-thread about the meaning of the word "hacker" and
you continue to mis-spell the word broken? Interesting to say the least.
 
G

Grant Wagner

Ivan said:
I love that when someting is used incorrectly by enough people it becomes
the correct way to use it.

Read:

Hackers: Heroes of the Computer Revolution
by Steven Levy
ISBN: 0141000511

Great (and very entertaining) history of the microcomputer revolution.

Everything from MIT's electric train club to Apple, Microsoft, Sierra.

I love when a single book citing that a word means something defines what the
word means. I think I'll write a book saying that the word "computer" means a
small, red fruit that comes from a tree, despite all dictionary definitions
and common-usage to the contrary.

Human language is what it is. And human language evolves. To "Xerox"
something is to photocopy it, blowing your nose with a "Kleenex" means you're
using a facial tissue. To "google" means to search the Internet for
information. And a "computer hacker" can be:

an expert (or someone who is proficient) at programming and solving problems
with a computer (a computer buff);
- or -
a person who (uses programming skills to) illegally gains access to and
sometimes tampers with information in a computer system

Deal with it.
 
I

Ivan Marsh

I love when a single book citing that a word means something defines
what the word means.

Actually, the book talks to and about the people that made up the term.
I think I'll write a book saying that the word "computer" means a small,
red fruit that comes from a tree, despite all dictionary definitions and
common-usage to the contrary.

Then you'd be making the same mistake people make about "hacker".
Human language is what it is. And human language evolves. To "Xerox"
something is to photocopy it, blowing your nose with a "Kleenex" means
you're using a facial tissue. To "google" means to search the Internet
for information. And a "computer hacker" can be:

an expert (or someone who is proficient) at programming and solving
problems with a computer (a computer buff);

Which is NOT the original definition of hacker.
a person who (uses programming skills to) illegally gains access to and
sometimes tampers with information in a computer system

Which is NOT the original definition of hacker.

The second definition is as inaccurate as the first.
Deal with it.

I deal with stupid people every day.
 
D

Dr John Stockton

JRS: In article <[email protected]>, seen in
news:comp.lang.javascript said:
Thomas said:
Your Question Mark key is borken. [psf 2.3]

No, it worked perfectly. 3 times in fact. On the contrary, its your
spellchecker that is *broken*.

And all this in a sub-thread about the meaning of the word "hacker" and
you continue to mis-spell the word broken? Interesting to say the least.

Little things please little minds.

Those considering the meaning of "hack", and thus "hacker", should
consult a proper printed dictionary of the English language, such as
Chambers'. The word has more established meanings than some of you are
aware of.

BTW, never accuse anyone who hacks of "hackery"; use "hacking". The
etymology of "hackery" is entirely different.
 
L

Lee

Ivan Marsh said:
Which is NOT the original definition of hacker.

The original definition of a word is often interesting
trivia, but it doesn't carry as much weight as you seem
to expect when discussing the current meaning of a word.

There are many examples of English words and phrases that
have evolved to mean exactly the opposite of their original
definitions.
 
T

Thomas 'PointedEars' Lahn

Randy said:
Thomas said:
Perry said:
OK, Richard... I am puzzled... what I am asking is related to hacking???
Your Question Mark key is borken. [psf 2.3]

No, it worked perfectly. 3 times in fact.

It seems more that it was pressed only once (as it is correct)
but returned three question marks. But you know what I mean.
On the contrary, its your spellchecker that is *broken*.

It is not, the typo os deliberate.
And all this in a sub-thread about the meaning of the word "hacker" and
you continue to mis-spell the word broken? Interesting to say the least.

Yes, because it is part of (hacker) jargon, as I have (or was it another
poster?) already explained. If you would have read the Jargon File
(maintained by Eric S. Raymond, one of the most famous hackers), you
would have known. I am beginning to get bored of you playing stupid.


PointedEars
 
T

Thomas 'PointedEars' Lahn

Randy said:
Thomas said:
Perry said:
OK, Richard... I am puzzled... what I am asking is related to
hacking???
Your Question Mark key is borken. [psf 2.3]

No, it worked perfectly. 3 times in fact.

It seems more that it was pressed only once (as it is correct)
but returned three question marks. But you knew what I meant.
On the contrary, its your spellchecker that is *broken*.

It is not (which spellchecker?), the typo is deliberate.
And all this in a sub-thread about the meaning of the word "hacker"
and you continue to mis-spell the word broken? Interesting to say the
least.

Yes, because it is part of (hacker) jargon, as I have (or was it another
poster then?) already explained. If you would have read the Jargon File
(maintained by Eric S. Raymond, one of the most famous hackers), you
would have known. I am beginning to get bored of you playing stupid.


PointedEars
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top