Comments (8)
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.
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.
Why is this closed? The Problem still exists.
from bootstrap-filestyle.
Better specify where this is still occurring
from bootstrap-filestyle.
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.
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:
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.
@iuliana Thank you - that worked!
btw: "my client is not interested in IE8 support anymore" - what a great client! ;)
from bootstrap-filestyle.
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)
- Hi,clear method is not working when I submit form by ajax. HOT 1
- Input group breaking changes HOT 6
- Default value HOT 1
- Not working inside an ng-repeat HOT 1
- Update npm package HOT 2
- How it works? HOT 14
- Can not install latest version using npm HOT 1
- the new version doesn't work for me HOT 1
- Not working in HubSpot, filestyle is not a function error HOT 3
- TypeError: element.filestyle is not a function HOT 1
- what about required option? HOT 1
- Text option to change button text wrong HOT 1
- Bootstrap-filestyle doesn't work. I can't see font awesome. HOT 5
- Version 1.2.3 not published to NPM HOT 1
- only works on page refresh
- Clear method issue
- change event not triggered on drag & drop
- Cannot Retrieve Javascript this object onChange Event
- dragdrop doesnt work if loaded via ajax
- Change on htmlIcon / data-icon
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 bootstrap-filestyle.