Javascript that works in one browser and doesn't in another is a common annoyance developers face.
You should always be testing on multiple browsers (and incrementally). Also, using javascript/ajax frameworks (dojo toolkit, jquery, prototype, etc) helps to increase compatibility in browsers when using heavy javascript/ajax.
Please tell us exactly what the problem is though, otherwise we don't know how to help you.