SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript and browsers compatibility

    Hi,

    I am more a php and python developper, and my new project has to use use JavaScript and jQuery as programming language. My question is: Based on your experience, is the combination of JavaScript and jQuery the best choice for cross browser compatibility?(IE, Firefox, Chrome and safari)


    Thanks your input,

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,198
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    The term "cross browser compatibility" is more of a CSS thing since jQuery creates polyfills for older browsers such as IE to keep a consistent experience, depending on what types of things your project needs to accomplish you can sometimes get away with smaller libraries for animations, events, DOM selection etc., but most of the time vanilla JavaScript will work perfectly fine in older browsers such as IE7.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,871
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    1. JQuery is just a library of JavaScript routines so using or not using JQuery makes no difference.

    2. There was a new version of JavaScript introduced in late 2011. Older browsers - particularly Internet Explorer - do not support all the new commands that version introduced although the more important of the new commands (such as "use strict") were implemented in a way that means that the code will still work even if the browser doesn't understand it. With the new commands that older versions of IE don't understand you can use feature sensing to identify where a command isn't recognised and either skip over the code or implement your own version of the command.


    As far as providing interactive behaviour in a web browser JavaScript is the only choice because it is the only language that all modern browsers understand that is actually built into the browser itself and which therefore most people will have turned on. The only alternatives require that a plugin be downloaded and installed into the browser and turned on before it can be used.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a board about this topic, relating to my issues with Javascript in IE. I think it may be of some use for you, here you go. http://www.verious.com/board/AKumar/...king-with-ie8/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •