magnific-popup


Modal dialog. - Confusing


I am trying to open a simple modal dialog and I have been struggling to do this. Can
any one please help? This is the HTML code(please remove pre). This simply doesnot work.
Can any one please tell **strong text**me why? I have not been getting the kind of output that I really
need.
Any one help me.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="css/magnific-popup.css" rel="stylesheet" />
<script src="js/jquery.magnific-popup.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" ></script>
</head>
<body>
<a class="popup-modal" href="#test-modal">Open modal</a>
<div id="test-modal" class="white-popup-block mfp-hide">
<h1>Modal dialog</h1>
<p>You won't be able to dismiss this by usual means (escape or
click button), but you can close it programatically based on
user choices or actions.</p>
<p><a class="popup-modal-dismiss" href="#">Dismiss</a></p>
</div>
<script>
$(function () {
$('.popup-modal').magnificPopup({
type: 'inline',
preloader: false,
focus: '#username',
modal: true
});
$(document).on('click', '.popup-modal-dismiss', function (e) {
e.preventDefault();
$.magnificPopup.close();
});
});
</script>
</body>
</html>
Load jquery before the magnific-popup plugin, it relies on jquery (I've never used it but I'm assuming so seeeing as it is pre-appended withfixed 'jquery')
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="css/magnific-popup.css" rel="stylesheet" />
<!-- Jquery loaded first here... -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" ></script>
<!-- Plugins after... -->
<script src="js/jquery.magnific-popup.js"></script>
</head>
<body>

Related Links

no closing “X” with inline content
How to prevent close
Magnific-Popup Loading iframe from non-video players URL
Magnific popup - put arrows inside of an image
magnific closeOnContentClick does not work
How can style popup iframe in Magnific Pop-Up?
Gallery with mixed content types
Title for iframe/video in magnific popup
Magnific Popup: Close floats to the right
Calling magnific-popup on button element instead of an anchor
Implement query.magnific-popup.js in dreamweaver cs5. Syntax error in original code
Magnific-popup event binding to popup content
Magnific Popup - Error when opening a you tube video
Magnific-Popup, Limit items to direct siblings
Multiple Galleries with Magnific Popup
Pass data-attribute value of clicked element to ajax settings

Categories

HOME
isabelle
grep
infragistics
microservices
jxls
binary-tree
umd
google-project-tango
retrofit
cross-browser
indesign
ios-charts
metatrader4
modelica
quickbooks
flask-wtforms
uitypeeditor
workload-scheduler
progressive-web-apps
sms-gateway
object-detection
cloudhub
css-animations
mustache.php
microsoft-sync-framework
apache-commons-io
filezilla
strncpy
r-raster
http-status-code-503
jspresso
column-family
android-nestedscrollview
cloud-code
suricata
automake
hue
splice
core-plot
google-closure
gpx
thin
segment
apache-fop
revapi
togetherjs
nsarray
memory-alignment
iso8601
mediaelement
jquery-filter
instant
bluemix-app-scan
php-parse-error
associative-array
netmq
vhd
tmuxinator
oberon
key-management
device-orientation
python-green
nsbutton
client-side-templating
xojo
navigationservice
seaside
app42
centos5
stxxl
jsctypes
jmapviewer
ril
android-screen-support
http-unit
jspinclude
postgresql-performance
semantic-diff
deobfuscation
table-footer
krl
google-friend-connect
firefox-5
anti-piracy
dbisam

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App