Comments (8)
hmm interesting, are you use a legit IE8 or an emulator (IE8 mode)?
from humane-js.
We are using IE tester, but your page: http://wavded.github.com/humane-js/ works fine and does not report errors.
After doing as much as we can we have found that the error occurs when we pass the addnCls
argument.
This works:
<script>
var notify = humane.create({container: document.getElementById('notify')});
notify.log("<h2>Order successfully submitted for 435645 of the Test Brochure</h2><p>You will be contacted shortly with confirmation of your order</p>", { timeout: 5000, clickToClose: false});
</script>
This fails:
<script>
var notify = humane.create({container: document.getElementById('notify')});
notify.log("<h2>Order successfully submitted for 435645 of the Test Brochure</h2><p>You will be contacted shortly with confirmation of your order</p>", { timeout: 5000, clickToClose: false, addnCls: "success"});
</script>
Sorry for the delayed response
from humane-js.
@LRotherfield I am having trouble duplicating, I setup your failing example here:
http://wavded.github.com/humane-js/test/issue38.html
I won't have access to a "real" IE8 machine until tomorrow (I'm using IE8 mode) but I can't seem to get that error to occur. Maybe try wrapping a try/catch
around the problem line for now and see if that helps.
from humane-js.
@wavded We found the issue. Our css adds:
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c3dd8a', endColorstr='#9ebf69',GradientType=0 );
To the humane.success div. Removing this filter fixes the issue and explains why the error was reported with line 124, but means we cannot set a gradient background with css for ie 7 and 8.
from humane-js.
ahh good find, I had never attempted to add gradients to ie 7 and 8, does wrapping that line with a try/catch
in humane allow you still use your gradients or does it cause other issues?
from humane-js.
I have not added a try/catch statement in as the fastest fix once I knew the issue was to use a background image instead. I will try tomorrow and let you know.
from humane-js.
@wavded I tried the try catch
with nothing in the catch statement and it worked fine in ie8, no error message. Thanks for your help and sorry for the slow response. I have not added a pull request because I don't know if you want to do something with the catch statement or even if you want to implement this as a fix.
from humane-js.
@LRotherfield if it is beneficial for your case, it doesn't hurt to add it, at this point I'm not sure what I'd do with the catch except to "catch" the try :) if you'd like to submit a pull I'll add it
from humane-js.
Related Issues (20)
- Stacking of notifications HOT 2
- Limiting number of pending notifications HOT 1
- fatty theme not on bower HOT 2
- Indicator count for queued notifications HOT 3
- css styling in messages HOT 1
- Missing semicolon at the end of the non-minified source HOT 2
- bower install humane-js does not reflect #master HOT 4
- remove before log (or error/info/etc) together option HOT 2
- Humane stylesheet displays scrollbars when it shouldn't HOT 2
- Option to manually attach humane div. HOT 2
- Humane.js Customize Style
- please add links to cdn to README HOT 1
- custom html markup HOT 1
- Adding hyperlinks to notification? HOT 2
- Add unit tests HOT 1
- Support for confirm and alert custom dialog HOT 1
- Is there a way to get a clicked element in the callback?
- Text doesnt feed to notification
- Use new syntax of linear-gradient HOT 5
- how do you "stack" the notifications? getting overlapped one over the other HOT 5
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 humane-js.