Slashdot Mirror


Migrating IE Web Apps to Mozilla

PabloHoffman writes "Have you ever wondered what would it take to make your (unfortunately) IE-only web app to work on Firefox?. IBM published an interesting article about migrating Internet Explorer specific web applications to Mozilla-based browers. It covers basic cross-browser development techniques, and some developing strategies for overcoming the differences between both browsers."

13 of 407 comments (clear)

  1. That's Easy! by AKAImBatman · · Score: 5, Insightful

    Porting IE-only apps to Mozilla/FireFox is easy thanks to the extensive set of DOM and JavaScript debugging tools. It's going the other way that's the hard part. IE is completely unhelpful in diagnosing issues with document.addEventListener (a standard that IE doesn't support), or passing an event instead of using the stupid document.event, or showing you the DOM to find out where (or why) that specific DIV isn't showing up right.

    Meh. Somebody needs to either fix IE, or take it out back and shoot it.

  2. The forgot something... by pickyouupatnine · · Score: 3, Insightful

    The title of the article should say "Migrate apps from Internet Explorer to Mozilla ... with valid business reasons". ... Might be easy to do so with small apps.. but with the size of the apps we've written for intranet based sites... there's no reason to make the switch to Mozilla. We simply tell our clients (who are all windows users anyway) to use IE. Not giving further choice means less headache for us when it comes to supporting our product.

    --
    _Vishal www.squad9.com
    1. Re:The forgot something... by Anonymous Coward · · Score: 4, Insightful

      Being IE-specific is the mark of lack of foreseight. I speak from experience, unfortunately. To be cross-browser compatable between the latest versions of IE and mozilla is exceptionally simple if a little care is taken upfront. Unfortunately massive, hand-written, IE-specific sites are likely not worth the cost to rewrite. Consider your lesson learned and do it right NEXT time, forget porting.

    2. Re:The forgot something... by Penguin+Programmer · · Score: 3, Insightful

      Unfortunately for us all, this attitude is very common. My approach is quite the opposite: code to the standards so it works/looks correct in FF (or other mostly-standards-compliant browsers), give it basic functionality in IE and if an IE user complains about it not being perfect tell them to use a proper browser.

      Obviously, when doing work for the company I have to be careful and make things look at least reasonably proper in IE (for which the IE7 javascript library has been a lifesaver). However, for my local LUG's webpage, I can just tell IE users to switch browsers or go fuck themselves.

    3. Re:The forgot something... by Leebert · · Score: 3, Insightful

      We simply tell our clients (who are all windows users anyway) to use IE. Not giving further choice means less headache for us when it comes to supporting our product.

      That's a perfectly acceptable position to take. As long as your competitors take the same position, that is.

  3. Re:Developers. by Ingolfke · · Score: 4, Insightful

    True developers test for compatibility.

    Not if the requirements document says build this app for IE only and don't worry about interoperability.

  4. Re:How about making server side only apps? by Ossifer · · Score: 3, Insightful

    Having server processes deliver content does nothing to eliminate browser compatibility issues.

    These issues lie with the developer at heart, and the QA engineers. One needs to ensure compatibility at the unit-testing stage, having followed standards (as in the IBM article) in the design and coding stages...

  5. Re:How about making server side only apps? by Anonymous Coward · · Score: 3, Insightful

    Don't forget the cardinal rule of data validation: "Use javascript to make things work well for the user and server side validation to prevent hacks."

  6. You guess wrong by jag111 · · Score: 4, Insightful

    I pity the pour souls who were forced to use your "huge and widely used" web app that was compatible only with IE. It's clear you didn't do your homework before starting the project. ASP.NET web apps do not require having the .NET runtime on the client any more than PHP web apps require installing PHP on the client. (read: they don't)

    All of the native framework web controls have two distinct rendering modes. One is for "uplevel" browsers which includes any javascript/DHTML/etc. goodness that the latest browsers support. The other is for "downlevel" browsers and basically renders everything in something like HTML 3.2 compatibility. The server runtime detects which mode to use based on a section of the machine.config called browserCaps (essentially the .NET equivalent of browscap.ini). The default values stored in the machine.config basically only recognize 5.x+ versions of IE as "uplevel" browsers.

    Updated versions of the browserCaps info can be found here:
    http://www.codeproject.com/aspnet/browsercaps.asp
    It should be noted you can choose to either replace the data in your machine.config to make it a system-wide update, or just add the same data to your app's web.config file.

    On a related note, you can find an updated version of the original browscap.ini here:
    http://www.garykeith.com/browsers/downloads.asp

  7. IE only is unprofessional by hexed_2050 · · Score: 4, Insightful

    Websites that require IE only are very unprofessional IMHO.

    If I have to use IE to use a website, my opinion about the company's website I'm on is usually changed. In this day in age, you have to be proactive, not reactive.

    --
    Valkyrie is about to die! Wizard needs food -- badly!
  8. Re:First stop: W3C standards by Phroggy · · Score: 3, Insightful

    Standards-compliant code works on all modern browsers,

    Bwahahaha!

    You obviously don't do professional web design. Getting the code to validate at W3C is the easy part!

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  9. Re:How about making server side only apps? by Cyn · · Score: 3, Insightful

    Don't rely on it, and don't dare trust it. Think of it as a service to your users. Oh, and add it on last, once the rest of the system works.

    Client-side validation of a big long ugly form that the user has to submit along with, say, a few MBs of files - is a way of saying "We don't hate you, and don't want you to hate us".

    Don't dare trust it though. Don't trust a damned thing - make no assumptions about the correctness of anything the client sends.

    --
    cyn, free software and *nix operating systems enthusiast.
  10. Re:Developers. by gcauthon · · Score: 3, Insightful

    Let's say you are implementing a feature and are faced with two approaches, the IE-only approach and the standards-compliant approach.

    Even if you know your audience is IE users with no choice in browsers, it would still be unwise to choose the IE-only approach. You may be relying on some undocumented side-effect of IE that will get "fixed" in their next release/patch.

    As an example, I had to support an app that provided a list of items as anchor tags. IE did not require the anchor tag to be closed since it would automatically close it on the next "</p>" tag. After upgrading to IE 5.5, this "feature" started causing stack overflow exceptions.

    Most people, when they say "IE-specific" they actually mean "IE version x/windows verion y/service pack level z"-dependent.