Results 1 to 5 of 5

Thread: Two things... Firefox n Javascript

  1. #1

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Two things... Firefox n Javascript

    Hi,

    I seem to be hitting that brick wall again. Attached is a zip file, in it is the beginning growth of some new pages (not the same as the last lot).

    Anyway - to attempt at full proper browser compatibility, I tried it in Firefox. Oh gawd did it fail - yup miserably. Seems it can't cope with nested Divs. Or maybe I need an upgrade..?

    IE sorta worked (5.5 seemed ok) but 6 does stuff it shouldn't

    If any of you have any advice (apart from deleting and forgetting it all), please post

    Vince
    Attached Files Attached Files

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    That's probably not what you want to hear, but I recommend learning to write modern JavaScript. And since the whole thing is ASP, write the menu in ASP, JS-generated menus are a scourge.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Not particularly what I wanted to hear

    This site is for HTML only which is why I've put in the Javascript menu creation. It still doesn't help with the general layout though.

    In ie it looks almost there, but in firefox it is completely messed up (that includes nutscrape). I have yet to get some of the other browsers to test on.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Firefox can definitely cope with nested divs, so that's not your problem.

    I've browsed through your code, and it looks awfully '98 (outdated). I suggest that you start from scratch, putting all layout stuff straight in the HTML (no javascript document.write's needed here).
    The tickertape stuff has to be done in js, well that's a bit outdated too, but that's up to you.

    Please validate your code with the w3c validator as I pointed out in your other post, this will make sure all browsers will output the same stuff (if you take care of some bugs).

    I hope you can figure it out a bit, if not let us know.

    Good luck!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Hi,

    OK, as you suggested I've shoved all the javascript menu creation into the html as normal html.

    I've removed the Ticker - well it was only an idea anyway.

    I've left in the resize and move javascript in the menu/code.

    Anyway, the attached zip has all the files again.


    You said ( and I think cornedbee hinted) that my html code is 'old style'. Could you put a couple of divs and a stylesheet of 'new code' so I can see the difference????


    Vince
    Attached Files Attached Files

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

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



Click Here to Expand Forum to Full Width