Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

example of scroll problem

Status
Not open for further replies.

derekjopaz

Programmer
Nov 3, 2001
7
GB
I posted this a few days ago.. no replies so i thought i'd try again with an example... an example of the below can be seen at
**********

I am experiencing a problem on a couple of my pages.
Say I have a window open and i have scrolled partially
down the window (e.g a catalogue list). I click on a link
which opens href in a new window (e.g. product detail
screen)...fine... but the parent catalogue window scrolls
back to the top of the page. Not very useful if i wish to
continue browsing.
I also get the same problem if the 'catalogue window' is
in a frame and the 'detail' target is in second frame...
the parent frames scrolls back to the top.
This 'problem' does not happen on ie4.
Anyone any ideas... at my wits end on this.
Derek
 
I'm no expert on JS, but wouldn't the use of reloadPage mean that the scrollbar would be reset to the top? Just a thought.
 
thanks for the rply Paul but..
the reload will should only cause this for a navigator window. (i have tried removing the call to check but the problem still exists)
Anyone else?
 
Hi Derek,

I have no experience (I mean with DOM etc.) with the browsers IE5.5 and NN6 . Because I use IE4.0 and NN4.73 I could only tested it in NN4.73 for you.

I don't understand your complex coding about the links in "subf1.htm", so I brought back the 3 link to the simple HTML basic's :

<A href=&quot;javascript:MM_openBrWindow('./chwin.htm','results2','scrollbars=yes,width=400,height=4
80')&quot;>link to open content in a new window</A>

<A href=&quot;./subf3.htm&quot; target=&quot;mainpic&quot;>link to fire up sub frame content</A>

<A href=&quot;./subf2.htm&quot; target=&quot;mainpic&quot;>text link reset subframe content</A>

And that works perfect in NN4.73

Hope this helps you,
Erik
 
ok boomerang,
yeah that does work... should have spotted that...never mind...The onClick was there as i was doing somme other stuff on it as well which is no longer needed. I'll go with the simple for now and if i have to go back to the complicated i'll just post again somewhere!!
Thanks for that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top