Re: iframe scrolling



On Aug 7, 12:42 pm, spinybabler <spineybabb...@xxxxxxxxx> wrote:
On Aug 7, 12:33 am, Herbert Blenner <a1ea...@xxxxxxxxxxx> wrote:





On Aug 6, 1:42 pm, spinybabler <spineybabb...@xxxxxxxxx> wrote:

Hi,

I have a iframe where there is an html page with image map loaded. I
have set scrolling to Auto. Whenever I scroll down or to the side and
then click on an image area, the iframe resets to the top position.
The problem is i need it to be in the same position as it was before
it was clicked. My onclick event simply displays a div with a border
over the area to mark it as highlighted. So i want the page to remain
in its position.

This should be simple i think but couldn't figure out how. I would
highly appreciate your help.

Thanks

Does your event handler contain return false?

Example: onclick="dosomething();return false"

Herbert

@Herbert: Yes i do return false.

@dorayme: it's not yet a public url. just started on it.

Thanks
It worked. Initially i was returning false from the event handler
function itself and it didn't work. But now I returned false like u
showed in the example: eventHandler(); return false; And it worked.
Isn't both supposed to be same?

Anyway thanks a lot for the help.
.



Relevant Pages

  • Re: iframe scrolling
    ... have set scrolling to Auto. ... then click on an image area, the iframe resets to the top position. ... My onclick event simply displays a div with a border ...
    (alt.html)
  • Re: iframe scrolling
    ... I have a iframe where there is an html page with image map loaded. ... have set scrolling to Auto. ... then click on an image area, the iframe resets to the top position. ... My onclick event simply displays a div with a border ...
    (alt.html)
  • Re: iframe scrolling
    ... I have a iframe where there is an html page with image map loaded. ... have set scrolling to Auto. ... then click on an image area, the iframe resets to the top position. ...
    (alt.html)