Support » Plugin: Modal Dialog » Click to open Modal only works first time

  • Resolved Jonathan Wexler

    (@jonathanwexler)


    Hi Yannick,

    I followed all the instructions and can get the modal to open by clicking a link.

    However, this only works the first time you click the link on the page. All subsequent times you click the link on the same page after closing the original modal pop up, the progress swirl just continues to swirl and the model never appears.

    You can see the behavior on the following page by clicking the “Click here for model pop-up!” link in the third paragraph of the content: http://104.131.25.174/book/

    Of course, if you reload the page the link works again, but only once of course.

    I tried everything, including trying to call a location.reload() function after clicking the close box – I tried to edit the PhP to no avail.

    I suspect there is something to be done and hope you can help as I am 99% there to get this cool functionality working.

    Thanks – (btw we met once at a WordPress Montreal meetup at Brutopia so excited to use this plugin!!)

    https://wordpress.org/plugins/modal-dialog/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Have you tried selecting a different rendering library in the general configuration page? There are two choices, fancybox and colorbox. One may work correctly if the other one is not.

    Something else to look into is that where are major problems with javascript on your site. If you load up the page in Firefox with the Firebug plugin, you will see a rolling number of reference errors comes up. I got more than 5000 errors after a few minutes of visiting the page. Having jQuery errors can cause problems with other jQuery plugins like Modal Dialog.

    Let me know if you need more precise help working on these errors.

    Nice to be able to help a fellow Montrealer use one of my plugins. Are you planning on attending the meetup tomorrow evening?

    Thread Starter Jonathan Wexler

    (@jonathanwexler)

    Thanks Yannick.

    Yes I had tried the different renderers – the other one has a slight layout problem – anyway I will play around a bit more.

    As far as JavaScript – yikes 5000 problems sounds frightening. I am far from an expert at fixing JS/jQuery problems – can you suggest a basic debugging strategy I can work on: I am very much still at a learning stage so a few pointers can do a world of good.

    Lastly, unfortunately I cannot make the meetup as I have a religious holiday this week so hopefully I can report back some progress for the next one.

    Thanks again for all!

    Thread Starter Jonathan Wexler

    (@jonathanwexler)

    Yannick – I got it working! So happy, and thanks for the plugin.

    I was using the wrong method – entering an iframe in the content which called a rather complex embedded plugin call Flipgorilla to show a flip book. (this funny combination must have cause one (or 5000!) errors).

    I did not realize I could just use the plugin’s functionality to call the webpage directly – now it works – everytime: http://104.131.25.174/book

    Thanks again and hope to pick your brain at a future meetup – best!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Good job! Glad that you found the issue. Please take a few moments to rate the plugin!

    Hi Yannick,

    I appear to be happy the same problem here when you try the “Download CHECKPOLE” link: http://www.checksteel.com.au/checkpole/

    Can you offer any advice? 🙂

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hi Chris, it looks like you moved on from using Modal Dialog on your site. Let me know if you need further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Click to open Modal only works first time’ is closed to new replies.