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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post

    Firefox users test this page

    Why is it that the 1st iFrame isn't functioning?
    http://i.domaindlx.com/wheelofgod/kj...s&optAction=on

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    They seem to both be working for me.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    I don't understand it. It works in Internet Explorer but in Firefox, the first selected dropdown doesn't open the 1st iFrame.

  • #4
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    Try changing:
    Code:
    <iframe
    src ="/wheelofgod/kjvresplistbox.asp"
    width="300" height="1200" name="ifrverse" id="ifrVerse">
    To:
    Code:
    <iframe
    src ="/wheelofgod/kjvresplistbox.asp"
    width="300" height="1200" name="ifrVerse" id="ifrVerse">
    BTW: referencing objects globally instead of via getDocumentById() is a bad thing anyhow...

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,610
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Why not install a copy of Firefox so you can test pages yourself. There are versions of Firefox available for all operating systems.
    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.

  • #6
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    I have Firefox 1.5, but the Javascript don't seem to open the URL as it does in Internet Explorer. That's why I wanted you or someone else to test it. Maybe it's my computer. May be I need to reinstall it.

    What do you mean Noamr? I don't see the difference.

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Quote Originally Posted by gilgalbiblewhee
    What do you mean Noamr? I don't see the difference.
    The proper and standard way to access an element via id is by using document.getElementById(theId). In IE, all named and id'ed element become global variables which are directly accessible anywhere in the page. Firefox also allows it (probably for compatibility with IE-only sites) but not without a warning. Check the javascript console to see the warning:
    Quote Originally Posted by Javascript Console
    Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
    Other browsers totally disallow it and will throw an error.


  •  

    Posting Permissions

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