By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,472 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,472 IT Pros & Developers. It's quick & easy.

Javascript popup from popup

P: n/a
I have a popup window that opens using the following function. Unfortunately
when this function (or any other popup generating function) is called from
*within* a popup, it opens it within the current popup (i.e. it doesn't
spawn another child popup).

How can I get it to open up another popup window?

function popobjed(url)
{
var newwindow;
newwindow=window.open(url,'name','toolbar=0,scroll bars=1,location=0,statusbar=0,menubar=0,resizable= 0,width=600,height=500,left
= 100,top = 100');
if (window.focus) {newwindow.focus()}
}
Sep 14 '05 #1
Share this Question
Share on Google+
19 Replies


P: n/a
Davey wrote:

<snip>
How can I get it to open up another popup window?

function popobjed(url)
{
var newwindow;
newwindow=window.open(url,'name','toolbar=0,scroll bars=1,location=0,statusbar=0,menubar=0,resizable= 0,width=600,height=500,left = 100,top = 100');
if (window.focus) {newwindow.focus()}
}


Hi,

Before answering your question:
Stop posting to multiple newsgroups please.
It is considered rude and even stupid.
I know a lot of people who don't even bother to respond when they notice
that.

To solve your problem:
Try giving it another name.
Now your name is 'name' for all windows as far as I can see.

And also reconsider your design, since most people are forced to use
popup-blockers, since they get so many......

Regards,
Erwin Moller
Sep 14 '05 #2

P: n/a
Davey wrote:
I have a popup window that opens using the following function. Unfortunately
when this function (or any other popup generating function) is called from
*within* a popup, it opens it within the current popup (i.e. it doesn't
spawn another child popup).
You need do define another name for your window. This is done using the
second argument in your open method. You may simply just add the current
timestamp:
newwindow=window.open(url,'name', ...


newwindow=window.open(url,'name'+(new Date().getTime()), ...

Daniel
Sep 14 '05 #3

P: n/a
Davey wrote:
when this function (or any other popup generating function) is called
from *within* a popup, it opens it within the current popup (i.e. it
doesn't spawn another child popup).
How can I get it to open up another popup window?

newwindow=window.open(url,'name','toolbar=0,scroll bars=1,location=0,statusbar=0,menubar=0,resizable= 0,width=600,height=500,left


The second argument is the window name. If you give the same window name
each time, it will reuse the same window object.

Make the name different each time. If you want to guarantee a new window,
use the window name "_blank"

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Sep 14 '05 #4

P: n/a
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
Davey wrote:

<snip>
How can I get it to open up another popup window?

function popobjed(url)
{
var newwindow;
newwindow=window.open(url,'name','toolbar=0,scroll bars=1,location=0,statusbar=0,menubar=0,resizable= 0,width=600,height=500,left
= 100,top = 100');
if (window.focus) {newwindow.focus()}
}


Hi,


Hi.
Before answering your question:
Stop posting to multiple newsgroups please.
No. Both newsgroups I posted to were relevant.
It is considered rude and even stupid.
I consider people inferring that I am stupid to be rude and stupid.
I know a lot of people who don't even bother to respond when they notice
that.


Enough people respond anyway so I don't care.
Sep 15 '05 #5

P: n/a
Davey wrote:

<snip>
How can I get it to open up another popup window?

function popobjed(url)
{
var newwindow;
newwindow=window.open(url,'name','toolbar=0,scroll bars=1,location=0,statusbar=0,menubar=0,resizable= 0,width=600,height=500,left
= 100,top = 100');
if (window.focus) {newwindow.focus()}
}


Hi,


Hi.
Before answering your question:
Stop posting to multiple newsgroups please.


No. Both newsgroups I posted to were relevant.


That is not the point.
I didn't claim they were not relevant, I just told you it is considered rude
to post the same question to more groups.
This leads to people responding in 1 ng, and others in the other.
etc.
result-> Broken threads and a mess.

But if you don't give a damn, and only want to be a wisecrack, be my guest.
It is considered rude and even stupid.
I consider people inferring that I am stupid to be rude and stupid.


fine with me.
I know a lot of people who don't even bother to respond when they notice
that.


Enough people respond anyway so I don't care.


Really?
That sounds to me like: "My car didn't get a scratch driving over the
schoolclass, so why should I care?"

There are more things in life than your ego.

Anyway, nice talking to you....
It is also great you let me know if the solution I suggested worked.

Regards,
Erwin Moller
Sep 15 '05 #6

P: n/a
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
Davey wrote:
Enough people respond anyway so I don't care.
Really?
That sounds to me like: "My car didn't get a scratch driving over the
schoolclass, so why should I care?"


Hmmmm comparing crossposting to mass murder. Stop being so pathetic and get
a sense of perspective.
There are more things in life than your ego.


Yes, newsgroups are clearly the most important thing in your sad existence.
Sep 15 '05 #7

P: n/a
Davey wrote:
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
Davey wrote:
Enough people respond anyway so I don't care.


Really?
That sounds to me like: "My car didn't get a scratch driving over the
schoolclass, so why should I care?"


Hmmmm comparing crossposting to mass murder. Stop being so pathetic and
get a sense of perspective.
There are more things in life than your ego.


Yes, newsgroups are clearly the most important thing in your sad
existence.


Hi Davey,

Do you enjoy insulting people?
I was trying to help you with your problem, and asking you to pay attention
to nettiquette/good NG-usage.
And this is the response I get?

Then you conclude with my 'sad existence' ?
You are one of those kind that enjoy their anonymousity so much on the net
that you use it as a channel for your silly frustrations.
Stop that please.

While you try to get more wisecracks and insults out, I am trying to help
people.
Get a mirror and have the courage to look into it.

Regards,
Erwin Moller
Sep 15 '05 #8

P: n/a
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...

I was trying to help you with your problem, and asking you to pay
attention
to nettiquette/good NG-usage.


No, it was your irritating and condescending tone that provoked this
response. Call this a lesson learned and improve your manner in future.
Sep 15 '05 #9

P: n/a
Davey wrote:
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...

I was trying to help you with your problem, and asking you to pay
attention
to nettiquette/good NG-usage.


No, it was your irritating and condescending tone that provoked this
response. Call this a lesson learned and improve your manner in future.


I'll try to get a different tone, no problem.
I am not natively speaking english, so I might very well make mistakes.

But other lessons learned for me?
Yeah one: You are an arrogant unfriendly person.

Don't bother to answer, this is the last response you get from me: You are
blacklisted on my newsreader now.

Enjoy your life.

Erwin
Sep 15 '05 #10

P: n/a
I was trying to help you with your problem, and asking you to pay
attention
to nettiquette/good NG-usage.


No, it was your irritating and condescending tone that provoked this
response. Call this a lesson learned and improve your manner in future.


no it was yours and I doubt you will get much help from the NG in future.
Sep 15 '05 #11

P: n/a
"Zoe Brown" <zo***********@N-O-S-P-A-A-Mtesco.net> wrote in message
news:Ic*****************@newsfe7-win.ntli.net...
I was trying to help you with your problem, and asking you to pay
attention
to nettiquette/good NG-usage.


No, it was your irritating and condescending tone that provoked this
response. Call this a lesson learned and improve your manner in future.


no it was yours and I doubt you will get much help from the NG in future.


Yes, because it's impossible for me to change my already made-up name isn't
it?
Sep 15 '05 #12

P: n/a
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
But other lessons learned for me?
Yeah one: You are an arrogant unfriendly person.


Oh the irony of it!

http://dictionary.reference.com/search?q=irony
Sep 15 '05 #13

P: n/a
JRS: In article <43***********************@news.xs4all.nl>, dated Wed,
14 Sep 2005 17:57:01, seen in news:comp.lang.javascript, Erwin Moller
<si******************************************@spam yourself.com> posted :
Before answering your question:
Stop posting to multiple newsgroups please.
It is considered rude and even stupid.


Cross-posting in moderation is perfectly acceptable. This is not the
Fourth Reich, and the rules of the German hierarchy have no place here.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Sep 15 '05 #14

P: n/a
Dr John Stockton <jr*@merlyn.demon.co.uk> wrote:
Cross-posting in moderation is perfectly acceptable. This is not the
Fourth Reich, and the rules of the German hierarchy have no place here.


OP multi-posted, rather than crossposting, although the reaction was a
little more like comp.lang.c than perhaps would have been appropriate.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 15 '05 #15

P: n/a
Davey <da***@hello.com> wrote:
No. Both newsgroups I posted to were relevant.


In such cases, a cross-post is appropriate. What you did -
multi-posting - is always a bad idea. Google, or ask in an
appropriate venue, how to cross-post with your newsreader, and do try
not to make enemies of the inhabitants. That, too, is always a bad
idea.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 15 '05 #16

P: n/a
Christopher Benson-Manica wrote:
Dr John Stockton wrote:
Cross-posting in moderation is perfectly acceptable. This
is not the Fourth Reich, and the rules of the German
hierarchy have no place here.


OP multi-posted, rather than crossposting, although the
reaction was a little more like comp.lang.c than perhaps
would have been appropriate.


The OP carries the header:-

Newsgroups: comp.lang.javascript,microsoft.public.scripting.js cript

- which is a cross-post. It is certainly not an excessive cross-post and
the two groups have subjects that significantly overlap so I cannot see
any reasonable grounds for objection.

The comp.lang.javascritp FAQ makes contains no injunction against
cross-posting (as such). I don't know whether
microsoft.public.scripting.jscript expresses an attitude on the subject.

The message may also have been mulit-posted, but it is impossible for me
to tell that from what I have seen.

Richard.
Sep 16 '05 #17

P: n/a
Richard Cornford <Ri*****@litotes.demon.co.uk> wrote:
The OP carries the header:- Newsgroups: comp.lang.javascript,microsoft.public.scripting.js cript
My apologies, I see now that m.p.s.j had been subsequently removed.
The message may also have been mulit-posted, but it is impossible for me
to tell that from what I have seen.


I'm ready to retract my claim to that effect.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 16 '05 #18

P: n/a
"Christopher Benson-Manica" <at***@nospam.cyberspace.org> wrote in message
news:dg**********@chessie.cirr.com...
Richard Cornford <Ri*****@litotes.demon.co.uk> wrote:
The OP carries the header:-

Newsgroups: comp.lang.javascript,microsoft.public.scripting.js cript


My apologies, I see now that m.p.s.j had been subsequently removed.


Apology accepted Christopher.

It's nice also to see that some people are prepared to defend others against
newsgroup Nazis.
Sep 16 '05 #19

P: n/a
JRS: In article <dg**********@chessie.cirr.com>, dated Thu, 15 Sep 2005
19:22:26, seen in news:comp.lang.javascript, Christopher Benson-Manica
<at***@nospam.cyberspace.org> posted :
Dr John Stockton <jr*@merlyn.demon.co.uk> wrote:
Cross-posting in moderation is perfectly acceptable. This is not the
Fourth Reich, and the rules of the German hierarchy have no place here.


OP multi-posted, rather than crossposting, although the reaction was a
little more like comp.lang.c than perhaps would have been appropriate.


The original article was cross-posted to
comp.lang.javascript and microsoft.public.scripting.jscript.

But my comment was not referring to the OP - as you should have noticed,
I did not quote him - but only to what Erwin Moller write.

PKUATBT.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>.
Do not Mail News to me. Before a reply, quote with ">" or "> " (SoRFC1036)
Sep 16 '05 #20

This discussion thread is closed

Replies have been disabled for this discussion.