• Resolved BlueAvispa

    (@abcdhello)


    I tried the two ways you said to manually trigger the popup but both things the SPU thing isn’t defined. Unfortunately javascript is not my strong suit but I literally copied and pasted what you had and copied the settings…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter BlueAvispa

    (@abcdhello)

    ps, I’m trying to trigger using javascript NOT clicking or anything.

    I need this to open only on a page after someone fills in a form and the page refreshes.

    I’m using PHP to check if the form has been submitted.

    Thread Starter BlueAvispa

    (@abcdhello)

    Let me know if I can trigger the add via javascript and/or php. To save time just put the code in the response. I’ve got to get this working immediately!

    • This reply was modified 7 years, 3 months ago by BlueAvispa.
    • This reply was modified 7 years, 3 months ago by BlueAvispa.
    Plugin Author Damian

    (@timersys)

    Hi @abcdhello,
    to trigger it programmatically with javascript you need to do the following:
    SPU.show(120);

    Where 120 is the ID of the popup. You could also try window.SPU.show(120); to call it globally but the first code should work unless something else it’s broken.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Manual Trigger Failed SPU is not Defined’ is closed to new replies.