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

Magnific Popup custom arrow and number
Is it possible to pass data via the post method to magnific popup when ajax loading content?
What is the best way to test if a Magnific Popup is currently “open”
Apply callback to all instances of Magnific Popup?
Magnific Popup show background image while loading fullres image
Popup - It should load an .aspx page
Modal dialog. - Confusing
Toggle verticalFit on an open image?
Does Magnific Popup support custom events/buttons
I can't get the overflowY option to work in magnific popup
magnific popup group do not working
Magnific-popup: how to get image url from <img src=“…”>?
Styling magnific-popup arrows
magnific popup modal closes on click
Magnific popup: getting “The image could not be loaded”
How to give a fixed size to image in magnific-popup pluggin

Categories

HOME
pdf
image
hive
listview
hook
minimum-spanning-tree
spagobi
rsync
maven-3
graphql
dxl
jpeg
echarts
directx
php-7.1
task
event-handling
visual-studio-cordova
dynamics-crm-online
ghc
oracle-coherence
karma-jasmine
swiftlint
ehcache
wkwebview
dcevm
cultureinfo
jndi
apache-commons-io
neo4j-spatial
libuv
webkitspeechrecognition
tasklet
sql-server-2012-express
bluestacks
fog
typed.js
pim
webtest
adobe-premiere
qwerty
withings
sqlite2
fakeiteasy
sas-jmp
angular2-meteor
skeleton-css-boilerplate
flickr-api
termination
jquery-nestable
return-value
integrity
font-size
query-performance
yt-project
angular-strap
static-ip-address
android-fonts
google-feed-api
radtreelist
slicknav
sts-springsourcetoolsuite
home-directory
dstu2-fhir
login-control
google-web-starter-kit
nsfilemanager
ctest
jwplayer7
nsviewcontroller
master-slave
srand
wso2cloud
lib.web.mvc
sframe
ionic
splash
census
tt-news
websocket4net
document-classification
openexr
system.net.webexception
flexmojos
mylyn
delphi-6
free-variable
typoscript2
pvrtc
chuck
javaspaces
onsubmit
ohm
cufon
data-loss
krl
mongomapper
blitz++
ncqrs
thunderbird-lightning
noscript
zend-decorators
spec#

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