• Aditya Agarwal

    (@adityamilyin)


    Hi,

    I have been using this plugin for about a week now, and i have had couple of issues, while most of them were easily solvable.

    The issue with AJAX is troubling me.

    I am using AJAX to save a form. And if form submits successfully I display a banner on top of screen saying “Your Creation has Been Updated”, if the form fails (ajax returns error) “Your Creation Could not be saved is shown”

    Since I have been using your plugin this doesnt work. If I open the form, go offline and click save, it still says “Your Creation has been updated”. checking network requests makes it clear that the form wasnt saved, yet it shows it.

    I tried to exclude this page, and all other relevant urls our of cache, using a code I found. But that didnt help either.

    apply_filters( 'superpwa_sw_never_cache_urls', '/\/wp-admin/,/\/wp-login/,/\/my/,/\/new/,/\/login/,/\/wp-admin/admin-ajax.php/' );

    But this does not help either.

    Here’s the screen recording, showing what exactly happened, do not

    https://drive.google.com/file/d/1sbJzLsg-Rgnw8n8xrkLlEQfj-VaL-RRG/view?usp=sharing

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

Viewing 1 replies (of 1 total)
  • Thread Starter Aditya Agarwal

    (@adityamilyin)

    Just to inform you, I tried Plugin Conflict test and tried switching to default themes too.

    However, it didnt help.

    I checked the Chrome network requests and can confirm that the wp-ajax.php requests werent successful, yet the AJAX script thinks it was successful.

    I deactived Super PWA, and then it behaves as expected… But activating SuperPWA makes the AJAX requests broken again.

Viewing 1 replies (of 1 total)
  • The topic ‘Issues with AJAX form Submittions’ is closed to new replies.