Comments (7)
Looks like you have alerts to fire when the event is triggered. Do those alerts fire at the expected times? If you try and load the flexslider while it is hidden (display: none via css or js), jQuery won't be able to work with the objects.
If you fire the load when the slider is visible (parent element), everything should be fine. Does this sound like it could be the issue?
from flexslider.
Some where, the solution (in part at least) was to fire the events on pageinit:
$('div#flexSwipePageTwo').live('pageinit',function(){
$('div#swipeFlexPageTwo').flexslider({
animation: "slide",
controlsContainer: "#flexImageSliderContainerTwo",
directionNav: false,
controlNav: false,
slideToStart: 0,
mousewheel: true });
});
$('div#flexSwipePageOne').live('pageinit',function(){
$('div#swipeFlexPageOne').flexslider({
animation: "slide",
controlsContainer: "#flexImageSliderContainerOne",
directionNav: false,
controlNav: false,
slideToStart: 0,
mousewheel: true });
});
Also it did not work on andriod 2.3.5 until I changed #swipeFlexPageTwo to div#swipeFlexPageTwo
On odd thing I am seeing is that the slideshow sometimes appears offset (in between two slides on load) or the images are squished and then stretched out on initial load, though it fixes itself if you swipe.
from flexslider.
Hi. I am also trying to get it working on jQM. The slider works, but the images are stretched tall. I am using iPhone4S with latest OS - mobile safari. It doesnt happen in the simulator or a desktop browser. Does anyone know a fix to this stretching issue? Or know what I am doing wrong? Thx. I assume it's something that jQM is doing to the slider since I do not see this happening on the flex.madebymufffin.com homepage slider.
from flexslider.
I believe I have fixed the jQM issues with the upcoming version. I haven't been able to reproduce the stretching error.
from flexslider.
OK rocking cool. Thanks Tyler. I'll look for an update and test this sucker out when ready.
from flexslider.
I have multiple instances of flexslider per page on multiple pages in jquery mobile and and while appearing on the first page navigating to another page without rel="external" would not render the flexsliders on the new pages. To get the flexsliders to initialize on each active page without rel="external" on the links to the new pages I used this code:
$( '.ui-page-active' ).live( 'pageshow',function(event){
if($(".ui-page-active #photolatest-slider").length!= 0){
prevText: "Prev",
animation: "slide",
slideshow: false,
directionNav: true,
controlNav: false,
controlsContainer: ".flex-container2"
});
}
The #photolatest-slider id is on the div with class="flexslider".
from flexslider.
@alexandria757 - You are my savior!! I spent hours trying to get this to work using different events but could not get it to work right. Thank you.
from flexslider.
Related Issues (20)
- Prevent vertical swipe while swiping horizontally HOT 2
- Fix for Number-typed values are deprecated for jQuery.fn.css
- Forbid to tab through the slider HOT 1
- swipe is reverse in RTL
- $( '.flexslider' ).flexslider({ is not running occasionally HOT 1
- hiding slides with display:none to filter them... way to 'recount' the slides after doing so
- Using iframes (yt-videos) in flexslider breaks the last slide (animation: slide)xslider HOT 1
- Trouble placing multiple instances of flexslider on a website or page
- When animationSpeed becomes large, the image doesn't switch to a smartphone with Chrome's Devtools.
- The package could not be installed. Trying to install the plugin, get an empty plugin error?
- Fetching Thumbnail images dynamically
- Not compatible with Google Chrome and rtl mobile browsers
- Is FlexSlider abandoned? HOT 1
- fix scrolld in 5000 min
- How to setup Flexslider in a gulpfile HOT 1
- FlexSlider prevents use of back/forward cache
- does not start on the first slider HOT 1
- slide container gets bigger when another slide has a tall vertical or horizontal image
- Cannot read properties of undefined (reading 'toLowerCase'
- thumbCaptions setting creates invalid html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexslider.