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
    New Coder
    Join Date
    Aug 2004
    Location
    Mumbai, India
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry div help required

    Hi all,

    I use <div> tag in a simple page, which works well with IE and Firefox, but not with Netscape. Any alternative tag which will work in all the three?


    Thanks in advance
    Regards,

    Binu

  • #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
    <div> tag not working? i've never heard such a thing it should work in any browser, can you post the rest of your code for us to look at or even maybe a link, FF and Netscape are similar so it should work in both but i dont see any reason why it doesn't work at all, are u using the closing div tag?

  • #3
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for some reason unbeknownst to me, some old-school web designers have a distrust of the <div> tag. The <div> tag itself is 100% compatible and compliant, but its usually the css behind div tags that can make it not work. Try validating your code, and also tell us what version of netscape. If you're talking about netscape 4, don't even bother. That browser is so terrible and the usage is less than 0.1% of all users. Please post more information
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Information!!!

    "My car won't start. Can you help me? It's a blue one."

    Do you seriously expect any useful assistance when you supply no information to go on?
    Give us page markup, stylesheet, browser(s) used, including version information, etc.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    New Coder
    Join Date
    Aug 2004
    Location
    Mumbai, India
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in fact i was using innerHTML property of the div element to change the contents.

    It was like <div id ="bt1"></div>

    later when i tried bt1.innerHTML to add a button, it didn't work for Netscape. I got it working with getElementById("bt21").innerHTML

    Thanks
    Regards,

    Binu

  • #6
    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
    lol y didn't u say u were using innerHTML we could have told you what you had to use for it to work

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Info!

    See? That was some vital info!
    I'm no JavaScript expert by far, but a little swift googling seems to confirm that the innerHTML property is not reliably supported by all browsers; I must say that I'm slightly surprised that FireFox does, actually.

    Anyway: glad you got it worked out.

    Edit:
    You beat me to the punch, Aero; then again, what'ya expect with those rockets and all...
    Last edited by ronaldb66; 02-11-2005 at 01:18 PM. Reason: Beaten...
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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