Frank,
Put a return false; into you click event and that should fix it.

On 9/13/07, FrankTudor <[EMAIL PROTECTED]> wrote:
>
>
> I'm in a secure environment, but you are right about the # in the url
> I put the hash marks in for testing.  Will this change when actual
> data is provided?  Pr should I leave the a href blank, since all I am
> using it for is to expand the div that holds the hidden data.
>
> Here is some sample code:
>
> <script type="text/javascript" src="js/jquery.js"></script>
> <script type="text/javascript">
>
> $(document).ready(function(){
>
>           $('div.tryIt:eq(0)> div').hide();
>           $('.tryIt:eq(0)> a').click(function()
>           {
>                 $(this).next().slideToggle('slow');
>           });
>
> });
>
> </script>
>
>
> <div class="tryIt">
> <hr>
>
> <h4><a href="approvalDetails.cfm">Approval Request 562 | Submitted By:
> Doug Beck | Date Submitted: 9/14/07</a></h4>
> <a href="#">View/Hide Comments</a>
> <div>
> <p align="left">
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras sit
> amet sapien eu nisi malesuada tincidunt. Aliquam erat volutpat. Mauris
> non dolor. Sed metus lacus, volutpat eget, euismod ut, blandit sit
> amet, quam. Phasellus feugiat mattis dolor. Praesent tincidunt nisl
> sed neque. Curabitur fringilla, enim ac vehicula lobortis, elit purus
> pharetra odio, vitae suscipit quam dui id pede. Cum sociis natoque
> penatibus et magnis dis parturient montes, nascetur ridiculus mus.
> Duis fermentum, metus eu facilisis sodales, elit velit euismod ante,
> vel faucibus neque purus et turpis. Praesent metus. Sed id orci.
> Vestibulum sodales felis nec neque. Duis dolor.
> </div>
> </p>
> <a href="#">View/Hide Attachments</a>
> <div>
> <p align="left">
> <a href="#">Filenet Document Or Link</a><br>
> <a href="#">Filenet Document Or Link</a><br>
> <a href="#">Filenet Document Or Link</a><br>
> </div>
>
> </div>
>
> On Sep 13, 2:44 pm, "Theodore Ni" <[EMAIL PROTECTED]> wrote:
> > Often this occurs when the onclick event for a link does not return
> false,
> > and then the browser loads the href, often # which moves the page to the
> > top. Is there a test page you can show us where this is happening for
> you?
> >
> > On 9/13/07, FrankTudor <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi have a page that has some javascript events basically I have the
> > > accordian effects in a page with repating data...It is fin until I get
> > > close to the bottom of the screen and expand the page.  Next thing I
> > > know I am back up towards the top of the page and have to scroll down
> > > to read the text.  I know there is a way to hold the page's position,
> > > but what function(s) would I be looking at?
> >
> > --
> > Ted
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to