Current User: Guest
Please consider registering

 
Search Forums:


 




AWP ok with WP3 but some glitches

Post

Don - Guest

7:43 am - September 23, 2010

 
1

Just set up a default WP 3.01 and installed AWP which seems to work as advertised. Very impressive given this rather complex plugin has not been updated since summer -09 and WP has changed quite a bit since then.

Started out disabling all but the Ajax navigation module. In my test case i have like 10 posts linked in a widget on the side. Clickin any of them makes the page scroll a bit down, but then the page is stable clicking the other ones. When I click the one I first clicked on, the pages scrolls up and back again. As if there were som sort of scrolling memory. And that only happens to the post first clicked on.

Also, the option "When content is loaded inline what should aWP do?" does not have any impact.

Any suggestions appreciated.
Don

4ndrw - Guest

6:28 pm - August 5, 2011

 
2

yeh, i'm having this issue too, it's very annoying!

4ndrw - Guest

6:41 pm - August 6, 2011

 
3

Post edited 10:43 pm - August 6, 2011 by 4ndrw


omg.

not knowing how this works
i think I fixed it :D

comment out this line (by adding 2 forward slashes.

aWP.toggle.smooth_scroll(i,-100);

so it looks like this:

//aWP.toggle.smooth_scroll(i,-100);

inside wp-content/plugins/ajaxd-wordpress/ajaxnav/ajaxnav.php
and the auto scrolling stops :D

4ndrw - Guest

1:04 pm - August 7, 2011

 
4

actually

i had other issues of the page remembering where it was scrolled to when it was last visited.

eg. on the band site i'm designing,
if I was on the homepage, then scroll down half way and click the link in the menu to go to the "bio" page.

then scroll to a different position and navigate to a third page

if i return to the "bio" page the browser will always automatically scroll to half way down... basically whereever position it was in when that page was first visited.

crazy.

my interpretation of that line is
it is supposed to

find the awp_loop tag
then scroll up 100px

my work around is to change that negative 100
to some really huge number, -10000
so that it will always find the post, then scroll to the top
no matter where it thinks it's supposed to return to.
seems to work well

(I know this is probably poor practice... as it could break in a very large site, but it works well for me so far! *touches wood*)

also I think it fits with what my user would expect
As without AJAX, a user would be presented with the top of a new page upon clicking a nav link.

Hope this helps someone else out there!
shame this plugin is no longer supported by anyone

it's 2011 now and I'm yet to find another one that comes close

Kay - Guest

12:57 am - August 21, 2011

 
5

Thanks your post really helped me.

I made a slight modification by changing that line to:
window.parent.scrollTo(0,0);

This does away with any animation and snap the window back to the top, just like how normal browsing would work.

Don - Guest

10:05 am - August 21, 2011

 
6

So does anyone know where Aaron Harun is?



Reply to Topic: AWP ok with WP3 but some glitches

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
4 + 12
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

8 Guests

Forum Stats:

Groups: 1

Forums: 3

Topics: 186

Posts: 487

Membership:

There are 1163 Members

There have been 149 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

jakemc - 5

fromgrannie - 5

flash - 4

BAM - 4

Siam - 4

tombyrnes - 4

Administrators: Aaron (382 Posts)