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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post DTD causes script to cease functioning.

    I am trying to use a menu I created using CoffeeCup's DHTML Menu Builder. I linked the javascript file in my HTML. Everything works fine until I insert a DTD in my code. I tried HTML 4.01 Strict & Transitional, and the script doesn't function. If I use an older DTD (i.e. HTML 3.2) then it is O.K.
    Firefox & I.E. are the browsers I tested it with, they both behave the same.
    Any help is appreciated.....and thanks for helping a beginner!
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    That sounds like one of the compatibility problems between the standards and quirks modes. The problem is likely to be related to the fact that in standards mode all CSS lenghts except 0 must be specified with a unit.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Liorean,
    I checked my CSS and all the lengths have a unit specified. My CSS validated fine..... so I think no problems with that.
    Here is my link to the external script file:
    <script type="text/javascript" src="menu.js"></script><noscript>Please use navagation in footer!</noscript>
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Yes, you use units in your CSS - but does the menu script edit any CSS? If so, does it use units?

    There arer other scripting changes when changing to standards mode, but these are the most common.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried to go through the menu script and give everything I could a unit, but that goofed the menu totally.
    I'll email you the location of the files so you can take a look at them if you want.
    Thanks
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #6
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Don't email it. Just post a link here. There are others here that might be able to fix it before I've even had a chance to look at it, so post it in public instead.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #7
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    O.K.
    "www.riehltec.com/stolls/index.html" has the DTD
    "www.riehltec.com/stolls/index2.html" is without the DTD
    "www.riehltec.com/stolls/menu.js" is the menu script
    "www.riehltec.com/stolls/main.css" is my CSS

    Thanks!
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #8
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Capt.Nemo
    O.K.
    "www.riehltec.com/stolls/index.html" has the DTD
    "www.riehltec.com/stolls/index2.html" is without the DTD
    "www.riehltec.com/stolls/menu.js" is the menu script
    "www.riehltec.com/stolls/main.css" is my CSS

    Thanks!
    That script is a copy of Ger's HV Menu taken from Dynamic Drive and has had its credits removed in violation of the TOS you tacitly agreed to when you got the menu from the site...

    Please return the credits to the script in accordance with the Terms of Use before reposting requesting further assistance....

    /************************************************************************************
    (c) Ger Versluis 2000 version 5.5 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
    Updated 19 July, 2003 by GV for CSS CompatMode
    HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites
    For info write to menus@burmees.nl
    This script featured on Dynamic Drive DHTML code library: http://www.dynamicdrive.com
    *************************************************************************************/
    Additionally, since this question deals with a Dynamic Drive Script it should be moved to the Dynamic Drive Scripts Help forum where it would be more appropriate....

    .....Willy

  • #9
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This menu script was produced with a free DHTML Menu Builder from CoffeCup software available at "http://www.coffeecup.com/free-dhtml/".
    This is the script exactly as that software produced it, with only the <script> tag missing because it is being linked externally. I have not knowingly taken away credit from anybody. Let me know if there is still a problem.

    Thanks!
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #10
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Capt.Nemo
    I have not knowingly taken away credit from anybody.
    you might not have, but it sounds as tho someone has. ooops LOL
    *keep it simple (TM)

  • #11
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Where does that leave me?
    Did Ger Versluis take it from Coffe Cup or did Coffee Cup take it from Ger Versluis? Or are they one and the same?
    Do I need to check out the credit/copyright anymore, or can I have some help with the problem?
    Just a note, the problem is there with a DTD of XHTML 1.0 or HTML 4.01, Transitional or Strict.

    Thanks!
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #12
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Capt.Nemo
    Where does that leave me?
    Did Ger Versluis take it from Coffe Cup or did Coffee Cup take it from Ger Versluis? Or are they one and the same?
    Do I need to check out the credit/copyright anymore, or can I have some help with the problem?
    Just a note, the problem is there with a DTD of XHTML 1.0 or HTML 4.01, Transitional or Strict.

    Thanks!
    I don't know what is going on but I know that Ger has been developing that script for several years.... I have not gone thru the script line by line but it does appear to me to be a copy of Ger's script....

    In regards to the copyright, if you are using this for a commercial site, I would advise checking the copyright status...

    In regards to your problems, as Liorean noted, your CSS values need to use a unit declaration... there are numerous places within that script that do not use a unit... These all must be changed.... I would advise going to Dynamic Drive and looking for the latest copy of Ger's HV Menu.... There's a good chance that he has released a revision which fixes this problem...

    .....Willy

    BTW: If I can find the time, I will give your copy of the script a closer inspection and compare it to Ger's....
    Attached Files Attached Files

  • #13
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Currently I'm not using this script anywhere, but yes, I was going to use it for a commercial site. I'll check out CoffeCup's copyright status a little more first. Seems unnatural that they don't have anything pertaining to copyright status in the script......

    Thanks for the time you've spent....I'm learning. I will check out the script you mentioned.

    Much appreciated!
    If you're light years ahead of everybody, but at a place nobody wants to be, you look like a fool.

  • #14
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Capt.Nemo
    Where does that leave me?

    Did Ger Versluis take it from Coffe Cup or did Coffee Cup take it from Ger Versluis? Or are they one and the same?
    there are plenty more fish in the sea, and there are plenty more menu scripts. of course, you could always code your own - it's easier than you think
    *keep it simple (TM)

  • #15
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    FWIW: I downloaded and installed that CoffeeCup DHTMLMenuBuilder app and installed it (intrusive little bugger)...

    And not only did I not find any credits anywhere in a README file or HELP file... I also decompiled all the exe's and there are no credits included anywhere other than the credits for InstallShield in the install exe....

    Although I still have yet to read and compare the two scripts line for line... I believe they are the same script... Perhaps Ger is affiliated with CoffeeCup but I doubt it...

    Anyway... Did you look for an updated HV Menu??

    .....Willy


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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