Giter Site home page Giter Site logo

Support for IE 8/9? about slidr HOT 10 CLOSED

bchanx avatar bchanx commented on May 26, 2024
Support for IE 8/9?

from slidr.

Comments (10)

bchanx avatar bchanx commented on May 26, 2024

Hey @ahmadux,

slidr.js should already support IE8/9. It's given me no errors when I've been testing it on IE10 running IE8/IE9 browser mode. Could you provide some sort of screenshot to the issues you're experiencing, and the IE version(s) that you're using?

from slidr.

ahmadux avatar ahmadux commented on May 26, 2024

Hey B,

Attaching three screenshots of the issue I am facing.

ErrorDesc: Shows what the error message is.

ScriptLocation: Shows the line location of the error and that it is the slidr.js file with the issue.

watchVariables: Shows the value of the variables. They seem to be ok but I dunno.

It works beautifully in IE 10 and all the other browsers. IE 8 seems to have something up it's a**.

Lemme know what you think.

Regards,

Usman Ahmad
mob:(+974 ) 55142382

Date: Mon, 10 Feb 2014 01:32:10 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [slidr] Support for IE 8/9? (#22)

Hey @ahmadux,

slidr.js should already support for IE8/9. It's given me no errors when I've been testing it on IE10 running IE8/IE9 browser mode. Could you provide some sort of screenshot to the issues you're experiencing, and the IE version(s) that you're using?


Reply to this email directly or view it on GitHub.

from slidr.

bchanx avatar bchanx commented on May 26, 2024

Hey @ahmadux,

Did you forget to attach the screenshots? I'm not seeing anything.

from slidr.

ahmadux avatar ahmadux commented on May 26, 2024

watchvariables
scriptlocation
errordesc

from slidr.

bchanx avatar bchanx commented on May 26, 2024

Hey @ahmadux,

Looks like you're running an IE version that's different than the browser compatibility mode packaged with IE10. Nonetheless, I've pushed a devel build with a potential fix here: https://github.com/bchanx/slidr/tree/devel. Could you give that a try and see if there's any progress?

from slidr.

ahmadux avatar ahmadux commented on May 26, 2024

Brilliant. It works. Needs a bit of work on the CSS but the script works like a charm.

Thanks a lot dude. You the man!

One last thing, Can we have a resume() function, so we can resume after a stop() call? Or maybe a pause() and resume() function would be better?

from slidr.

bchanx avatar bchanx commented on May 26, 2024

Hey @ahmadux,

Are you trying to implement pauseOnHover, or is this for an entirely different usecase? If it's the former, that feature will be added in the next release (in fact, it's already in the devel build you just tested).

Otherwise, calling .auto() again after you .stop() will resume the slidr as you were describing. You can also change the speed and direction on the resuming .auto() call if you'd like. e.g. .auto(2000, 'left').

from slidr.

ahmadux avatar ahmadux commented on May 26, 2024

Hey.
Yeah I tried auto() and stop(). The only issue is, if I had initially passed in some parameters to auto() I need to pass them in again and that wouldn't be ideal, right? Ideally, I would like to call resume() and it would pick up from where it left off.
Also, what do you think of this idea where I could pass in a function() to pause(fn()) or start(...,fn()) which would be evaluated to true/false before the next slide animates in.

Regards,Usman Ahmadmob:(+974 ) 55142382

Date: Mon, 10 Feb 2014 03:51:31 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [slidr] Support for IE 8/9? (#22)

Hey @ahmadux,

Are you trying to implement pauseOnHover, or is this for an entirely different usecase? If it's the former, that feature will be added in the next release (in fact, it's already in the devel build you just tested).

Otherwise, calling .auto() again after you .stop() will resume the slidr as you were describing. You can also change the speed and direction on the resuming .auto() call if you'd like. e.g. .auto(2000, 'left').


Reply to this email directly or view it on GitHub.

from slidr.

bchanx avatar bchanx commented on May 26, 2024

Hey @ahmadux,

I'll implement it so auto() will reuse the previous input params if you call it a second time. Something like .auto(3000, 'right').stop().auto() will be able to resume the slidr accordingly, and .auto(3000, 'right').stop().auto(2000, 'left') to change directions.

I'm not sold on the idea of passing a check function to pause/start, since it complicates the API and I'd like to keep it simple. It's actually possible to implement what you're looking for with the current Slidr API, like so:

var s = slidr.create().start();
var timerId = setInterval(function() {
  if (condition) s.slide('left/right/up/down');
}, 3000);

Which is just a matter of implementing your own timer to conditionally slide.

from slidr.

bchanx avatar bchanx commented on May 26, 2024

The changes to auto() have been implemented and released. Cheers!

from slidr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.