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 to the CF scene
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation javascript converter errors

    Hello, I am having trouble with a javascript length converter that I got from
    http://www.javascriptkit.com/script/...onverter.shtml

    It is working fine in dreamweaver, but when it goes live on my site, the calculations do nothing. I can see everything in the drop down menus, but when i click the "to" button, nothing happens. I got the following errors from chrome when activating any of the calculation functions. I'm wondering if anyone here can help me decipher these


    1. Uncaught TypeError: Cannot read property 'from_unit' of undefined
    1. convert_unitDefault.aspx:459
    2. (anonymous function)Default.aspx:482
    3. onchangeDefault.aspx:483

    1. Default.aspx:459Uncaught TypeError: Cannot read property 'from_unit' of undefined
    1. convert_unitDefault.aspx:459
    2. (anonymous function)Default.aspx:496
    3. onchangeDefault.aspx:497

    1. Default.aspx:459Uncaught TypeError: Cannot read property 'from_unit' of undefined
    1. convert_unitDefault.aspx:459
    2. (anonymous function)Default.aspx:516
    3. onclickDefault.aspx:517

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    The script works fine for me, so I have the idea that you have not copied it correctly. Have you placed it in the correct diectory?

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have placed the code into an aspx page that is inserted into a sidebar. You can see it at http://trickconcepts.com on the middle of the right side.

    All of the code specified has been inserted into the aspx section, referenced to as [[ConLib:custom/ShipLengthCalc]]

    I have added head and body tags to this aspx page as to follow the instructions for pasting the code, but it does not function, again it functions fine when im testing it in dreamweaver, but once it goes live, it does nothing. I have no idea what might cause this

  • #4
    New to the CF scene
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Further testing has shown that this code seems to be keeping my users from adding items to their carts in IE, so I have taken it back down


  •  

    Tags for this Thread

    Posting Permissions

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