Jump to content


Photo

Click link


  • Please log in to reply
7 replies to this topic

#1 jaymc

jaymc
  • Members
  • PipPipPip
  • Advanced Member
  • 1,521 posts
  • LocationLiverpool

Posted 30 September 2006 - 03:15 PM

I want to have a popup load on my site and when you click a link on that site the URL loads in the base site

Obviously I know how to get the popup working etc, its just getting any link clicked to load in the base site

target=?
I would love to change the world, but they won't give me the source code

SEO Agency

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 30 September 2006 - 03:31 PM

usually, you can get a new window to load in the parent window by calling target="_parent" as an attribute of the anchor tags. otherwise, you can name your parent window and actually target by name
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 jaymc

jaymc
  • Members
  • PipPipPip
  • Advanced Member
  • 1,521 posts
  • LocationLiverpool

Posted 30 September 2006 - 03:57 PM

Targetting to _parent doesnt work btw

How do you name the parent window?
I would love to change the world, but they won't give me the source code

SEO Agency

#4 jaymc

jaymc
  • Members
  • PipPipPip
  • Advanced Member
  • 1,521 posts
  • LocationLiverpool

Posted 30 September 2006 - 04:46 PM

Edit :

After a bit of research ive found you set the name of a window via javascript

window.name = "base";

So, im now trying to open up a URL from a popup to the base window via

OnClick=window.base.location=site.com

Its not working though. Any help?

I would love to change the world, but they won't give me the source code

SEO Agency

#5 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 30 September 2006 - 05:00 PM

once you name the main window "base", try doing what i suggested above:
<a href="yourURL" target="base">Your Text</a>

You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#6 jaymc

jaymc
  • Members
  • PipPipPip
  • Advanced Member
  • 1,521 posts
  • LocationLiverpool

Posted 30 September 2006 - 05:52 PM

Yeh thats the first thing I tried

It doesnt work
I would love to change the world, but they won't give me the source code

SEO Agency

#7 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 01 October 2006 - 09:20 AM

Try
base.location.href='site.com'


#8 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 01 October 2006 - 01:31 PM

target = opener (that's the parent of the pop-up)

http://www.hwg.org/r...faqs/jsFAQ.html - see item 4
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users