A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Remote Window Problem

  1. #1
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    Hey guys...I can't figure this out..

    I need to make this popup window image link point to the window behind itself...I keep trying to find these remote scripts but all of them have scripts that start with a window.open function and I already have that programmed...I need just the script to make the links within the popup to change the "main" browser window beneath. Here's a link to the site I'm trying to make this happen at. When the popup window comes up I need the "Order Now" graphic link to change the background main window to the order page....how is this done...I'm going nuts!! Check out my scripts within the main window at:

    http://www.activemailorder.com

    the "order now" link is within the popup window on the first page that comes up: index.html

    THanks for any help!!!

  2. #2
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    what script are using on that link?

    the window that opened that popup will be refered to as 'opener' for obvious reasons, so have you tried

    <a href="javacript: opener.location.href='yourorderpage.htm'">

    yet?
    [Edited by aversion on 07-01-2002 at 06:56 PM]

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    I don't know enough about javascript yet to know what your talking about.

  4. #4
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    sorry

    your graphic in the popup window has a link attached yes?

    put that above code in the <a> tag that defines that link for your graphic and change the url to the url you want to appear in the main window.

    then when you click the graphic on the popup that url will open in the main window.

    try it



  5. #5
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    I did that and it said invalid syntax error...it didn't open it in the other window either...I'm using an image map also here's what it is:
    <map name="Map">
    <area shape="rect" coords="238,70,326,106" href="flipstart2.html">
    <area shape="rect" coords="6,41,106,61" href="javacriptpener.location.href='www.activemailorder.com/goshoppingset.html">
    </map>

    I think where it says href='whatever' the ' is changing itself to %27

  6. #6
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    it should be 'javascript' not 'javacript', my typo in the original post

    try that



  7. #7
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    This is going to sound really stupid but how do I name my original window that it's popping out of?..with a script? What is it?

    Much thanks!!

  8. #8
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    the original window that spawned the popup is always called 'opener'





  9. #9
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    yes...but how do you label it?


  10. #10
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    your code should look like this:

    <map name="Map">
    <area shape="rect" coords="238,70,326,106" href="flipstart2.html">
    <area shape="rect" coords="6,41,106,61" href="javascript: opener.location.href='www.activemailorder.com/goshoppingset.html">
    </map>

    you refer to the original window's url thus

    opener.location.href="someurl.htm"

    there's no need to label it other than calling it 'opener' though you can, just not sure how that would work.




  11. #11
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    I finally got it to work the way I wanted it to...thanks for all your help man! you rock!

    Thanks again!

  12. #12
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    glad it worked out.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center