[Plugin: Modal Dialog] Issues with click event trigger
-
Hi,
Just a couple of questions on what looks to be the perfect solution to my need for a overlay style newsletter sign up.
1) First of all, the link trigger works in chrome but not ff with this code:
[code][a href="#" onClick="openDialog()" rel="nofollow"]Click here to open dialog[/a]
[script type="text/javascript"]
function openDialog() {
jQuery("a#inline").trigger('click')
}
[/script] [/code]from here – https://www.ads-software.com/support/topic/modal-dialog-any-way-to-trigger-from-a-link.
Please note [] were replaced with <> and the [code][/code] tags were removed. Any ideas?
2) The overlay opens autmatically (in chrome) even though it is set to manual.
3) Based on what you said here – https://www.ads-software.com/support/topic/plugin-modal-dialog-modal-box-wont-load?replies=13, is it a problem to have the code above in 1) as well as the following code:
//<![CDATA[
jQuery(document).ready(function($) {//External links
$(function() {
$(‘a[rel~=external]’).attr(‘target’, ‘blank’);
});});
//]]>Although I believe the // indicates the code has been commented out.
4) The overlay will be used for a subscription box, how do you allow the link to be clicked multiple times and trigger the overlay? For example if a user opens and closes the box multiple times – for whatever reason.
5) Can I drop any mailer plgin software into the overlay? If so, which section do I drop the code in?
6) Is there a way to make the code degrade gracefully if the user is either on a mobile device or has js turned off – ie instead it opens a separate page with the subscription form?
Many thanks in advance for your help.
Regards
John
- The topic ‘[Plugin: Modal Dialog] Issues with click event trigger’ is closed to new replies.