File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Website Code works fine in IE but not in Mozilla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Website Code works fine in IE but not in Mozilla" Watch "Website Code works fine in IE but not in Mozilla" New topic
Author

Website Code works fine in IE but not in Mozilla

Arundhati Roy
Greenhorn

Joined: May 24, 2007
Posts: 25
Hi,

I have a website which works fine in IE but I need to make it work in Mozilla perfectly.

I need to do this really fast. It just has HTML,CSS and javascript.

Can anybody help me in this.


Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

What are you expecting anybody to do given the scant information you have provided? What's going wrong? What sections of code aren't working properly?

Chances are you've used proprietary, IE-only code that is not working in standards-compliant browsers. But without a great deal more detail, I'm not sure what other help can be offered.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Originally posted by Arundhati Roy:
I need to do this really fast.
You might also want to read this.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I need to build a house with wood, nails, and paint. How do I build a house that looks like the one near Fred's house?

There are an tons of houses out there with a guy named Fred in it. And there are a bunch of houses to the left and right of those.

You need to show us some code or give us a link to your issues.

Eric
Timothy Stone
Ranch Hand

Joined: Aug 01, 2001
Posts: 71
Arundhati,

Two tips to be taken very seriously:
  • Develop in Firefox first, FIX for IE
  • Consider the Yahoo! User Interface (YUI)

  • The first tip is something that drives me crazy about most Java engineers, they develop in IE as if they are building a .NET app! HTML, CSS, and JavaScript are not technologies owned or invented by Micros~1. In fact, most of the time, Micros~1 gets it wrong. When you develop in Firefox (or Opera and Safari) you are at least getting Core support of DOM 0 and 1, CSS 1, 2, and 2.1, and better HTML validation. With IE, you get mostly broken implementations of these features. Additionally, most resources will address fixing IE, not fixing Firefox. Think about that, you'll get more resources for fixing IE!

    The second tip will provide you some sanity. The YUI is an open-source JavaScript and CSS library that follows a "Graded Browser Support" model that Yahoo! tests in all current browsers and, short of a guarantee or promise, makes every effort to be sure that layouts and code using the YUI library wil behave identically across most popular platforms.

    HTH, a little.
    Tim
    [ October 09, 2007: Message edited by: Timothy Stone ]

    Timothy Stone, MIT, SCJP
    http://www.petmystone.com/
    "This Satan's drink [coffee] is so delicious, we shall cheat Satan and baptize it." --Pope Clement the VIII (1592-1605)
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 60741
        
      65

    Develop in Firefox first, FIX for IE
    Or better yet: "test early, test often!"

    I try to incrementally make sure that my code is working on all supported browsers before too much can go awry.

    Using a cross-browser library such as jQuery also helps eliminate a lot of the pain.
    [ October 09, 2007: Message edited by: Bear Bibeault ]
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 60741
        
      65

    P.S. In Firefox, be sure to have the FireBug plugin installed. It's an invaluable debugging tool.
    Arundhati Roy
    Greenhorn

    Joined: May 24, 2007
    Posts: 25
    Thanks Everybody...........

    I have managed to do it.

    Bear your debugging plugin was really helpful...

    Timothy thanks for your suggestion will keep that in mind......

    Actually the website was already developed... I was given the task to make it work in mozilla..

    I apologize for the scant info...Will keep that in mind...

    Once again Thanks
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 60741
        
      65

    Glad you were able to get things going. More info in your posts is very helpful to identify and correct the problems.
    [ October 10, 2007: Message edited by: Bear Bibeault ]
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: Website Code works fine in IE but not in Mozilla
     
    Similar Threads
    -onkeyup- does not update boolean value
    jdk1.3.1 compiled applets cause NS 6 to crash - why?
    clone not working in IE
    Struts2.0 not working in IE
    Multiline Building in JSP