Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Javascript works in IE & Opera, but not Mozilla

    Hello all,

    I'm working on a new site, and as part of it, I've used some code from another site of mine that takes a single click and changes multiple frames (yeah, frames, I know). Anyway, that code works find on the old site with all different browsers, but with the new site, it only works with IE and Opera. Mozilla doesn't do a thing. It's frustrating.

    As you can see on the new site, besides the navigation script, I also have one running that does a mouseover/onclick effect to the nav buttons. I'm wondering if this could somehow be the cause of the Mozilla problem.

    Below is a link to the "new" site.

    http://www.neophono.com/spinellis

    And here is a link to the "old" site (where the nav script is working).

    http://www.columbuscycling.com/ss.htm

    Thanks!!!

    (When looking at the javascript console output in Mozilla, I get these errors over and over:

    mClick is not defined
    parent.frames.contentFrame has no properties
    mOut is not defined

    )
    Last edited by jacofunk; 05-09-2006 at 10:21 PM.

  • #2
    New Coder
    Join Date
    Feb 2006
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Nevermind--I figured it out.

    Sorry, this thread can be deleted.

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure of this (since I've never tested/used it), but this link makes it appear as though you have to access frames in a different way in Mozilla:

    http://www.mozilla.org/docs/dom/domr...frame_ref.html

    here's an excerpt from the page:
    the frameset object does not provide interfaces for getting to the subframes it manages.

    To get the frames in a document, you must ask the document itself, using the document.getElementById() method and the id of the frame(s) you want, or the document.getElementsByTagName("FRAME"), which returns a NamedNodeList array: ....

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,623
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Intranet Explorer often provides shortcut codes to access info and Opera copies some of them to make the browser friendlier to IE only pages. Using the proper way of accessing things will work in all browsers not just Mozilla.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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