• Resolved wilsmithwp

    (@wilsmithwp)


    Hello,
    I read some of the topics here and i found a solution here for reloading the page after deleting 1 favorite from a list. It worps perfect. I use this because i fetch the info from the selection and use it in a form that needs to be updated after deleting an item. I also have set the timeout on zero and on 600, to test it.

    Now, on my page i can add favorites (enterprises), then goto the list (ask a quotation list) and everytime i decide to delete one of the selected companies, the page reloads and all the info gets upldated. Perfect!

    But, when deleting the last favorite (enterprise) from the list. The page wants to reload (timeout 600) but also gives me a result with telling me there are no favorites. Somewhere in that timeframe i get an error message. See the attached image with this url:
    https://siteweb87.nl/wp-content/uploads/2022/07/errormessage.png

    Hope you can give me a clue what the message means.

    • This topic was modified 2 years, 3 months ago by wilsmithwp.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello @wilsmithwp ,
    Thank you for your question.

    The error probably means that the ajax failed.

    I think the alert is on line 43 of this file.

    The cause of the alert is not clear in this topic, but it is most likely the timing of the communication.

    It is difficult to specify because it depends on the communication environment of the visitor and the response speed of the web server (DB).

    Thanks

    Thread Starter wilsmithwp

    (@wilsmithwp)

    Hi,
    I took out this code

      }).fail( function() {
          /* 読み込み中のローディングを非表示 */
          $('#'+ loader).fadeOut();
          alert('error');

    Nothing happened, same error. Yes, i think it is the timing of communications somewhere. Any more ideas? No hurry, i am still working on it.
    Greetz
    Wil

    Thread Starter wilsmithwp

    (@wilsmithwp)

    Alright, it was the redirect timer, all worked after setting it to 2000.

      setTimeout( function() {
    window.location.reload(); // Add this code.
        },2000);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on reload after deletion’ is closed to new replies.