It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

page keeps returning to the top

page keeps returning to the top

Postby qen on Thu Oct 23, 2008 11:56 pm

The following page has an #bottom request which links to a piece of .js to make it flow nicely to the bottom of the screen, but when I added the JQuery (green) button the page just kept returning to the top.

Why is it doing this?

Click the "Description" button to see:

http://lovelago.googlepages.com/test8.html
qen
 
Posts: 28
Joined: Wed Oct 22, 2008 7:10 pm

Postby rangana on Fri Oct 24, 2008 12:10 am

That's odd, it only appears to be happening only on IE.

Have you tried to report the bug on JQUEry on the easing plugin?
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby qen on Fri Oct 24, 2008 12:38 am

Nope. But I should think its my implementation of the code. I am using FireFox btw.
qen
 
Posts: 28
Joined: Wed Oct 22, 2008 7:10 pm

Postby rangana on Fri Oct 24, 2008 12:42 am

Problem is not reproducible on FF, is it on your end?
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

it must be v2 FF

Postby qen on Fri Oct 24, 2008 12:50 am

Yes, that's what I use. You mean to say that the website does not scroll back to the top? I am using v2.0.0.14. You know what. Its not happening in Safari. So it's my old browser, sorry about that.
qen
 
Posts: 28
Joined: Wed Oct 22, 2008 7:10 pm

Postby rangana on Fri Oct 24, 2008 1:43 am

I'm using FF3, and it's normal the same as Opera and Safari.

IE is the only browser at my end which fails.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby qen on Fri Oct 24, 2008 1:48 am

The thing is, in FF2 anyway the animation of that green button occurs at the top left of the screen but the button is at the bottom right, naturally I want the animation at the bottom right, any help with that please ..is it a CSS problem?

Sorry, I'm just sticking stuff together here, trying to make a nice site. Trying my best.
qen
 
Posts: 28
Joined: Wed Oct 22, 2008 7:10 pm

Postby rangana on Fri Oct 24, 2008 2:00 am

Try to report it first, it appears that the problem is in jquery itself.

Anyway, you could change this part of your script:
Code: Select all
$(this).hide("slide", { direction: "down" }, 500);


to:
Code: Select all
$(this).animate({height:'toggle'},500);


Hope it works.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

thanks.. again

Postby qen on Fri Oct 24, 2008 2:08 am

Oh it works, thank you very much! I bet you wished you charged it now, ha ha. Seem as though you know about this sort of stuff, how would I make that button the "Description" link button?

P.S. I did post about that before, like you said, but the JQuery forum takes ages to show messages up and so I'm still waiting.
qen
 
Posts: 28
Joined: Wed Oct 22, 2008 7:10 pm

Postby rangana on Fri Oct 24, 2008 2:10 am

What do you mean? You want that "green" div to toggle (show/hide) when the "description" texts is clicked?
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Next

Who is online

Users browsing this forum: No registered users and 4 guests