Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:40 PM
Nicholas Allen Kilduff
Guest
 
Posts: n/a
Default HELP ME!

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
nkilduff@nmu.edu







  #2  
Old July 20th, 2005, 06:40 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: HELP ME!

On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
<nkilduff@nmu.edu> wrote:
[color=blue]
>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?[/color]

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/
  #3  
Old July 20th, 2005, 06:40 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: HELP ME!

Stephen Poley <sbpoleySpicedHamTrap@xs4all.nl> wrote:[color=blue]
>On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
><nkilduff@nmu.edu> wrote:
>[color=green]
>>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?[/color]
>
>Well, you can do it with Transitional HTML using the target attribute.[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 06:40 PM
Nicholas Allen Kilduff
Guest
 
Posts: n/a
Default Re: HELP ME!

So will someone tell me how to do it? Thanks!

--


---
Nicholas A. Kilduff
nkilduff@nmu.edu






"Steve Pugh" <steve@pugh.net> wrote in message
news:2hj4301e6dq4a65k7t9tda7e6o6t0iq5rq@4ax.com...[color=blue]
> Stephen Poley <sbpoleySpicedHamTrap@xs4all.nl> wrote:[color=green]
> >On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
> ><nkilduff@nmu.edu> wrote:
> >[color=darkred]
> >>I know this is possible but I can't figure out how to do it. OK. I[/color][/color][/color]
have a[color=blue][color=green][color=darkred]
> >>link (on a main windw) that opens up a pop up window (a smaller window)[/color][/color][/color]
on[color=blue][color=green][color=darkred]
> >>which is a menu. I want links from that window (the menu/smaller[/color][/color][/color]
window) to[color=blue][color=green][color=darkred]
> >>open links in the main window NOT a new browser window. How is this[/color][/color][/color]
done?[color=blue][color=green]
> >
> >Well, you can do it with Transitional HTML using the target attribute.[/color]
>
> 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 <steve@pugh.net> <http://steve.pugh.net/>[/color]


  #5  
Old July 20th, 2005, 06:40 PM
Jim Dabell
Guest
 
Posts: n/a
Default Re: HELP ME!

Nicholas Allen Kilduff wrote:
[color=blue]
> So will someone tell me how to do it? Thanks![/color]

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:
[color=blue]
> 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.[/color]

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

  #6  
Old July 20th, 2005, 06:40 PM
Neal
Guest
 
Posts: n/a
Default Re: HELP ME!

On Tue, 17 Feb 2004 13:32:10 -0500, Nicholas Allen Kilduff
<nkilduff@nmu.edu> wrote:
[color=blue]
> So will someone tell me how to do it? Thanks!
>[/color]


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.
  #7  
Old July 20th, 2005, 06:40 PM
kaeli
Guest
 
Posts: n/a
Default Re: HELP ME!

In article <c0tmna$303q$1@walter.acs.nmu.edu>, nkilduff@nmu.edu
enlightened us with...[color=blue]
> So will someone tell me how to do it? Thanks!
>
>[/color]

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

  #8  
Old July 20th, 2005, 06:40 PM
Nicholas Allen Kilduff
Guest
 
Posts: n/a
Default Re: HELP ME!

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
nkilduff@nmu.edu


  #9  
Old July 20th, 2005, 06:41 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: HELP ME!

On Tue, 17 Feb 2004 17:26:47 +0000, Steve Pugh <steve@pugh.net> wrote:
[color=blue]
>Stephen Poley <sbpoleySpicedHamTrap@xs4all.nl> wrote:[color=green]
>>On Tue, 17 Feb 2004 08:41:38 -0500, "Nicholas Allen Kilduff"
>><nkilduff@nmu.edu> wrote:
>>[color=darkred]
>>>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?[/color]
>>
>>Well, you can do it with Transitional HTML using the target attribute.[/color][/color]
[color=blue]
>No you can't. The original window normally has no name and hence can
>not be targetted.[/color]

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.
[color=blue]
>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.[/color]

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. ;-)
[color=blue]
>And we just have to hope that the site isn't already fatally screwed
>when JS isn't available. :-([/color]

My thoughts exactly.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
  #10  
Old July 20th, 2005, 06:41 PM
Kris
Guest
 
Posts: n/a
Default Re: HELP ME!

In article <c0uab6$3gt$1@walter.acs.nmu.edu>,
"Nicholas Allen Kilduff" <nkilduff@nmu.edu> wrote:
[color=blue]
> Thank you. To the rest of you, woh! Take it easy. Grab a beer[/color]

Alcohol kills.
[color=blue]
> and a
> cigarette OK![/color]

Smoking kills.
[color=blue]
> 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.[/color]

Grow skin, welcome to Usenet.

--
Kris
<kristiaan@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
  #11  
Old July 20th, 2005, 06:41 PM
kaeli
Guest
 
Posts: n/a
Default Re: HELP ME!

In article <c0uab6$3gt$1@walter.acs.nmu.edu>, nkilduff@nmu.edu
enlightened us with...[color=blue]
> 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.
>[/color]

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

  #12  
Old July 20th, 2005, 06:45 PM
Brian
Guest
 
Posts: n/a
Default Re: HELP ME!

Nicholas Allen Kilduff wrote:[color=blue]
>
> 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.[/color]

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/

  #13  
Old July 20th, 2005, 06:45 PM
Michael Rozdoba
Guest
 
Posts: n/a
Default Re: HELP ME!

Kris wrote:
[color=blue]
> Grow skin, welcome to Usenet.[/color]

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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles