Open modal with javascript instead of link using a wordpress plugin - javascript

I am using the wordpress plugin Easy Modal
I can open a modal like that Open Modal. Now I want to open the modal with javascript like that
if (var == true) { openmodal-11(); }
Is there a way I can do this, without looking at the plugin code? So I can "open" the class with javascript like fake clicking on the link.. I am kind of a newbe in coding...
Thank you

I found this page which suggets it's using a normal jQuery plugin approach to interacting with the page elements, and the below should work:
$('#eModal-11').emodal('open');

Related

Need help creating a javascript or a bootstrap like popup modal for a form submission in Telesope meteor app?

Hi I'm using meteor site http://www.telesc.pe and need help making the submit form link open in a pop window or javascript overlay vs a new page with a close button.
Any suggestions?
newtometeor
Thanks!
You should be able to use Bootstrap modals via the bootstrap-3 package.
meteor add mizzao:bootstrap-3
Then refer to the Boostrap documentation. Should be pretty easy.

Javascript Modal Popup with URL

I want to create a popup method like its used on https://www.behance.net/ - when user click's on a project, a popup opens and the user can see the URL in the main window. How can I achieve that e.g. what must I do? Is it pure javascript? because it seems that behance is not using any plugin.
Thanks in advance
You can use Twitter bootstrap 3.0. Its providing modal popup and this one is mobile and ipad friendly as it automatically adjust with screen resolution.
Refer http://getbootstrap.com/2.3.2/
the easiest way to achieve this: use a plugin!
jQuery UI
Bootstrap Modal
choose your plugin

hyper link pop up Window in JQuery plugins

I am trying to add pop up window on hyper link but not the default one that is windows.open(). I want a window like Google Compose mail. I did try the Angular.js but can't understand the main concept to produce that. If any one can help me as I did try other JavaScript Libraries like colorbox, fancybox etc. They work fine on button but not on hyper link.

How can I display two colorboxes (popup windows)?

I am using this jQuery plugin http://jacklmoore.com/colorbox/ to show a popup window. There is a link in the content of the first popup clicking on which triggers another small popup window. I'd like to have this second popup without closing the first one. Is it possible to achieve this without changing much in the plugin?
There would be no way to do that without significantly altering the plugin. Sorry.
Assuming you have the chops, consider using ColorBox with the html parameter for the first popup window. In the HTML, develop your own window, eventing and handler (with Jquery). Just a thought.

javascript not included in colorbox popup window

I am using color box, its really fun, but i am really stucked out by a problem that:
my form is opening in colorbox
i am using jquery for validation in that form
for which i am including validate.js in that page
the problem is that i am not able to see the js file, when i open the page in window it is ok but when that page is opened in colorbox the javascript in not available.
please help me
From the Colorbox Home Page:
JavaScript/jQuery is not working inside of ColorBox.
This is often due
to trying to access an element before
it has been loaded into the document
and can be resolved by moving the
JavaScript into ColorBox's onComplete
callback.
//Example (using jQuery Forms plugin):
$('#login_window').colorbox({onComplete:function(){
$('form#login').ajaxForm();
}});
It looks like you might just need to make use of the "onComplete" callback of the plugin.

Categories

Resources