Photo/List View content isn’t updated correctly with date change.

Home Forums Calendar Products Events Calendar PRO Photo/List View content isn’t updated correctly with date change.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #70938
    crawforddesign
    Participant

    When the date is changed in the search bar, the content doesn’t update unless you press enter. The content only flashes away and then back, but it does not change the events displayed. I have edited the view to display the formatted event content. I have not reverted to the original code but will do that next, wanted to go ahead and get this posted.

    #71073
    Barry
    Member

    I visited your site, changed the date via the datepicker to Nov 2014 and hit “Find Events” – the content of the view correctly updated to show events in or after Nov 2014 only: can you confirm if that’s different from your own experience?

    #71085
    crawforddesign
    Participant

    I turned off the live Ajax updating which is what was causing the problem. When you searched without physically hitting enter or find events the content would not actually update.

    #71154
    Barry
    Member

    OK, so are you happy with things as they are? Unfortunately it’s hard to assess the situation if we cannot see it.

    #71157
    crawforddesign
    Participant

    It will do for now, I would like to have it fixed though. I can enable the ajax refresh for a day since that seems like it would be helpful. As of this post I will have it enabled so you can take a look at it. Because I think it could be very relevant. In order to get the formatted content in the display I am using ‘the_content()’ in loop.php to load the full post content. I replaced this with the original file and was still getting the error. I wanted to make sure you were aware of this edit regardless though. Here’s the entire code of ‘views/photo/loop.php’:


    <div id="post-” class=””>


    Thanks for your help,
    Alan

    #71158
    crawforddesign
    Participant

    Well, that didn’t display correctly. here’s a link to a jfiddle with the code: http://jsfiddle.net/HcdhS/

    #71165
    Barry
    Member

    Thanks!

    I visited your site, changed the date via the date picker to 2014-10-02 and it instantly updated without me hitting enter. Given your test data of two events it seemed to operate correctly with only the event taking place in November 2014 showing after making that change.

    So it basically seems to be in order to me, can you confirm if that clarifies things for you or if I’m misunderstanding / would need to carry out different steps to see the problem?

    #71172
    crawforddesign
    Participant

    There are just over a hundred previous events. The reason you are only seeing 2 is that the date isn’t updating the ‘feed.’ Change the date to 2006 and don’t hit enter. It will continue to display the same events. Then hit enter and it will load the correct ones.

    #71343
    Barry
    Member

    OK, thanks!

    There definitely does seem to be some sort of problem at work here where it does not always update to show the anticipated results and hitting enter, or reselecting the date via the datepicker and letting it “auto update”, does indeed appear to resolve things.

    I have not reverted to the original code but will do that next, wanted to go ahead and get this posted.

    Can you now try this and, unless you already did so, at the same time repeat the initial troubleshooting steps you performed (of deactivating all other plugins and switching to a default, unmodified theme)? Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Photo/List View content isn’t updated correctly with date change.’ is closed to new replies.