FAQ Database Discussion Community

Using Angular 2 with older browsers thanks to TypeScript?

Since the Angular 2 team is using Typescript for it's build, would it be a feasible assumption that they could compile a version of Angular 2 that would work on older browsers? Thoughts?

How to use a capture group with String.split in old IE versions?

var textt = "L'architecture du système d'information devient"; var pattern = "/(ARCH)/gi"; var array = textt.split(pattern); console.log(array) This results in: [ L', itecture du système d'information devient ] And the expected result was: [ L', arch, itecture du système d'information devien ] Another example var textt = "ARCHIMAG"; var pattern...

Make IE7 compatible using CSS conditional comment

I've been struggling to make my website IE7 Compatible. I'm using this code is my head tag to ensure that if the website is running on IE7 it should use jquery 1.7 instead of jquery 2.1. <!--[if IE 7]>  <script src="../../common/js/jquery-1.7.1.min.js" type="text/javascript"></script> <![endif]--> <!--[if lt IE 9]> <script src="../../common/js/jquery-2.1.1.min.js"></script> <![endif]-->...

How to avoid wrap in IE7 when I have two ul in a navigation?

In ie8 or firefox browser,My code runs well,the two ul are in the same line.But when I ie7,the two ul are in the diffrent line,How to make then in the same line in ie7? <DIV id='navigation'> <ul><li><span> leftspan </span></li></ul> <ul style='float:right;'> <li><span> leftspan </span></li> <li><a href="http://www.google.com" target="_blank">google</a></li> <li><a href="http://www.apple.com" target="_blank">apple</a></li>...

input[checked] CSS selector on radio input is not matching in IE7

I'm trying to apply a style to the label for a radiobutton with the CHECKED attribute, but everything I've tried fails to match on IE7. Example (JSFiddle): <!DOCTYPE html> <html> <head> <title>Title</title> <style type="text/css"> /* Ensure that + selectors work */ input + span { color: blue; } /* Try...