magnific-popup


Is it possible to pass data via the post method to magnific popup when ajax loading content?


I'm using magnific popup and ajax loading content into it and passing values to the ajax content by appending a query string to the url, which works fine except in IE7 (and probably IE8 as well). The reason is very likely the length of the query string, because it works when I shorten it.
So my question is, is it possible to pass it via some sort of data setting and make it use POST instead of GET. Or does it already use post and I just need to use the right method.
This is what I have:
$.magnificPopup.open({
tLoading:"",
modal:false,
type:'ajax',
alignTop:true,
items:{src:urlContainingVeryLongQueryString},
callbacks:
{
ajaxContentAdded:function()
{
...
My test url is 906 characters long in total (well within IE7's 2000ish limit).
ajax.settings option http://dimsemenov.com/plugins/magnific-popup/documentation.html#ajax_type is passed to jQuery.ajax method http://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings , e.g.:
$.magnificPopup.open({
tLoading:"",
modal:false,
type:'ajax',
alignTop:true,
items:{src:'http://example.com/ajax'},
ajax: {
settings: {
type: 'POST',
data: {
foo: 'bar'
}
}
}
});

Related Links

Simple Magnific Popup Gallery not working
Magnific Popup onload calling a url
callbacks not firing when opening a magnific popup from another one
Magnific Popup - taller mfp-bottom-bar causes max image height issue
How to generate a (magnific popup)-gallery without a-tags
Add data to items in Magnific Popup
How to set the divs to make Magnific Popup animations work
how to display map in mobile devices using magnific popup?
Magnific Popup - Counter in Videogallery
how to manually open and close the popup using Magnific-Popup
How to customize arrows and close button?
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

Categories

HOME
clips
keras
spring-jdbc
yarn
mouse
podio
multiple-records
rascal
mapserver
commonmark
visual-studio-2005
messages
progressive-web-apps
jsdoc
normalizr
scichart
swiftlint
orleans
tar
mps
graphicsmagick
accessor
zurb-foundation-6
underflow
filezilla
maxmind
fluentvalidation
nouislider
scorm2004
google-qpx-express-api
fog
kendo-ui-grid
wallpaper
automake
libraries
streamsets
lumberjack
unoconv
g-code
janrain
arena-simulation
heightmap
netcdf4
zip4j
dds
jquery-validate
pnotify
hls.js
feeds
ifs
gnome-shell-extensions
rotativa
intrusion-detection
qpid
bluegiga
asp.net5
jfugue
javax.sound.midi
deis
ideamart
unity3d-gui
clipperlib
nsmutabledictionary
website-monitoring
jscript.net
tablelayout
tt-news
asp.net-web-api-odata
markers
issuu
google-reader
elliptic-curve
picturefill
typo3-neos
stxxl
web2py-modules
quartz-graphics
ftps
ril
file-locking
orchardcms-1.7
dmoz
cisco-jtapi
venn-diagram
regsvr32
removeclass
transactionscope
netdna-api
vdsp
ecl
datareader
remember-me
adrotator
simpletest
pascal-fc
nerddinner
ugc

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