WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Some Minor Bugs (42 posts)

  1. travisavery
    Member
    Posted 2 years ago #

    This is an amazing plugin. I was considering not posting these because they are so minor, but ultimate I decided it would be better to post then not to post.

    I have noticed when navigating between pages and posts in Firefox sometimes the error message flashes for a second or two before loading the page anyway. Is this happening to other people as well.

    Also, when you direct link to a page that is not the homepage, you can not click back to that page. For example, I am building a gallery page that has several thumbnails that link to other posts. If you directly link to: travisavery.com/towel-day and click one of the images, you cannot go back to the gallery page.

    Like I said all minor things. I can live firefox bugs; I can just remove the error message and then the problem is (sort of) solved. For the other problem I can just put a link in the post that will take you back to the gallery, but I thought I would at least try and helpful. :)

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for your feedback, I'm currently looking into both problems you have reported. I must admit the second problem with direct links is weird... Not even getting an error.

    Watch this space.

  3. travisavery
    Member
    Posted 2 years ago #

    Okay, so I had disabled the error message temporarily while I was working on something because it was bugging me, now I have re-enabled it. Sorry.

    I have noticed another issue (sorry about this), it's not a big deal so there is no need to fix right away. I more just want to document any issues I run info.

    --

    Okay, so when you Search from the homepage the plugins works beautifully. However searching from any other page causes weird things to happen. I'll try and document the scenarios to the best of my abilities.

    1. On either a page or a post, when you search for something that has nothing to do with the page you are on you get an error message, and the page stops working.

    2. On either a page or a post, when you search for something that is relevant to the page you are on, then it refreshes just the content, but doesn't search.

    --

    If I had to run a guess as to what causes the weirdness, it would be that the url is different than in other situations. For example: "travisavery.com/?s=TravisAvery" I could be (and probably am) wrong because I don't really know what I am talking about.

  4. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Hey again Travis, I have just popped back to your site and now nothing is working at all, I'm seeing error messages pointing to a jQuery problem? Are you messing with something at the moment?

    dont think jQuery is being included correctly...

    Anyway once this is sorted I can see and document the problems you have described and can then get to work on some code to fix the issues for you and the rest of us :)

    And dont feel bad bringing problems to my attention, this is good as I would like to make this plugin work as good as it possibly can, and then extend it to include a whole host of features to help everyone!

    And I'll email you directly, but a quick thanks for the donation mate, really appreciate it!

  5. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Okay I was working on the plugin last night and believe I have fixed all the problems you have reported so far.

    I will release an update sometime today which I hope you will have time to test and confirm whether or not the problems have been corrected.

  6. travisavery
    Member
    Posted 2 years ago #

    Dude, you rock my socks off, thanks man!

    I am going to disable your plugin temporarily while I try and add something to my site. I'll enable it again with your update, and give you a heads up if I see anything else.

  7. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, released an update! Should cover all the problems you have experienced... Hopefully!!

  8. euphoriuhh
    Member
    Posted 2 years ago #

    I'd been doing most of my development in Chrome, just started testing in Firefox and experienced the error flashing temporarily issue. So pleased to see it already addressed!

    Thanks so much Dean!

  9. travisavery
    Member
    Posted 2 years ago #

    Okay, weird... the back button isn't work for me at all anymore.

  10. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, sorry travis, my bad! Fixed that now, NOW IT SHOULD WORK :p

    And no problem euphoriuhh

  11. DanStudio
    Member
    Posted 2 years ago #

    Unfortunately the history doesn't work properly for me :(

    it doesn't go back when you click "back" in your browser (tested on Firefox and Opera), it only changes back the page adress.

    Plus, some weird chars in title, that replace " or – chars.

  12. travisavery
    Member
    Posted 2 years ago #

    It appears to work now in Safari, Chrome, Opera, and Firefox. Good work man.

  13. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Yes sorry guys, double bluffed you as I accidentally made another mistake, all fixed now hopefully!! :)

    sounds like it works okay ;)

  14. DanStudio
    Member
    Posted 2 years ago #

    still not working for me in version 2.4.2 :(

    after you click some post to read from main page, the only thing changes on clicking 'back' is just the adressbar text

  15. travisavery
    Member
    Posted 2 years ago #

    Try clearing your cache. That got it to work for me. Also, which browser/version are you using on which OS.

    Also, I have noticed that it "sometimes" doesn't work randomly, however I am not able to create any specific scenario in which it doesn't work. Therefore I would just say to "try again" and then it works.

  16. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Please edit the .js file, change the "showWarnings" variable to true.

    do you get any warning messages when navigating the site?

    Please give us browser and version?

  17. DanStudio
    Member
    Posted 2 years ago #

    well, ok. It works on Chrome. But not on Opera 11.62 and Firefox 11.0.
    :(

    if I use 'forward' button, then 'back' works. but without 'forward' it does not.

  18. travisavery
    Member
    Posted 2 years ago #

    ...Interesting. I think I see what your talking about. The very first history item that someone will perform (in firefox and opera) doesn't work. However every one after that works perfectly.

    So, if I go several steps into a blog, the first time I hit back, it wont register. However after that first fail, it works fine. Good catch man.

  19. DanStudio
    Member
    Posted 2 years ago #

    exactly!

  20. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm cheers for the detective work guys, I will look into this but It's very unclear why this is happening, or how to prevent it :s

  21. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Okay everything seems to work fine now!

    Fewwwww... BTW because wordpress seems to cache stuff you will need to CTRL + F5 after loading the page with the update.

  22. DanStudio
    Member
    Posted 2 years ago #

    Thank you so much, Dean! Great job, it works fine now.

    There's one problem left with the chars in page title.
    Seems like it's trying to write them via html-codes,

    for example
    – = &#8211 ;

    “ = &#8220 ;

    and so on

  23. DanStudio
    Member
    Posted 2 years ago #

    and, well, one more pretty important moment:
    navigation in page by links with the '#key' is broken.

    For example, I have a #bottom key for my bottom page element, but when I press the link *...samepage#bottom* it loads the page again and doesn't navigate me to the element.

  24. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Hey Dan, yes I already noticed the HTML codes problem, something I will find a way to fit tomorrow, and yes I never even thought about # pointers in links, I will see what I can do to get around this issue.

  25. travisavery
    Member
    Posted 2 years ago #

    Random new bug! Not a big one... just a weird one.

    In webkit based browsers (Chrome, Safari, iPhone, iPad), when the page first loads, it triggers the plugin and then reloads the content.

  26. euphoriuhh
    Member
    Posted 2 years ago #

    ^^^^ wow! I was just about to post about that one! I've been on a goosechase disabling W3 Total Cache plugin and other troubleshooting trying to determine that it is not just me.

    It is actually quite frustrating.

  27. travisavery
    Member
    Posted 2 years ago #

    It actually doesn't bug me much, but I thought I would still report it.

  28. euphoriuhh
    Member
    Posted 2 years ago #

    You're right its really not a huge deal. just a bit bizarre.
    I'm just a little stressed out with a big website launch for my site at http://whatthefestival.com/_wp coming in a few days. hoping we've collectively ironed out most of the issues around this whole plugin.

    thanks again Dean - btw, I've got a donation coming your way next week ish.

  29. travisavery
    Member
    Posted 2 years ago #

    Okay... not sure if I fixed it or broke it more... but I think I found a way to keep it from double oading on webkit browsers. If you go into edit mode, open the file "advanced-ajax-page-loader/ajax-page-loader.js" and remove the comments in window.onpopstate = function(event) then everything works correctly.

    window.onpopstate = function(event) {
    	if (currentState == "") {
    		currentState = document.location.toString();
    	} else {
    		loadPage(document.location.toString(),1);
    	}
    };

    Hey Dean, give me a heads up if there was a reason you commented those out. I don't want to give advice that would break other things.

  30. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    I removed it because it was stopping the first loading of a page on some browsers.

    I think the problem lies in the fact some browsers are firing the event when the page has finished loading as well as when the browser fires it for the back - forward buttons.

    I need some time to sit down and test this properly, and then release a reliable fix. I'm looking into this now but might not have time to release a fix tonight.

    Sorry for the annoying bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic