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

HELP ME!

P: n/a
Hi,

I know this is possible but I can't figure out how to do it. OK. I have a
link (on a main windw) that opens up a pop up window (a smaller window) on
which is a menu. I want links from that window (the menu/smaller window) to
open links in the main window NOT a new browser window. How is this done?
---
Nicholas A. Kilduff
nk******@nmu.edu



Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
<nk******@nmu.edu> wrote:
I know this is possible but I can't figure out how to do it. OK. I have a
link (on a main windw) that opens up a pop up window (a smaller window) on
which is a menu. I want links from that window (the menu/smaller window) to
open links in the main window NOT a new browser window. How is this done?


Well, you can do it with Transitional HTML using the target attribute.
But are you sure that your readers *want* you to do that? What is the
advantage over putting the menu in the page just as most sites do?

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2

P: n/a
Stephen Poley <sb******************@xs4all.nl> wrote:
On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
<nk******@nmu.edu> wrote:
I know this is possible but I can't figure out how to do it. OK. I have a
link (on a main windw) that opens up a pop up window (a smaller window) on
which is a menu. I want links from that window (the menu/smaller window) to
open links in the main window NOT a new browser window. How is this done?


Well, you can do it with Transitional HTML using the target attribute.


No you can't. The original window normally has no name and hence can
not be targetted.

As the OP seems to be opening a new window with javascript (mention of
it being a 'smaller window' somewhat suggests that) then he can refer
to the original window via the window.opener property. Google can find
the details.

And we just have to hope that the site isn't already fatally screwed
when JS isn't available. :-(

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
So will someone tell me how to do it? Thanks!

--
---
Nicholas A. Kilduff
nk******@nmu.edu


"Steve Pugh" <st***@pugh.net> wrote in message
news:2h********************************@4ax.com...
Stephen Poley <sb******************@xs4all.nl> wrote:
On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
<nk******@nmu.edu> wrote:
I know this is possible but I can't figure out how to do it. OK. I have alink (on a main windw) that opens up a pop up window (a smaller window) onwhich is a menu. I want links from that window (the menu/smaller window) toopen links in the main window NOT a new browser window. How is this
done?
Well, you can do it with Transitional HTML using the target attribute.


No you can't. The original window normally has no name and hence can
not be targetted.

As the OP seems to be opening a new window with javascript (mention of
it being a 'smaller window' somewhat suggests that) then he can refer
to the original window via the window.opener property. Google can find
the details.

And we just have to hope that the site isn't already fatally screwed
when JS isn't available. :-(

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>

Jul 20 '05 #4

P: n/a
Nicholas Allen Kilduff wrote:
So will someone tell me how to do it? Thanks!
Please quote at least something relevent. Out of context, "HELP ME! Will
someone tell me how to do it?" is meaningless (and with a subject like
that, you will be ignored by some peopleĀ¹).

As Steve said:
As the OP seems to be opening a new window with javascript (mention of
it being a 'smaller window' somewhat suggests that) then he can refer
to the original window via the window.opener property. Google can find
the details.


You've been given the name of the property you need to use, do you really
need help looking up a property and using it? If you ask a sensible
question, then you'll usually get a useful answer. But don't ask us to
write your code for you!

Ā¹ <URL:http://www.catb.org/~esr/faqs/smart-questions.html#bespecific>

--
Jim Dabell

Jul 20 '05 #5

P: n/a
On Tue, 17 Feb 2004 13:32:10 -0500, Nicholas Allen Kilduff
<nk******@nmu.edu> wrote:
So will someone tell me how to do it? Thanks!

As was explained to you, it isn't very easy to do well. See, to affect
another window with target, that window must have a name. Unless your
first window was a generated window it can't have a target name.

You "could" set up a frameset with a named window within at your original
location, and then open a new window to reflexively affect the old window.
But this is functionally retarded and the only way to make it work where
the user can bookmark and easily figure out where they are is to go to
Popup City.

Maybe the reason everyone's so circumspect with you is that it's a really
poor thing to do for many reasons - and that's why they, and now I, ask
you why this cannot be a normal single-browser linking situation? Anytime
you request a popup you're going to confuse, piss off, or just plain lose
visitors.
Jul 20 '05 #6

P: n/a
In article <c0***********@walter.acs.nmu.edu>, nk******@nmu.edu
enlightened us with...
So will someone tell me how to do it? Thanks!


Take A and put in slot B.

IOW, not everyone sees all posts. Quote what you're asking.

As to how to target a link to an opener...

A link on a page opens a new window. I assume this is done with
javascript similar to as follows:

<a href="someUrl.com"
onClick="window.open('someUrl.com','','');return false;">link</a>

Note: some popup blockers may kill this. Some allow it because it is the
direct result of a user action.

In that new window, you want links to target the opener.
You would do that as follows:
<a href="someUrl.com"
onClick="window.opener.location='someUrl.com';retu rn false;">link</a>

Note: If a user opened the link on the main window with a middle mouse
click, resulting in it being opened in a new tab (opera, mozilla,
netscape), this dies (I think). If the main page is a frameset, and you
want the whole frameset to change, add "top." after "opener." above.

Note 2: while putting the pages in the href means people with script
disabled can still use the site, the mere fact that the opened window is
a menu means that navigation is disabled for these people. This means
that the site is useless for some people, especially those with special
browsers like people who are visually impaired.

Make a page that works with no CSS and no javascript. Then enhance it
with CSS and javascript.

HTH

--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #7

P: n/a
Kaeli,

Thank you. To the rest of you, woh! Take it easy. Grab a beer and a
cigarette OK! My god. Oh, my question wasn't geek talk, oh oh oh. Oh
don't make us write code for you. Loosen up man! Come on already... just
breath.

---
Nicholas A. Kilduff
nk******@nmu.edu
Jul 20 '05 #8

P: n/a
On Tue, 17 Feb 2004 17:26:47 +0000, Steve Pugh <st***@pugh.net> wrote:
Stephen Poley <sb******************@xs4all.nl> wrote:
On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
<nk******@nmu.edu> wrote:
I know this is possible but I can't figure out how to do it. OK. I have a
link (on a main windw) that opens up a pop up window (a smaller window) on
which is a menu. I want links from that window (the menu/smaller window) to
open links in the main window NOT a new browser window. How is this done?
Well, you can do it with Transitional HTML using the target attribute.

No you can't. The original window normally has no name and hence can
not be targetted.
True, I should perhaps have mentioned that you must first generate the
large window via 'target' as well. But it wasn't the issue foremost in
my mind.
As the OP seems to be opening a new window with javascript (mention of
it being a 'smaller window' somewhat suggests that) then he can refer
to the original window via the window.opener property. Google can find
the details.
OK, I'll file that away in the back of my mind as one of the many pieces
of trivia I never expect to use. ;-)
And we just have to hope that the site isn't already fatally screwed
when JS isn't available. :-(


My thoughts exactly.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #9

P: n/a
In article <c0**********@walter.acs.nmu.edu>,
"Nicholas Allen Kilduff" <nk******@nmu.edu> wrote:
Thank you. To the rest of you, woh! Take it easy. Grab a beer
Alcohol kills.
and a
cigarette OK!
Smoking kills.
My god. Oh, my question wasn't geek talk, oh oh oh. Oh
don't make us write code for you. Loosen up man! Come on already... just
breath.


Grow skin, welcome to Usenet.

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #10

P: n/a
In article <c0**********@walter.acs.nmu.edu>, nk******@nmu.edu
enlightened us with...
Kaeli,

Thank you. To the rest of you, woh! Take it easy. Grab a beer and a
cigarette OK! My god. Oh, my question wasn't geek talk, oh oh oh. Oh
don't make us write code for you. Loosen up man! Come on already... just
breath.


hehe

Welcome to Usenet. ;)

--
--
~kaeli~
Never argue with an idiot! People may not be able to tell
you apart.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #11

P: n/a
Nicholas Allen Kilduff wrote:

To the rest of you, woh! Take it easy. Grab a beer and a
cigarette OK! My god. Oh, my question wasn't geek talk, oh oh oh. Oh
don't make us write code for you. Loosen up man! Come on already... just
breath.


What are you talking about? Had you quoted a little, we might have
some idea.

bye.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #12

P: n/a
Kris wrote:
Grow skin, welcome to Usenet.


That I like. Good advice; must try harder to take it myself :)

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.