Reputation: 3059
I'm trying to debug an error on this site: www.naijastories.com.
When I click on the 'Donate' link on this page, nothing happens, even though a pop-up is supposed to appear.
Digging deeper and using the IE developer function, I see that the following error is reported:
"Object doesn't support property or method 'prompt'"
The object in this case is the jQuery object, and the error occurs in the /wp-content/plugins/cubepoints/modules/donate/donate.js file.
The line with the error is
var $imp = jQuery.prompt(donatePrompt);
prompt
is the missing property.
This is strange, because the prompt property is set in the first line of another js file - /wp-content/plugins/cubepoints/modules/donate/jquery.impromptu.4.0.min.js - which is loaded just before the donate.js file is loaded.
Is the problem that the donate.js file is not seeing what has been done in the jquery.impromptu.4.0.min.js file?
How do I find out why the jQuery global is not being properly populated with the prompt property?
Upvotes: 0
Views: 96
Reputation: 3376
It looks like jQuery.prompt
only exists in Chrome, but not in IE, which hints that there's a conflict somewhere with the Impromptu plugin and something else and it's browser-specific. You need to be able to type $.prompt
into console and see the function instead of TypeError: Cannot read property 'prompt' of undefined
, which I see on your page but not http://trentrichardson.com/Impromptu. Note that this seems to happen in IE and not the other browsers.
Upvotes: 1