← Back to Popup Manager Support
Everytime I try and call the popup on the website I'm working on. ( rrobertson.ga ) it doesn't load. I opened Chrome developer tools and I get this error:
Uncaught SyntaxError: Unexpected token ,
The code that's generating the problem:
$(document).ready(function() { $.ocpopup({ fadespeed: , open: , layer: '#popup' // this is the code }); });
I have {% framework %}
, {% scripts %}
, and {% styles %}
in the appropriate places.
I do not have Campaign Manager installed as I am using mailchimp to make my own custom form.
I call the popup via a partial with the component attached to the partial in a layout. Basically like this:
component - goes into > partial > which gets inserted into - layout
Any idea why this isn't working?
Last updated
I found the problem. You can fill in the Speed field (eg.: 400) and the Delay time field (eg.: 5000) in each Theme.
I even did that and it's still not working. I even went in the back and and added those and it gave me a different error. Told me .ocpopup is not a function
This code is same:
$(document).ready(function() { $.ocpopup({ fadespeed: , open: , layer: '#popup' }); });
or something like?
$(document).ready(function() { $.ocpopup({ fadespeed: 400, open: 5000, layer: '#popup' }); });
If this code doesn't change, you should delete the cache of browser.
It doesn't change. I did clear the cache of the browser. the values never get entered either.... hmm.....
Here's the website link
rroberson.ga
I'm 100% sure I entered the data back in the theme. I've created a theme as well
I will update the plugin on Friday. I found an issue. The JS code load on every page. But it is not necessary, if the popup is inactive. I hope it will solve your problem.
1-7 of 7