Professional Web Applications Themes

Prevent scroll in parent window? - Macromedia Dreamweaver

My page consists of a large graphic (an organization chart). I'm using an image map with hotspots to allow the user to click on any node of the organization chart, then a window pops up with explanatory text, etc. next to the node. When the user clicks anywhere outside the popup window, it automatically closes. All this (javascript) works correctly, with one annoyance: If the user has scrolled down to see the bottom of the chart, then clicks on one of the hotspots at the bottom, the popup window appears but the main window scrolls back up to the top. ...

  1. #1

    Default Prevent scroll in parent window?

    My page consists of a large graphic (an organization chart). I'm using an image map with hotspots to allow the user to click on any node of the organization chart, then a window pops up with explanatory text, etc. next to the node. When the user clicks anywhere outside the popup window, it automatically closes. All this (javascript) works correctly, with one annoyance: If the user has scrolled down to see the bottom of the chart, then clicks on one of the hotspots at the bottom, the popup window appears but the main window scrolls back up to the top. Is there a way to prevent this?

    Thanks,

    Susan Robbins


    macounsr webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Prevent scroll in parent window?

    How are you linking your hotspots? Can you post a code snippet?

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)
    David R. Wheeler Guest

  3. #3

    Default Re: Prevent scroll in parent window?

    On Mon, 28 Jul 2003 02:00:10 +0000 (UTC), "macounsr"
    [email]webforumsusermacromedia.com[/email] wrote:
    >My page consists of a large graphic (an organization chart). I'm using
    >an image map with hotspots to allow the user to click on any node of
    >the organization chart, then a window pops up with explanatory text,
    >etc. next to the node. When the user clicks anywhere outside the popup
    >window, it automatically closes. All this (javascript) works
    >correctly, with one annoyance: If the user has scrolled down to see
    >the bottom of the chart, then clicks on one of the hotspots at the
    >bottom, the popup window appears but the main window scrolls back up
    >to the top. Is there a way to prevent this?
    That's because you used the octothorpe # as the URL for the link. Some
    browsers interpret that as a link to a named anchor on the page, but
    there is no anchor that matches it because no name is specified. See
    [url]http://apptools.com/rants/popups.php[/url].


    Gary
    Gary White Guest

  4. #4

    Default Re: Prevent scroll in parent window?

    Thanks! Changing the link field from "#" to "javascript:;" did the trick.



    macounsr webforumsuser@macromedia.com Guest

  5. #5

    Smile Re: Prevent scroll in parent window?

    I had the same issue. The fix worked for me too. Thanks Gary!
    Saurabh0806 Guest

Similar Threads

  1. Contact Form (php) - how to prevent new window
    By yself in forum Macromedia Flash Data Integration
    Replies: 2
    Last Post: June 4th, 11:51 AM
  2. can a popup window return data to parent window?
    By nadia in forum PHP Development
    Replies: 3
    Last Post: September 25th, 08:05 PM
  3. pdating parent window from popup....
    By sri in forum ASP.NET General
    Replies: 2
    Last Post: August 7th, 05:49 PM
  4. Refresh a parent window???
    By Helixpoint in forum ASP.NET General
    Replies: 1
    Last Post: July 3rd, 02:41 PM
  5. Replies: 2
    Last Post: June 30th, 06:37 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139