Prevent scroll in parent window?

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  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. Similar Questions and Discussions

    1. Contact Form (php) - how to prevent new window
      My contact form works just fine, however, I currently have the target set to "_blank" which is not what I want. Rather than opening the .php file...
    2. can a popup window return data to parent window?
      Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user...
    3. pdating parent window from popup....
      hi All: This is the situaton.. I have a treeview with nodes in an aspx page. The node data is coming from DB. when i select a node and click add...
    4. Refresh a parent window???
      I have a frameset. left and main. Inside the main frame I have a IFRAME. I need to refresh the main frame when I post a form inside the IFRAME. I am...
    5. Refresh Parent window from child window causes problems
      Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence...
  3. #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

  4. #3

    Default Re: Prevent scroll in parent window?

    On Mon, 28 Jul 2003 02:00:10 +0000 (UTC), "macounsr"
    [email]webforumsuser@macromedia.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

  5. #4

    Default Re: Prevent scroll in parent window?

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



    macounsr webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may 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