Giter VIP home page Giter VIP logo

Comments (8)

iuliana avatar iuliana commented on June 19, 2024

Hi,
I was looking in source code in Developer Tolls of IE 8 and I noticed that on the hidden element in the style element the "clip: rect(0px 0px 0px 0px);" value is missing. I noticed in Chrome that the value is there. Could this be the cause?

And if it helps here is how I customized my input elements:
<input type="file" id="productFile" name="productFile" class="filestyle" data-buttonText="Seleccione Archivo"/>

from bootstrap-filestyle.

iuliana avatar iuliana commented on June 19, 2024

Hi,
I started reading about clip and the support for IE8 and discovered that is it partially supported in IE8 if the old syntax is used.
So I modified your code , line 229 in bootstrap-filestyle.js, version 1.1.0 and replaced
this
.css({'position': 'absolute', 'clip': 'rect(0, 0, 0, 0)'})
with this
.css({'position': 'absolute', 'clip': 'rect(0px 0px 0px 0px)'})
And now it is being displayed OK on all browsers.

from bootstrap-filestyle.

solverat avatar solverat commented on June 19, 2024

Why is this closed? The Problem still exists.

from bootstrap-filestyle.

markusslima avatar markusslima commented on June 19, 2024

Better specify where this is still occurring

from bootstrap-filestyle.

solverat avatar solverat commented on June 19, 2024

sorry, on windows vista and ie8, the problem still appears. (Original upload button is visible)

On 29.05.2014, at 21:20, Moogles [email protected] wrote:

Better specify where this is still occurring

β€”
Reply to this email directly or view it on GitHub.

from bootstrap-filestyle.

iuliana avatar iuliana commented on June 19, 2024

So,
I have no idea what happened, Friday, when I did the pull request it was working. Next Monday it was not.
After a trying a lot of javascript and jQuery solutions the only way to hide the component behind was to add:

<style> .ie8fix { clip: rect(0px 0px 0px 0px); } </style>

And declare the input file component like this:
<input type="file" id="uploadedFile" name="uploadedFile" class="filestyle ie8fix"
data-buttonText="Select File">

Fortunately for me my client is not interested in IE8 support anymore. But if you need a workaround, you have mine now.

from bootstrap-filestyle.

solverat avatar solverat commented on June 19, 2024

@iuliana Thank you - that worked!
btw: "my client is not interested in IE8 support anymore" - what a great client! ;)

from bootstrap-filestyle.

hooboy avatar hooboy commented on June 19, 2024

I Think this is file input add style width: 100%; height: 100%; font-size: 300px; position: absolute; top: 0; left:0; opacity: 0; filter: Alpha(Opacity=0); this is input wrapper add style specifies the width and height and overflow:hidden; 。This is Great fixed !

from bootstrap-filestyle.

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.